diff options
| author | Geliang Tang <[email protected]> | 2024-07-09 09:16:22 +0000 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2024-07-10 18:56:22 +0000 |
| commit | 9004054b1629d481fedea2d92b880f79fc6fa81b (patch) | |
| tree | 12b3e6845feb8f2fe2a2404a76dce3df324dddf1 /tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c | |
| parent | selftests/bpf: Use start_server_addr in sk_lookup (diff) | |
| download | kernel-9004054b1629d481fedea2d92b880f79fc6fa81b.tar.gz kernel-9004054b1629d481fedea2d92b880f79fc6fa81b.zip | |
selftests/bpf: Use connect_fd_to_fd in sk_lookup
This patch uses public helper connect_fd_to_fd() exported in
network_helpers.h instead of using getsockname() + connect() in
run_lookup_prog() in prog_tests/sk_lookup.c. This can simplify
the code.
Signed-off-by: Geliang Tang <[email protected]>
Link: https://lore.kernel.org/r/7077c277cde5a1864cdc244727162fb75c8bb9c5.1720515893.git.tanggeliang@kylinos.cn
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c')
0 files changed, 0 insertions, 0 deletions
