Lines Matching refs:in6
171 check_in6_linklocal(struct sockaddr_in6 *const in6, const char *const h_addr) in check_in6_linklocal() argument
173 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6_linklocal()
175 in6->sin6_scope_id = 0xfacefeed; in check_in6_linklocal()
176 unsigned int len = sizeof(*in6); in check_in6_linklocal()
177 int ret = connect(-1, (void *) in6, len); in check_in6_linklocal()
183 ntohs(in6->sin6_port), h_addr, in check_in6_linklocal()
184 ntohl(in6->sin6_flowinfo), in6->sin6_scope_id, len, ret); in check_in6_linklocal()
186 in6->sin6_scope_id = ifindex_lo(); in check_in6_linklocal()
187 if (in6->sin6_scope_id) { in check_in6_linklocal()
188 ret = connect(-1, (void *) in6, len); in check_in6_linklocal()
194 ntohs(in6->sin6_port), h_addr, ntohl(in6->sin6_flowinfo), in check_in6_linklocal()
206 TAIL_ALLOC_OBJECT_VAR_PTR(struct sockaddr_in6, in6); in check_in6()
207 in6->sin6_family = AF_INET6; in check_in6()
208 in6->sin6_port = htons(h_port); in check_in6()
209 in6->sin6_flowinfo = htonl(h_flowinfo); in check_in6()
210 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6()
211 in6->sin6_scope_id = 0xfacefeed; in check_in6()
212 unsigned int len = sizeof(*in6); in check_in6()
213 int ret = connect(-1, (void *) in6, len); in check_in6()
218 h_port, h_addr, h_flowinfo, in6->sin6_scope_id, len, ret); in check_in6()
220 check_in6_linklocal(in6, "fe80::"); in check_in6()
221 check_in6_linklocal(in6, "ff42::"); in check_in6()
223 in6 = ((void *) in6) - 4; in check_in6()
224 in6->sin6_family = AF_INET6; in check_in6()
225 in6->sin6_port = htons(h_port); in check_in6()
226 in6->sin6_flowinfo = htonl(h_flowinfo); in check_in6()
227 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6()
228 in6->sin6_scope_id = 0xfacefeed; in check_in6()
229 len = sizeof(*in6) + 4; in check_in6()
230 ret = connect(-1, (void *) in6, len); in check_in6()
235 h_port, h_addr, h_flowinfo, in6->sin6_scope_id, len, ret); in check_in6()
237 in6 = ((void *) in6) + 4 + sizeof(in6->sin6_scope_id); in check_in6()
238 in6->sin6_family = AF_INET6; in check_in6()
239 in6->sin6_port = htons(h_port); in check_in6()
240 in6->sin6_flowinfo = htonl(h_flowinfo); in check_in6()
241 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6()
242 len = sizeof(*in6) - sizeof(in6->sin6_scope_id); in check_in6()
243 ret = connect(-1, (void *) in6, len); in check_in6()
250 in6 = ((void *) in6) + 4; in check_in6()
251 in6->sin6_family = AF_INET6; in check_in6()
252 in6->sin6_port = 0; in check_in6()
253 in6->sin6_flowinfo = 0; in check_in6()
254 memset(&in6->sin6_addr, '0', sizeof(in6->sin6_addr) - 4); in check_in6()
255 len = sizeof(*in6) - sizeof(in6->sin6_scope_id) - 4; in check_in6()
256 ret = connect(-1, (void *) in6, len); in check_in6()
263 len = sizeof(*in6) - sizeof(in6->sin6_scope_id); in check_in6()
264 ret = connect(-1, (void *) in6, len); in check_in6()
265 printf("connect(-1, %p, %u) = %d EBADF (%m)\n", in6, len, ret); in check_in6()