diff options
author | Geliang Tang <tanggeliang@kylinos.cn> | 2024-05-05 19:35:09 +0800 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2024-05-09 13:40:38 -0700 |
commit | 5166b3e3e30a8eb93f7182283ed4db719bdfde1a (patch) | |
tree | 1411c5e983766b8bc25f2b8184adb1ce73d47f08 /tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c | |
parent | 20434d2d896f85b38fa1fe91b8739afcd9cde3b3 (diff) | |
download | linux-5166b3e3e30a8eb93f7182283ed4db719bdfde1a.tar.gz linux-5166b3e3e30a8eb93f7182283ed4db719bdfde1a.tar.bz2 linux-5166b3e3e30a8eb93f7182283ed4db719bdfde1a.zip |
selftests/bpf: Use start_server_addr in sockopt_inherit
Include network_helpers.h in prog_tests/sockopt_inherit.c, use public
helper start_server_addr() instead of the local defined function
start_server(). This can avoid duplicate code.
Add a helper custom_cb() to set SOL_CUSTOM sockopt looply, set it to
post_socket_cb pointer of struct network_helper_opts, and pass it to
start_server_addr().
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Link: https://lore.kernel.org/r/687af66f743a0bf15cdba372c5f71fe64863219e.1714907662.git.tanggeliang@kylinos.cn
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c')
0 files changed, 0 insertions, 0 deletions