bpf: add selftest for bpf's (set|get)_sockopt for SAVE_SYN
authorNikita V. Shirokov <tehnerd@fb.com>
Fri, 31 Aug 2018 16:43:47 +0000 (09:43 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 31 Aug 2018 23:37:00 +0000 (01:37 +0200)
commit9746b1ee2edcabfb8f40d5311f23ac2f01f152ed
tree27afb88a523d5aeb3cb69c814530117c8cbda721
parent11c3f5113600c40cc8789f9a7023e02b73cb0ca7
bpf: add selftest for bpf's (set|get)_sockopt for SAVE_SYN

adding selftest for feature, introduced in commit 9452048c79404 ("bpf:
add TCP_SAVE_SYN/TCP_SAVED_SYN options for bpf_(set|get)sockopt").

Signed-off-by: Nikita V. Shirokov <tehnerd@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_tcpbpf_kern.c
tools/testing/selftests/bpf/test_tcpbpf_user.c