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)
commitb87fb39e399137257a6db3224ea854117e9486e9
treea4373882fec7b443510d3c5a20c5c16839d71ae1
parentef8531b64c3e2443da52e9f05d74a988230eedc5
ipv6: gre: fix ip6gre_err()

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>
net/ipv6/ip6_gre.c