Lines Matching refs:family
13 static int tcp_server(int family) in tcp_server() argument
17 s = socket(family, SOCK_STREAM, 0); in tcp_server()
36 static void test_sockmap_ktls_disconnect_after_delete(int family, int map) in test_sockmap_ktls_disconnect_after_delete() argument
42 srv = tcp_server(family); in test_sockmap_ktls_disconnect_after_delete()
50 cli = socket(family, SOCK_STREAM, 0); in test_sockmap_ktls_disconnect_after_delete()
79 static void test_sockmap_ktls_update_fails_when_sock_has_ulp(int family, int map) in test_sockmap_ktls_update_fails_when_sock_has_ulp() argument
87 switch (family) { in test_sockmap_ktls_update_fails_when_sock_has_ulp()
97 PRINT_FAIL("unsupported socket family %d", family); in test_sockmap_ktls_update_fails_when_sock_has_ulp()
101 s = socket(family, SOCK_STREAM, 0); in test_sockmap_ktls_update_fails_when_sock_has_ulp()
135 static const char *fmt_test_name(const char *subtest_name, int family, in fmt_test_name() argument
149 static void run_tests(int family, enum bpf_map_type map_type) in run_tests() argument
157 if (test__start_subtest(fmt_test_name("disconnect_after_delete", family, map_type))) in run_tests()
158 test_sockmap_ktls_disconnect_after_delete(family, map); in run_tests()
159 if (test__start_subtest(fmt_test_name("update_fails_when_sock_has_ulp", family, map_type))) in run_tests()
160 test_sockmap_ktls_update_fails_when_sock_has_ulp(family, map); in run_tests()