]> git.proxmox.com Git - mirror_iproute2.git/commit
iptunnel: check SIT_ISATAP flag only for SIT tunnel
authorAmerigo Wang <amwang@redhat.com>
Tue, 2 Jul 2013 09:39:28 +0000 (17:39 +0800)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 9 Jul 2013 16:08:14 +0000 (09:08 -0700)
commit86c00faae20d0ec60c61a24eed905a0283cf2ac2
tree85b02bc9f6bb80862222e8e86a6217a3ce46dcad
parent11eb93965384999cbaf0ebaac9672910ae820546
iptunnel: check SIT_ISATAP flag only for SIT tunnel

Without patch, I got:

# ./ip/ip tunnel show
ip_vti0: ioctl 89f4 failed: Invalid argument
ip_vti0: ip/ip  remote any  local any  ttl inherit  nopmtudisc key 0

this is due to VTI_ISVTI has the same numeric value with SIT_ISATAP,
but only sit tunnel has SIOCGETPRL, therefore it should check for SIT
tunnel first.

Cc: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Cong Wang <amwang@redhat.com>
ip/iptunnel.c