Lines Matching refs:family
34 static void build_rcv_fd(int family, int proto, int *rcv_fds, int count, in build_rcv_fd() argument
44 switch (family) { in build_rcv_fd()
46 addr4.sin_family = family; in build_rcv_fd()
49 else if (!inet_pton(family, addr_str, &addr4.sin_addr.s_addr)) in build_rcv_fd()
59 else if (!inet_pton(family, addr_str, &addr6.sin6_addr)) in build_rcv_fd()
66 error(1, 0, "Unsupported family %d", family); in build_rcv_fd()
75 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd()
101 static int connect_and_send(int family, int proto) in connect_and_send() argument
110 switch (family) { in connect_and_send()
117 if (!inet_pton(family, IP4_ADDR, &daddr4.sin_addr.s_addr)) in connect_and_send()
130 if (!inet_pton(family, IP6_ADDR, &daddr6.sin6_addr)) in connect_and_send()
139 error(1, 0, "Unsupported family %d", family); in connect_and_send()
147 fd = socket(family, proto, 0); in connect_and_send()
194 static void test(int *rcv_fds, int count, int family, int proto, int fd) in test() argument
210 send_fd = connect_and_send(family, proto); in test()