Skip to content

Commit

Permalink
[IPV6] TUNNEL6: Fix incoming packet length check for inter-protocol t…
Browse files Browse the repository at this point in the history
…unnel.

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>
  • Loading branch information
Colin authored and YOSHIFUJI Hideaki committed Jun 4, 2008
1 parent 24ef0da commit 8283637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/tunnel6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8283637

Please sign in to comment.