]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: wire up skb->encapsulation
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Sun, 18 Aug 2013 11:46:52 +0000 (13:46 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 19 Aug 2013 07:37:46 +0000 (09:37 +0200)
commitde003ac5fb2569ed1b91a5f8e8e385633eca8a96
treee328408bd4bca5348211bd939a53e002bf256349
parent87c238fd674674541fc37c0d85e819f00484efe7
ipv6: wire up skb->encapsulation

When pushing a new header before current one call skb_reset_inner_headers
to record the position of the inner headers in the various ipv6 tunnel
protocols.

We later need this to correctly identify the addresses needed to send
back an error in the xfrm layer.

This change is safe, because skb->protocol is always checked before
dereferencing data from the inner protocol.

Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/ip6_gre.c
net/ipv6/ip6_tunnel.c
net/ipv6/sit.c