summaryrefslogtreecommitdiff
path: root/net/xfrm/xfrm_ipcomp.c
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2022-08-25 18:16:51 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2022-08-29 11:20:58 +0300
commit26dbd66eab8080be51759e48280da04015221e22 (patch)
treeec8ba8141c89f1966ae1eb5f8821fcf567fa2ba0 /net/xfrm/xfrm_ipcomp.c
parentebe5555c2f34505cdb1ae5c3de8b24e33740b3e0 (diff)
downloadlinux-26dbd66eab8080be51759e48280da04015221e22.tar.xz
esp: choose the correct inner protocol for GSO on inter address family tunnels
Commit 23c7f8d7989e ("net: Fix esp GSO on inter address family tunnels.") is incomplete. It passes to skb_eth_gso_segment the protocol for the outer IP version, instead of the inner IP version, so we end up calling inet_gso_segment on an inner IPv6 packet and ipv6_gso_segment on an inner IPv4 packet and the packets are dropped. This patch completes the fix by selecting the correct protocol based on the inner mode's family. Fixes: c35fe4106b92 ("xfrm: Add mode handlers for IPsec on layer 2") Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_ipcomp.c')
0 files changed, 0 insertions, 0 deletions