diff options
author | Colin <colins@sjtu.edu.cn> | 2008-05-26 18:04:43 +0200 |
---|---|---|
committer | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-06-04 21:02:32 +0200 |
commit | 82836372311a5cbf9cc5f4f47f9b56cb9edfe90d (patch) | |
tree | 214a64dbce626d2a95893d1cd75d8ab27b6a8601 /net/ipv6/tunnel6.c | |
parent | [IPV6] ADDRCONF: Check range of prefix length (diff) | |
download | linux-82836372311a5cbf9cc5f4f47f9b56cb9edfe90d.tar.xz linux-82836372311a5cbf9cc5f4f47f9b56cb9edfe90d.zip |
[IPV6] TUNNEL6: Fix incoming packet length check for inter-protocol tunnel.
I discover a strange behavior in [ipv4 in ipv6] tunnel. When IPv6 tunnel
payload is less than 40(0x28), packet can be sent to network, received in
physical interface, but not seen in IP tunnel interface. No counter increase
in tunnel interface.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'net/ipv6/tunnel6.c')
-rw-r--r-- | net/ipv6/tunnel6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tunnel6.c b/net/ipv6/tunnel6.c index 6323921b40be..669f280989c3 100644 --- a/net/ipv6/tunnel6.c +++ b/net/ipv6/tunnel6.c @@ -109,7 +109,7 @@ static int tunnel46_rcv(struct sk_buff *skb) { struct xfrm6_tunnel *handler; - if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) + if (!pskb_may_pull(skb, sizeof(struct iphdr))) goto drop; for (handler = tunnel46_handlers; handler; handler = handler->next) |