]> git.proxmox.com Git - mirror_iproute2.git/commit
ip: link_gre6.c: Support IP6_TNL_F_ALLOW_LOCAL_REMOTE flag
authorPetr Machata <petrm@mellanox.com>
Wed, 21 Feb 2018 11:18:37 +0000 (12:18 +0100)
committerDavid Ahern <dsahern@gmail.com>
Mon, 26 Feb 2018 03:45:39 +0000 (19:45 -0800)
commitf798a8ab524404e9b4bc0e4fdefcac48371e5707
tree23eb5dd214f00353a300afccdc7db4e307d4af04
parent430e05d33f41031939c43f2ef9f786079914e557
ip: link_gre6.c: Support IP6_TNL_F_ALLOW_LOCAL_REMOTE flag

For IP-in-IP tunnels, one can specify the [no]allow-localremote command
when configuring a device. Under the hood, this flips the
IP6_TNL_F_ALLOW_LOCAL_REMOTE flag on the netdevice. However, ip6gretap
and ip6erspan devices, where the flag is also relevant, are not IP-in-IP
tunnels, and thus there's no way to configure the flag on these
netdevices. Therefore introduce the command to link_gre6 as well.

The original support was introduced in commit 21440d19d957
("ip: link_ip6tnl.c/ip6tunnel.c: Support IP6_TNL_F_ALLOW_LOCAL_REMOTE flag")

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/link_gre6.c
man/man8/ip-link.8.in