Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
Dsockmap_listen.c131 #define xsocket(family, sotype, flags) \ argument
133 int __ret = socket(family, sotype, flags); \
287 static int socket_loopback_reuseport(int family, int sotype, int progfd) in socket_loopback_reuseport() argument
295 s = xsocket(family, sotype, 0); in socket_loopback_reuseport()
306 if (sotype & SOCK_DGRAM) in socket_loopback_reuseport()
319 static int socket_loopback(int family, int sotype) in socket_loopback() argument
321 return socket_loopback_reuseport(family, sotype, -1); in socket_loopback()
324 static void test_insert_invalid(int family, int sotype, int mapfd) in test_insert_invalid() argument
341 static void test_insert_opened(int family, int sotype, int mapfd) in test_insert_opened() argument
347 s = xsocket(family, sotype, 0); in test_insert_opened()
[all …]
Dsk_lookup.c74 int sotype; member
112 static int make_socket(int sotype, const char *ip, int port, in make_socket() argument
123 fd = socket(addr->ss_family, sotype, 0); in make_socket()
146 static int make_server(int sotype, const char *ip, int port, in make_server() argument
153 fd = make_socket(sotype, ip, port, &addr); in make_server()
158 if (sotype == SOCK_DGRAM) { in make_server()
167 if (sotype == SOCK_DGRAM && addr.ss_family == AF_INET6) { in make_server()
176 if (sotype == SOCK_STREAM) { in make_server()
200 if (sotype == SOCK_STREAM) { in make_server()
223 static int make_client(int sotype, const char *ip, int port) in make_client() argument
[all …]
Dselect_reuseport.c773 static const char *sotype_str(int sotype) in sotype_str() argument
775 switch (sotype) { in sotype_str()
787 static void test_config(int sotype, sa_family_t family, bool inany) in test_config() argument
790 void (*fn)(int sotype, sa_family_t family); in test_config()
809 if (t->need_sotype && t->need_sotype != sotype) in test_config()
814 family_str(family), sotype_str(sotype), in test_config()
820 setup_per_test(sotype, family, inany, t->no_inner_map); in test_config()
821 t->fn(sotype, family); in test_config()
831 int sotype; in test_all() member
845 test_config(c->sotype, c->family, c->inany); in test_all()