Home | History | Annotate | Download | only in src

Lines Matching refs:sin6

164 adjust_linklocal(struct sockaddr_in6 *sin6)
172 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) ||
173 IN6_IS_ADDR_MC_LINKLOCAL(&sin6->sin6_addr)) {
174 sin6->sin6_scope_id =
175 ntohs(*(u_short *)&sin6->sin6_addr.s6_addr[2]);
176 *(u_short *)&sin6->sin6_addr.s6_addr[2] = 0;
374 struct sockaddr_in6 sin6;
384 memset(&sin6, '\0', sizeof(sin6));
385 sin6.sin6_len = sizeof(sin6);
386 sin6.sin6_family = AF_INET6;
387 sin6.sin6_addr = addr->ncpaddr_ip6addr;
389 adjust_linklocal(&sin6);
391 if (getnameinfo((struct sockaddr *)&sin6, sizeof sin6, res, sizeof(res),
890 const struct in6_addr *sin6;
894 sin6 = &range->ncprange_ip6addr;
895 if (IN6_IS_ADDR_LINKLOCAL(sin6) || IN6_IS_ADDR_MC_LINKLOCAL(sin6))
896 if ((scopeid = ntohs(*(const u_short *)&sin6->s6_addr[2])) == 0)