mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
selftests/bpf: add tests for bpf_tcp_check_syncookie and bpf_skc_lookup_tcp
Add tests which verify that the new helpers work for both IPv4 and IPv6, by forcing SYN cookies to always on. Use a new network namespace to avoid clobbering the global SYN cookie settings. Signed-off-by: Lorenz Bauer <lmb@cloudflare.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
5792d52df1
commit
bafc0ba826
6 changed files with 434 additions and 2 deletions
1
tools/testing/selftests/bpf/.gitignore
vendored
1
tools/testing/selftests/bpf/.gitignore
vendored
81
tools/testing/selftests/bpf/test_tcp_check_syncookie.sh
Executable file
81
tools/testing/selftests/bpf/test_tcp_check_syncookie.sh
Executable file
Loading…
Add table
Add a link
Reference in a new issue