]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/ipaddress.c
ipaddress: enable -details option
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 4 Dec 2014 16:41:07 +0000 (17:41 +0100)
committerStephen Hemminger <shemming@brocade.com>
Wed, 10 Dec 2014 04:17:01 +0000 (20:17 -0800)
commit2ec28933b6cdeaf98ad8d3d6e9471b50bac91223
treeabd87c3fa2c2e496d69e6dcf5a9325db04dba79b
parent85c1807f16774286c7fa67090b2fad4d1dae4f18
ipaddress: enable -details option

This option was used only for 'ip link', but it can be useful to have it for
'ip address'. Thus it is possible to display link details and addresses with one
command.

Example:
$ ip -d a ls dev gre1
9: gre1@NONE: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1468 qdisc noqueue state UNKNOWN group default
    link/gre 10.16.0.249 peer 10.16.0.121 promiscuity 0
    gre remote 10.16.0.121 local 10.16.0.249 ttl inherit ikey 0.0.0.10 okey 0.0.0.10 icsum ocsum
    inet 192.168.0.249 peer 192.168.0.121/32 scope global gre1
       valid_lft forever preferred_lft forever
    inet6 fe80::5efe:a10:f9/64 scope link
       valid_lft forever preferred_lft forever

Suggested-by: Christophe Gouault <christophe.gouault@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
ip/ipaddress.c