diff options
author | 2018-06-26 14:22:41 -0700 | |
---|---|---|
committer | 2018-06-27 11:22:38 +0200 | |
commit | a7f7547f5e2b90554b0f3d1604899a4f26dba92d (patch) | |
tree | 51a8b4418ae371ded7d80e64d860c054b6d675e2 /tools/bpf/bpftool/main.c | |
parent | samples/bpf: Add xdp_sample_pkts example (diff) | |
download | wireguard-linux-a7f7547f5e2b90554b0f3d1604899a4f26dba92d.tar.xz wireguard-linux-a7f7547f5e2b90554b0f3d1604899a4f26dba92d.zip |
selftests/bpf: Test sys_connect BPF hooks with TFO
TCP Fast Open is triggered by sys_sendmsg with MSG_FASTOPEN flag for
SOCK_STREAM socket.
Even though it's sys_sendmsg, it eventually calls __inet_stream_connect
the same way sys_connect does for TCP. __inet_stream_connect, in turn,
already has BPF hooks for sys_connect.
That means TFO is already covered by BPF_CGROUP_INET{4,6}_CONNECT and
the only missing piece is selftest. The patch adds selftest for TFO.
Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/bpf/bpftool/main.c')
0 files changed, 0 insertions, 0 deletions