diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-04-30 06:22:50 +0000 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2013-05-03 13:17:21 -0700 |
commit | 191b60bd73d50a9197302417a2fc119d71d11005 (patch) | |
tree | cafe3d0b41623733e86a822312a61bea5e7fe828 /ip/ip.c | |
parent | 79e9a1db11db494eade7bd6917a34f383c0774e3 (diff) | |
download | platform_external_iproute2-191b60bd73d50a9197302417a2fc119d71d11005.tar.gz platform_external_iproute2-191b60bd73d50a9197302417a2fc119d71d11005.tar.bz2 platform_external_iproute2-191b60bd73d50a9197302417a2fc119d71d11005.zip |
ip: ipv6: add tokenized interface identifier support
This patch adds support for tokenized IIDs, that enable
administrators to assign well-known host-part addresses
to nodes whilst still obtaining global network prefix
from Router Advertisements. This is the iproute2 part for
the kernel patch f53adae4eae5 (``net: ipv6: add tokenized
interface identifier support'').
Example commands with iproute2:
Setting a device token:
# ip token set ::1a:2b:3c:4d/64 dev eth1
Getting a device token:
# ip token get dev eth1
token ::1a:2b:3c:4d dev eth1
Listing all tokens:
# ip token list (or: ip token)
token :: dev eth0
token ::1a:2b:3c:4d dev eth1
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Diffstat (limited to 'ip/ip.c')
-rw-r--r-- | ip/ip.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -45,7 +45,7 @@ static void usage(void) " ip [ -force ] -batch filename\n" "where OBJECT := { link | addr | addrlabel | route | rule | neigh | ntable |\n" " tunnel | tuntap | maddr | mroute | mrule | monitor | xfrm |\n" -" netns | l2tp | tcp_metrics }\n" +" netns | l2tp | tcp_metrics | token }\n" " OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |\n" " -f[amily] { inet | inet6 | ipx | dnet | bridge | link } |\n" " -4 | -6 | -I | -D | -B | -0 |\n" @@ -80,6 +80,7 @@ static const struct cmd { { "tunl", do_iptunnel }, { "tuntap", do_iptuntap }, { "tap", do_iptuntap }, + { "token", do_iptoken }, { "tcpmetrics", do_tcp_metrics }, { "tcp_metrics",do_tcp_metrics }, { "monitor", do_ipmonitor }, |