Searched refs:sk_fds (Results 1 - 3 of 3) sorted by relevance

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtcp_hdr_options.c35 struct sk_fds { struct
67 static void sk_fds_close(struct sk_fds *sk_fds) argument
69 close(sk_fds->srv_fd);
70 close(sk_fds->passive_fd);
71 close(sk_fds->active_fd);
74 static int sk_fds_shutdown(struct sk_fds *sk_fds) argument
78 shutdown(sk_fds->active_fd, SHUT_WR);
79 ret = read(sk_fds
91 sk_fds_connect(struct sk_fds *sk_fds, bool fast_open) argument
181 check_error_linum(const struct sk_fds *sk_fds) argument
206 check_hdr_and_close_fds(struct sk_fds *sk_fds) argument
298 struct sk_fds sk_fds; local
335 struct sk_fds sk_fds; local
379 struct sk_fds sk_fds; local
411 struct sk_fds sk_fds; local
463 struct sk_fds sk_fds; local
[all...]
H A Dselect_reuseport.c36 static int sk_fds[REUSEPORT_ARRAY_SIZE]; variable
428 srv_fd = sk_fds[ev.data.u32];
446 "recv(sk_fds)",
511 * TCP-SYN: select sk_fds[tmp_index = 1] tmp_index is from the
513 * TCP-ACK: select sk_fds[reuseport_index = 0] reuseport_index
550 err = setsockopt(sk_fds[0], SOL_SOCKET, SO_DETACH_REUSEPORT_BPF,
555 err = setsockopt(sk_fds[1], SOL_SOCKET, SO_DETACH_REUSEPORT_BPF,
608 * The sk_fds[] is filled from the back such that the order
612 sk_fds[i] = socket(family, type, 0);
613 RET_IF(sk_fds[
[all...]
/linux-master/tools/testing/selftests/bpf/map_tests/
H A Dsk_storage_map.c166 int i, map_fd, err, *sk_fds; local
168 sk_fds = malloc(sizeof(*sk_fds) * nr_sk_per_thread);
169 if (!sk_fds) {
175 sk_fds[i] = -1;
183 sk_fds[i] = socket(AF_INET6, SOCK_STREAM, 0);
184 if (sk_fds[i] == -1) {
189 err = bpf_map_update_elem(map_fd, &sk_fds[i], &value,
205 close(sk_fds[i]);
206 sk_fds[
[all...]

Completed in 137 milliseconds