/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | sockmap_listen.c | 35 int family, int sotype, int mapfd) in test_insert_invalid() argument 53 int family, int sotype, int mapfd) in test_insert_opened() argument 59 s = xsocket(family, sotype, 0); in test_insert_opened() 66 if (sotype == SOCK_STREAM) { in test_insert_opened() 75 int family, int sotype, int mapfd) in test_insert_bound() argument 85 s = xsocket(family, sotype, 0); in test_insert_bound() 103 int family, int sotype, int mapfd) in test_insert() argument 109 s = socket_loopback(family, sotype); in test_insert() 120 int family, int sotype, int mapfd) in test_delete_after_insert() argument 126 s = socket_loopback(family, sotype); in test_delete_after_insert() [all …]
|
D | sk_lookup.c | 70 int sotype; member 79 int sotype; member 115 if (co->sotype == SOCK_DGRAM) { in setsockopts() 124 if (co->sotype == SOCK_DGRAM && co->family == AF_INET6) { in setsockopts() 133 if (co->sotype == SOCK_STREAM) { in setsockopts() 155 static int make_server(int sotype, const char *ip, int port, in make_server() argument 160 .sotype = sotype, in make_server() 170 fd = start_server_str(cb_opts.family, sotype, ip, port, &opts); in make_server() 550 server_fds[i] = make_server(t->sotype, t->listen_at.ip, in run_lookup_prog() 573 reuse_conn_fd = make_server(t->sotype, t->listen_at.ip, in run_lookup_prog() [all …]
|
D | vrf_socket_lookup.c | 62 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() 84 static int make_server(int sotype, const char *ip, int port, const char *ifname) in make_server() argument 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() 236 static void _test_vrf_socket_lookup(struct vrf_socket_lookup *skel, int sotype, in _test_vrf_socket_lookup() argument 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() [all …]
|
D | sockmap_helpers.h | 129 #define xsocket(family, sotype, flags) \ argument 131 int __ret = socket(family, sotype, flags); \ 352 static inline int socket_loopback_reuseport(int family, int sotype, int progfd) in socket_loopback_reuseport() argument 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() 389 static inline int create_pair(int family, int sotype, int *p0, int *p1) in create_pair() argument 396 s = socket_loopback(family, sotype); in create_pair() 404 c = xsocket(family, sotype, 0); in create_pair() [all …]
|
D | assign_reuse.c | 82 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()
|
D | select_reuseport.c | 754 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()
|