]> git.ipfire.org Git - thirdparty/iproute2.git/commit
Revert "ip6tunnel: fix 'ip -6 {show|change} dev <name>' cmds"
authorAndrea Claudi <aclaudi@redhat.com>
Tue, 9 Jul 2019 13:16:50 +0000 (15:16 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 16 Jul 2019 19:25:05 +0000 (12:25 -0700)
commitad04dbc5b41df509cd6925eab36af73000632fd2
treeb06d489f92e63a8effaf1526fc1e1425709e2128
parent78d3832335d514dd70402daedab06a383ff9fc42
Revert "ip6tunnel: fix 'ip -6 {show|change} dev <name>' cmds"

This reverts commit ba126dcad20e6d0e472586541d78bdd1ac4f1123.
It breaks tunnel creation when using 'dev' parameter:

$ ip link add type dummy
$ ip -6 tunnel add ip6tnl1 mode ip6ip6 remote 2001:db8:ffff:100::2 local 2001:db8:ffff:100::1 hoplimit 1 tclass 0x0 dev dummy0
add tunnel "ip6tnl0" failed: File exists

dev parameter must be used to specify the device to which
the tunnel is binded, and not the tunnel itself.

Reported-by: Jianwen Ji <jiji@redhat.com>
Reviewed-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ip6tunnel.c