Commit 82836372311a5cbf9cc5f4f47f9b56cb9edfe90d

Authored by Colin
Committed by YOSHIFUJI Hideaki
1 parent 24ef0da7b8

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -109,7 +109,7 @@
109 109 {
110 110 struct xfrm6_tunnel *handler;
111 111  
112   - if (!pskb_may_pull(skb, sizeof(struct ipv6hdr)))
  112 + if (!pskb_may_pull(skb, sizeof(struct iphdr)))
113 113 goto drop;
114 114  
115 115 for (handler = tunnel46_handlers; handler; handler = handler->next)