aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
diff options
context:
space:
mode:
authorJohn Fastabend <[email protected]>2023-05-23 02:56:14 +0000
committerDaniel Borkmann <[email protected]>2023-05-23 14:10:58 +0000
commit298970c8af9d73a9f3df4ac871a4456f87fd4cab (patch)
tree8dc1433b7f44935565eac23700f8acca3ba81ded /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
parentbpf, sockmap: Pull socket helpers out of listen test for general use (diff)
downloadkernel-298970c8af9d73a9f3df4ac871a4456f87fd4cab.tar.gz
kernel-298970c8af9d73a9f3df4ac871a4456f87fd4cab.zip
bpf, sockmap: Build helper to create connected socket pair
A common operation for testing is to spin up a pair of sockets that are connected. Then we can use these to run specific tests that need to send data, check BPF programs and so on. The sockmap_listen programs already have this logic lets move it into the new sockmap_helpers header file for general use. Signed-off-by: John Fastabend <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Jakub Sitnicki <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions