]> git.proxmox.com Git - mirror_iproute2.git/commit
iproute2: ip6_tunnel mode bugfixes: any,vti6
authorAlexey Andriyanov <alan@al-an.info>
Wed, 29 Oct 2014 06:19:30 +0000 (09:19 +0300)
committerStephen Hemminger <shemming@brocade.com>
Sun, 2 Nov 2014 19:48:43 +0000 (11:48 -0800)
commita0638e18b28e92e7bc62416bd3e6247ed123e0fa
tree67fbbe124dd3a2f8843d60320e0a95c616c501aa
parenteeb669a7403cbca859070aaed6f1a55131d75627
iproute2: ip6_tunnel mode bugfixes: any,vti6

- any ipv6 tunnel mode (proto == 0) could not be set
due to incomplete set of cases in do_add, do_del.
- vti6 logic was inverted: it was using "ip6_vti0" basedev
UNLESS mode is set to vti6.

We don't need a switch by p.proto in do_add()/do_del(): it
already exists in parse_args(). So if parse_args() call
was successful, no need to check tunnel mode again.

Signed-off-by: Alexey Andriyanov <alan@al-an.info>
ip/ip6tunnel.c