summaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_interface.c
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2020-01-13 09:32:46 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2020-01-14 08:55:38 +0100
commit95224166a9032ff5d08fca633d37113078ce7d01 (patch)
tree21181101c0a61e77ab1082dc80fd028249719eb9 /net/xfrm/xfrm_interface.c
parenta112adafcb47760feff959ee1ecd10b74d2c5467 (diff)
downloadlinux-95224166a9032ff5d08fca633d37113078ce7d01.tar.gz
linux-95224166a9032ff5d08fca633d37113078ce7d01.tar.bz2
linux-95224166a9032ff5d08fca633d37113078ce7d01.zip
vti[6]: fix packet tx through bpf_redirect()
With an ebpf program that redirects packets through a vti[6] interface, the packets are dropped because no dst is attached. This could also be reproduced with an AF_PACKET socket, with the following python script (vti1 is an ip_vti interface): import socket send_s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, 0) # scapy # p = IP(src='10.100.0.2', dst='10.200.0.1')/ICMP(type='echo-request') # raw(p) req = b'E\x00\x00\x1c\x00\x01\x00\x00@\x01e\xb2\nd\x00\x02\n\xc8\x00\x01\x08\x00\xf7\xff\x00\x00\x00\x00' send_s.sendto(req, ('vti1', 0x800, 0, 0)) Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_interface.c')
0 files changed, 0 insertions, 0 deletions