Searched refs:sk_fds (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | tcp_hdr_options.c | 35 struct sk_fds { struct 67 static void sk_fds_close(struct sk_fds *sk_fds) in sk_fds_close() argument 74 static int sk_fds_shutdown(struct sk_fds *sk_fds) in sk_fds_shutdown() argument 105 sk_fds->active_fd = connect_to_fd(sk_fds->srv_fd, 0); in sk_fds_connect() 124 sk_fds->passive_fd = accept(sk_fds->srv_fd, NULL, 0); in sk_fds_connect() 146 memset(sk_fds, -1, sizeof(*sk_fds)); in sk_fds_connect() 298 struct sk_fds sk_fds; in fastopen_estab() local 335 struct sk_fds sk_fds; in syncookie_estab() local 379 struct sk_fds sk_fds; in fin() local 411 struct sk_fds sk_fds; in __simple_estab() local [all …]
|
H A D | select_reuseport.c | 36 static int sk_fds[REUSEPORT_ARRAY_SIZE]; variable 428 srv_fd = sk_fds[ev.data.u32]; in do_test() 612 sk_fds[i] = socket(family, type, 0); in prepare_sk_fds() 614 i, sk_fds[i], errno); in prepare_sk_fds() 615 err = setsockopt(sk_fds[i], SOL_SOCKET, SO_REUSEPORT, in prepare_sk_fds() 622 err = setsockopt(sk_fds[i], SOL_SOCKET, in prepare_sk_fds() 635 err = listen(sk_fds[i], 10); in prepare_sk_fds() 641 err = bpf_map_update_elem(reuseport_array, &i, &sk_fds[i], in prepare_sk_fds() 649 err = getsockname(sk_fds[i], (struct sockaddr *)&srv_sa, in prepare_sk_fds() 663 err = epoll_ctl(epfd, EPOLL_CTL_ADD, sk_fds[i], &ev); in prepare_sk_fds() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | sk_storage_map.c | 166 int i, map_fd, err, *sk_fds; in insert_close_thread() local 168 sk_fds = malloc(sizeof(*sk_fds) * nr_sk_per_thread); in insert_close_thread() 169 if (!sk_fds) { in insert_close_thread() 175 sk_fds[i] = -1; in insert_close_thread() 183 sk_fds[i] = socket(AF_INET6, SOCK_STREAM, 0); in insert_close_thread() 184 if (sk_fds[i] == -1) { in insert_close_thread() 205 close(sk_fds[i]); in insert_close_thread() 206 sk_fds[i] = -1; in insert_close_thread() 212 free(sk_fds); in insert_close_thread() 217 close(sk_fds[i]); in insert_close_thread() [all …]
|