Home
last modified time | relevance | path

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

/linux-6.1.9/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.c73 int sotype; member
111 static int make_socket(int sotype, const char *ip, int port, in make_socket() argument
122 fd = socket(addr->ss_family, sotype, 0); in make_socket()
145 static int make_server(int sotype, const char *ip, int port, in make_server() argument
152 fd = make_socket(sotype, ip, port, &addr); in make_server()
157 if (sotype == SOCK_DGRAM) { in make_server()
166 if (sotype == SOCK_DGRAM && addr.ss_family == AF_INET6) { in make_server()
175 if (sotype == SOCK_STREAM) { in make_server()
199 if (sotype == SOCK_STREAM) { in make_server()
222 static int make_client(int sotype, const char *ip, int port) in make_client() argument
[all …]
Dselect_reuseport.c764 static const char *sotype_str(int sotype) in sotype_str() argument
766 switch (sotype) { in sotype_str()
778 static void test_config(int sotype, sa_family_t family, bool inany) in test_config() argument
781 void (*fn)(int sotype, sa_family_t family); in test_config()
800 if (t->need_sotype && t->need_sotype != sotype) in test_config()
805 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()
822 int sotype; in test_all() member
836 test_config(c->sotype, c->family, c->inany); in test_all()