Lines Matching refs:s
63 static int send_receive_packet(int s[2], const void* pkt, int len) in send_receive_packet()
68 ret = send(s[1], pkt, len, 0); in send_receive_packet()
73 ret = recv(s[0], tmp, len, MSG_DONTWAIT); in send_receive_packet()
93 int s[2], ret; in main() local
95 ret = socketpair(AF_UNIX, SOCK_DGRAM, 0, s); in main()
100 ret = setsockopt(s[0], SOL_SOCKET, SO_ATTACH_FILTER, in main()
106 ret = send_receive_packet(s, &chksz, sizeof(chksz)); in main()
112 ret = setsockopt(s[0], SOL_SOCKET, SO_ATTACH_FILTER, in main()
118 ret = send_receive_packet(s, &chksz, sizeof(chksz)); in main()
124 ret = setsockopt(s[0], SOL_SOCKET, SO_ATTACH_FILTER, in main()
130 ret = send_receive_packet(s, chkrem, sizeof(chkrem)); in main()