]> git.proxmox.com Git - mirror_iproute2.git/commit
utils: ll_addr: Handle ARPHRD_IP6GRE in ll_addr_n2a()
authorSerhey Popovych <serhe.popovych@gmail.com>
Wed, 20 Dec 2017 07:57:09 +0000 (09:57 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 26 Dec 2017 17:07:42 +0000 (09:07 -0800)
commit1ed8a5ca87c3dc913b3fa438ac2248edd9140616
tree8d2c4f0cd527038bb53007c3d955f234eeaee025
parent9135c4d6037ff9f1818507bac0049fc44db8c3d2
utils: ll_addr: Handle ARPHRD_IP6GRE in ll_addr_n2a()

ll_addr_n2a() correctly prints tunnel endpoints for gre, ipip, sit
and ip6tnl, but not for ip6gre. Fix this by adding ARPHRD_IP6GRE to
IPv6 tunnel endpoing address conversion.

Before:
-------

$ ip link show
...
18: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group default
    link/tunnel6 :: brd ::
19: ip6gre0: <NOARP> mtu 1456 qdisc noop state DOWN mode DEFAULT group default
    link/gre6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd \
00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

After:
------

$ ip link show
...
18: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group default
    link/tunnel6 :: brd ::
19: ip6gre0: <NOARP> mtu 1456 qdisc noop state DOWN mode DEFAULT group default
    link/gre6 :: brd ::

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
lib/ll_addr.c