Lines Matching defs:sin6
407 struct sockaddr_in6 *sin6;
447 && otolen >= sizeof(*sin6)) {
449 *tolen = sizeof(*sin6);
450 sin6 = (struct sockaddr_in6 *)to;
451 memset(sin6, 0, sizeof(*sin6));
452 sin6->sin6_family = AF_INET6;
454 sin6->sin6_len = sizeof(*sin6);
456 memcpy(&sin6->sin6_addr, &pi->ipi6_addr,
457 sizeof(sin6->sin6_addr));
459 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr))
460 sin6->sin6_scope_id = pi->ipi6_ifindex;
462 sin6->sin6_scope_id = 0;
463 sin6->sin6_port =
491 && otolen >= sizeof(*sin6)) {
492 *tolen = sizeof(*sin6);
493 sin6 = (struct sockaddr_in6 *)to;
494 memset(sin6, 0, sizeof(*sin6));
495 sin6->sin6_family = AF_INET6;
496 sin6->sin6_len = sizeof(*sin6);
497 memcpy(&sin6->sin6_addr, CMSG_DATA(cm),
498 sizeof(sin6->sin6_addr));
499 sin6->sin6_port =