commit | a0638e18b28e92e7bc62416bd3e6247ed123e0fa | [log] [tgz] |
---|---|---|
author | Alexey Andriyanov <alan@al-an.info> | Wed Oct 29 09:19:30 2014 +0300 |
committer | Stephen Hemminger <shemming@brocade.com> | Sun Nov 02 11:48:43 2014 -0800 |
tree | 67fbbe124dd3a2f8843d60320e0a95c616c501aa | |
parent | eeb669a7403cbca859070aaed6f1a55131d75627 [diff] |
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>