Lines Matching refs:fd64
1181 __s64 fd64; in prepare_reuseport_grp() local
1191 fd64 = socket(AF_INET6, type, 0); in prepare_reuseport_grp()
1192 CHECK(fd64 == -1, "socket()", in prepare_reuseport_grp()
1194 type, fd64, errno); in prepare_reuseport_grp()
1196 err = setsockopt(fd64, SOL_SOCKET, SO_REUSEPORT, in prepare_reuseport_grp()
1202 err = bpf_map_update_elem(map_fd, &index0, &fd64, in prepare_reuseport_grp()
1209 err = bind(fd64, (struct sockaddr *)&s6, sizeof(s6)); in prepare_reuseport_grp()
1214 err = getsockname(fd64, (struct sockaddr *)&s6, in prepare_reuseport_grp()
1221 err = getsockopt(fd64, SOL_SOCKET, SO_COOKIE, &sk_cookie, in prepare_reuseport_grp()
1231 err = bpf_map_update_elem(map_fd, &index0, &fd64, in prepare_reuseport_grp()
1237 err = listen(fd64, 0); in prepare_reuseport_grp()
1243 fds64[i] = fd64; in prepare_reuseport_grp()
1255 __s64 grpa_fds64[2] = { -1, -1 }, fd64 = -1; in test_reuseport_array() local
1271 err = bpf_map_update_elem(map_fd, &bad_index, &fd64, BPF_ANY); in test_reuseport_array()
1340 fd64 = grpa_fds64[fds_idx]; in test_reuseport_array()
1344 err = bpf_map_update_elem(map_fd, &index3, &fd64, BPF_ANY); in test_reuseport_array()
1350 err = bpf_map_update_elem(map_fd, &index0, &fd64, BPF_ANY); in test_reuseport_array()
1363 err = bpf_map_update_elem(map_fd, &index3, &fd64, BPF_NOEXIST); in test_reuseport_array()
1386 fd64 = socket(AF_INET6, SOCK_RAW, IPPROTO_UDP); in test_reuseport_array()
1387 CHECK(fd64 == -1, "socket(SOCK_RAW)", "err:%d errno:%d\n", in test_reuseport_array()
1389 err = bpf_map_update_elem(map_fd, &index3, &fd64, BPF_NOEXIST); in test_reuseport_array()
1392 close(fd64); in test_reuseport_array()
1402 prepare_reuseport_grp(SOCK_STREAM, map_fd, &fd64, &sk_cookie, 1); in test_reuseport_array()
1403 fd = fd64; in test_reuseport_array()