diff options
author | John Fastabend <john.fastabend@gmail.com> | 2023-05-22 19:56:14 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2023-05-23 16:10:58 +0200 |
commit | 298970c8af9d73a9f3df4ac871a4456f87fd4cab (patch) | |
tree | 8dc1433b7f44935565eac23700f8acca3ba81ded /net/unix/af_unix.c | |
parent | 4e02588d9a95b21f8d25d66cb6c24f9df1532f6b (diff) | |
download | linux-298970c8af9d73a9f3df4ac871a4456f87fd4cab.tar.gz linux-298970c8af9d73a9f3df4ac871a4456f87fd4cab.tar.bz2 linux-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 <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/bpf/20230523025618.113937-11-john.fastabend@gmail.com
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions