diff options
| author | Andrey Ignatov <[email protected]> | 2018-06-26 21:22:41 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-06-27 09:22:38 +0000 |
| commit | a7f7547f5e2b90554b0f3d1604899a4f26dba92d (patch) | |
| tree | 51a8b4418ae371ded7d80e64d860c054b6d675e2 /tools/bpf/bpftool/prog.c | |
| parent | samples/bpf: Add xdp_sample_pkts example (diff) | |
| download | kernel-a7f7547f5e2b90554b0f3d1604899a4f26dba92d.tar.gz kernel-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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
