Home
last modified time | relevance | path

Searched refs:sotype (Results 1 – 6 of 6) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
A Dsockmap_listen.c726 int sotype) in test_skb_redir_to_connected() argument
751 int sotype) in test_msg_redir_to_connected() argument
846 int sotype) in test_skb_redir_to_listening() argument
871 int sotype) in test_msg_redir_to_listening() argument
948 int sotype) in test_skb_redir_partial() argument
1268 switch (sotype) { in sotype_str()
1285 int sotype; in test_ops() member
1324 if (t->sotype != 0 && t->sotype != sotype) in test_ops()
1477 int sotype) in test_unix_redir() argument
1607 int sotype; in test_reuseport() member
[all …]
A Dsk_lookup.c70 int sotype; member
79 int sotype; member
160 .sotype = sotype, in make_server()
693 .sotype = SOCK_DGRAM, in test_redirect_lookup()
701 .sotype = SOCK_DGRAM, in test_redirect_lookup()
710 .sotype = SOCK_DGRAM, in test_redirect_lookup()
720 .sotype = SOCK_DGRAM, in test_redirect_lookup()
731 .sotype = SOCK_DGRAM, in test_redirect_lookup()
740 .sotype = SOCK_DGRAM, in test_redirect_lookup()
748 .sotype = SOCK_DGRAM, in test_redirect_lookup()
[all …]
A Dvrf_socket_lookup.c62 static int make_socket(int sotype, const char *ip, int port, in make_socket() argument
71 fd = socket(AF_INET, sotype, 0); in make_socket()
88 fd = start_server(AF_INET, sotype, ip, port, TIMEOUT_MS); in make_server()
201 static int test_lookup(struct vrf_socket_lookup *skel, int sotype, in test_lookup() argument
209 fd = make_socket(sotype, ip, port, &addr); in test_lookup()
217 if (sotype == SOCK_STREAM) in test_lookup()
247 non_vrf_server = make_server(sotype, "0.0.0.0", NON_VRF_PORT, NULL); in _test_vrf_socket_lookup()
251 in_vrf_server = make_server(sotype, "0.0.0.0", IN_VRF_PORT, "veth02"); in _test_vrf_socket_lookup()
261 if (!ASSERT_OK(test_lookup(skel, sotype, IP4_ADDR_VETH02, NON_VRF_PORT, in _test_vrf_socket_lookup()
264 if (!ASSERT_OK(test_lookup(skel, sotype, IP4_ADDR_VETH02, IN_VRF_PORT, in _test_vrf_socket_lookup()
[all …]
A Dsockmap_helpers.h131 int __ret = socket(family, sotype, flags); \
360 s = xsocket(family, sotype, 0); in socket_loopback_reuseport()
371 if (sotype & SOCK_DGRAM) in socket_loopback_reuseport()
384 static inline int socket_loopback(int family, int sotype) in socket_loopback() argument
386 return socket_loopback_reuseport(family, sotype, -1); in socket_loopback()
396 s = socket_loopback(family, sotype); in create_pair()
404 c = xsocket(family, sotype, 0); in create_pair()
422 switch (sotype & SOCK_TYPE_MASK) { in create_pair()
443 FAIL("Unsupported socket type %#x", sotype); in create_pair()
456 err = create_pair(family, sotype, c0, p0); in create_socket_pairs()
[all …]
A Dassign_reuse.c82 void run_assign_reuse(int family, int sotype, const char *ip, __u16 port) in run_assign_reuse() argument
116 fd_sv = start_reuseport_server(family, sotype, ip, port, 100, 1); in run_assign_reuse()
142 if (sotype == SOCK_STREAM) in run_assign_reuse()
152 if (sotype == SOCK_STREAM) in run_assign_reuse()
A Dselect_reuseport.c754 static const char *sotype_str(int sotype) in sotype_str() argument
756 switch (sotype) { in sotype_str()
768 static void test_config(int sotype, sa_family_t family, bool inany) in test_config() argument
771 void (*fn)(int sotype, sa_family_t family); in test_config()
791 if (t->need_sotype && t->need_sotype != sotype) in test_config()
796 family_str(family), sotype_str(sotype), in test_config()
811 setup_per_test(sotype, family, inany, t->no_inner_map); in test_config()
812 t->fn(sotype, family); in test_config()
825 int sotype; in test_all() member
839 test_config(c->sotype, c->family, c->inany); in test_all()

Completed in 21 milliseconds