diff options
author | Petar Penkov <[email protected]> | 2019-07-29 09:59:18 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2019-07-30 21:03:05 -0700 |
commit | 91bc35789db4e1a489be7ab6e318e6265202e096 (patch) | |
tree | b268597b9de7c61cd2427727c2213d8d17998fe0 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 637f71c09ba22d1042f5b48b58c249ee5665d44d (diff) |
selftests/bpf: add test for bpf_tcp_gen_syncookie
Modify the existing bpf_tcp_check_syncookie test to also generate a
SYN cookie, pass the packet to the kernel, and verify that the two
cookies are the same (and both valid). Since cloned SKBs are skipped
during generic XDP, this test does not issue a SYN cookie when run in
XDP mode. We therefore only check that a valid SYN cookie was issued at
the TC hook.
Additionally, verify that the MSS for that SYN cookie is within
expected range.
Signed-off-by: Petar Penkov <[email protected]>
Reviewed-by: Lorenz Bauer <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions