ip6tunnel: Fix no default display of ip4ip6 tunnels
commitc3651bf4763d7247e3edd4e20526a85de459041b
authorSrivats P <srivats.p@conexant.com>
Fri, 27 Mar 2009 18:17:26 +0000 (27 11:17 -0700)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Fri, 27 Mar 2009 18:17:26 +0000 (27 11:17 -0700)
tree5dfdac7457b07eb7f0b70610e16d049ba6d20370
parenteeef12c514269092ce679bf618a219fd8ad2aa68
ip6tunnel: Fix no default display of ip4ip6 tunnels

"ip -6 tunnel show" displays only ip6ip6 tunnels not ip4ip6 tunnels
 - it should display all irrespective of proto.

This is because the default tunnel proto is initialized to IPPROTO_IPV6 in ip6_tnl_parm_init() which is fine for a 'add' command but not for 'show'. This patch overrides proto with 0 signifying 'mode any' as the default in case of a 'show'.
ip/ip6tunnel.c