]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[IPV6] XFRM: Fix decoding session with preceding extension header(s).
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Tue, 18 Apr 2006 21:47:44 +0000 (14:47 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 18 Apr 2006 22:57:52 +0000 (15:57 -0700)
commite5d25a90886d62d88fdd7cd5c3375f4fe436be64
tree677a7aa9816db94dfae91e6cb7f35864e47dc6d4
parente3cae904d7df4f86ea1d13d459e667d389cc35e3
[IPV6] XFRM: Fix decoding session with preceding extension header(s).

We did not correctly decode session with preceding extension
header(s).  This was because we had already pulled preceding
headers, skb->nh.raw + 40 + 1 - skb->data was minus, and
pskb_may_pull() failed.

We now have IP6CB(skb)->nhoff and skb->h.raw, and we can
start parsing / decoding upper layer protocol from current
position.

Tracked down by Noriaki TAKAMIYA <takamiya@po.ntts.co.jp>
and tested by Kazunori Miyazawa <kazunori@miyazawa.org>.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/xfrm6_policy.c