ipv6: gre: fix ip6gre_err()
authorEric Dumazet <edumazet@google.com>
Sun, 19 Aug 2012 03:47:30 +0000 (03:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Aug 2012 05:48:32 +0000 (22:48 -0700)
ip6gre_err() miscomputes grehlen (sizeof(ipv6h) is 4 or 8,
not 40 as expected), and should take into account 'offset' parameter.

Also uses pskb_may_pull() to cope with some fragged skbs

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Dmitry Kozlov <xeb@mail.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found