Lines Matching full:c1

454 	int n, err, map, verdict, c1 = -1, p1 = -1;  in test_sockmap_skb_verdict_shutdown()  local
472 err = create_pair(AF_INET, SOCK_STREAM, &c1, &p1); in test_sockmap_skb_verdict_shutdown()
476 err = bpf_map_update_elem(map, &zero, &c1, BPF_NOEXIST); in test_sockmap_skb_verdict_shutdown()
483 ev.data.fd = c1; in test_sockmap_skb_verdict_shutdown()
488 err = epoll_ctl(epollfd, EPOLL_CTL_ADD, c1, &ev); in test_sockmap_skb_verdict_shutdown()
495 n = recv(c1, &b, 1, SOCK_NONBLOCK); in test_sockmap_skb_verdict_shutdown()
498 close(c1); in test_sockmap_skb_verdict_shutdown()
506 int err, map, verdict, c0 = -1, c1 = -1, p0 = -1, p1 = -1; in test_sockmap_skb_verdict_fionread() local
534 err = create_socket_pairs(AF_INET, SOCK_STREAM, &c0, &c1, &p0, &p1); in test_sockmap_skb_verdict_fionread()
538 err = bpf_map_update_elem(map, &zero, &c1, BPF_NOEXIST); in test_sockmap_skb_verdict_fionread()
539 if (!ASSERT_OK(err, "bpf_map_update_elem(c1)")) in test_sockmap_skb_verdict_fionread()
544 err = ioctl(c1, FIONREAD, &avail); in test_sockmap_skb_verdict_fionread()
549 recvd = recv_timeout(c1, &buf, sizeof(buf), SOCK_NONBLOCK, IO_TIMEOUT_SEC); in test_sockmap_skb_verdict_fionread()
556 close(c1); in test_sockmap_skb_verdict_fionread()
567 int err, c1, p1, zero = 0, sent, recvd, avail; in test_sockmap_skb_verdict_peek_helper() local
571 err = create_pair(AF_INET, SOCK_STREAM, &c1, &p1); in test_sockmap_skb_verdict_peek_helper()
575 err = bpf_map_update_elem(map, &zero, &c1, BPF_NOEXIST); in test_sockmap_skb_verdict_peek_helper()
576 if (!ASSERT_OK(err, "bpf_map_update_elem(c1)")) in test_sockmap_skb_verdict_peek_helper()
581 recvd = recv(c1, rcv, sizeof(rcv), MSG_PEEK); in test_sockmap_skb_verdict_peek_helper()
582 ASSERT_EQ(recvd, sizeof(rcv), "recv(c1)"); in test_sockmap_skb_verdict_peek_helper()
583 err = ioctl(c1, FIONREAD, &avail); in test_sockmap_skb_verdict_peek_helper()
586 recvd = recv(c1, rcv, sizeof(rcv), 0); in test_sockmap_skb_verdict_peek_helper()
588 err = ioctl(c1, FIONREAD, &avail); in test_sockmap_skb_verdict_peek_helper()
593 close(c1); in test_sockmap_skb_verdict_peek_helper()