Lines Matching defs:fd
26 static int settcpca(int fd, const char *tcp_ca)
30 err = setsockopt(fd, IPPROTO_TCP, TCP_CONGESTION, tcp_ca, strlen(tcp_ca));
39 int lfd = -1, fd = -1;
46 fd = socket(AF_INET6, SOCK_STREAM, 0);
47 if (!ASSERT_NEQ(fd, -1, "socket")) {
52 if (settcpca(lfd, tcp_ca) || settcpca(fd, tcp_ca))
56 err = bpf_map_update_elem(bpf_map__fd(sk_stg_map), &fd,
63 err = connect_fd_to_fd(fd, lfd, 0);
70 err = bpf_map_lookup_elem(bpf_map__fd(sk_stg_map), &fd,
77 ASSERT_OK(send_recv_data(lfd, fd, total_bytes), "send_recv_data");
81 close(fd);
426 * old map fd given here matches the map backing the link.