[PATCH ipsec v2 0/2] ipsec interfaces: fix sending with bpf_redirect() / AF_PACKET sockets
From: Nicolas Dichtel <hidden>
Date: 2020-01-09 13:35:50
From: Nicolas Dichtel <hidden>
Date: 2020-01-09 13:35:50
Before those patches, packets sent to a vti[6]/xfrm interface via bpf_redirect() or via an AF_PACKET socket were dropped, mostly because no dst was attached. v1 -> v2: - remove useless check against skb_dst() in xfrmi_xmit2() - keep incrementing tx_carrier_errors in case of route lookup failure net/ipv4/ip_vti.c | 11 +++++++++-- net/ipv6/ip6_vti.c | 11 +++++++++-- net/xfrm/xfrm_interface.c | 28 +++++++++++++++++++++------- 3 files changed, 39 insertions(+), 11 deletions(-) Regards, Nicolas