Re: [PATCH net] xfrm: Fix eth_hdr(skb)->h_proto to reflect inner IP version

2018-01-23 Thread Steffen Klassert
On Tue, Jan 23, 2018 at 12:16:21AM +0200, yoss...@mellanox.com wrote: > From: Yossi Kuperman > > IPSec tunnel mode supports encapsulation of IPv4 over IPv6 and vice-versa. > > The outer IP header is stripped and the inner IP inherits the original > Ethernet header. Tcpdump fails to properly deco

[PATCH net] xfrm: Fix eth_hdr(skb)->h_proto to reflect inner IP version

2018-01-22 Thread yossiku
From: Yossi Kuperman IPSec tunnel mode supports encapsulation of IPv4 over IPv6 and vice-versa. The outer IP header is stripped and the inner IP inherits the original Ethernet header. Tcpdump fails to properly decode the inner packet in case that h_proto is different than the inner IP version.