diff options
author | Andrey Ignatov <rdna@fb.com> | 2018-07-11 17:33:37 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-07-15 00:08:41 +0200 |
commit | 78d8e26d46bc2ed73ab6a0e369a342478fda4ce0 (patch) | |
tree | ea6113284a1b646adc567632117e76a14b0f920d /arch/s390 | |
parent | selftests/bpf: Better verification in test_tcpbpf (diff) | |
download | linux-dev-78d8e26d46bc2ed73ab6a0e369a342478fda4ce0.tar.xz linux-dev-78d8e26d46bc2ed73ab6a0e369a342478fda4ce0.zip |
selftests/bpf: Test case for BPF_SOCK_OPS_TCP_LISTEN_CB
Cover new TCP-BPF callback in test_tcpbpf: when listen() is called on
socket, set BPF_SOCK_OPS_STATE_CB_FLAG so that BPF_SOCK_OPS_STATE_CB
callback can be called on future state transition, and when such a
transition happens (TCP_LISTEN -> TCP_CLOSE), track it in the map and
verify it in user space later.
Signed-off-by: Andrey Ignatov <rdna@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions