Home
last modified time | relevance | path

Searched refs:sin6_addr (Results 1 – 25 of 377) sorted by relevance

12345678910>>...16

/freebsd/sys/netinet6/
H A Din6_src.c194 dst = dstsock->sin6_addr; /* make a copy for local operation */ in in6_selectsrc()
256 bcopy(&ia->ia_addr.sin6_addr, srcp, sizeof(*srcp)); in in6_selectsrc()
319 src = ia->ia_addr.sin6_addr; in in6_selectsrc()
336 prison_check_ip6(cred, &ia->ia_addr.sin6_addr) != 0) in in6_selectsrc()
340 if (IN6_ARE_ADDR_EQUAL(&dst, &ia->ia_addr.sin6_addr)) { in in6_selectsrc()
351 new_scope = in6_addrscope(&ia->ia_addr.sin6_addr); in in6_selectsrc()
467 new_matchlen = in6_matchlen(&ia->ia_addr.sin6_addr, &dst); in in6_selectsrc()
484 in6_addrscope(&ia_best->ia_addr.sin6_addr)); in in6_selectsrc()
488 in6_matchlen(&ia_best->ia_addr.sin6_addr, in in6_selectsrc()
513 tmp = ia->ia_addr.sin6_addr; in in6_selectsrc()
[all …]
H A Dip6_forward.c182 dst.sin6_addr = ip6->ip6_dst; in ip6_forward()
185 nh = fib6_lookup(M_GETFIB(m), &dst.sin6_addr, dst.sin6_scope_id, in ip6_forward()
257 dst.sin6_addr = nh->gw6_sa.sin6_addr; in ip6_forward()
258 dst.sin6_scope_id = ntohs(in6_getscope(&dst.sin6_addr)); in ip6_forward()
259 in6_clearscope(&dst.sin6_addr); in ip6_forward()
341 dst.sin6_addr = ip6->ip6_dst; in ip6_forward()
342 in6_clearscope(&dst.sin6_addr); in ip6_forward()
369 dst.sin6_scope_id = ntohs(in6_getscope(&gw6->sin6_addr)); in ip6_forward()
370 dst.sin6_addr = gw6->sin6_addr; in ip6_forward()
371 in6_clearscope(&dst.sin6_addr); in ip6_forward()
[all …]
H A Dscope6.c327 zoneid = scope6_addr2default(&sin6->sin6_addr); in sa6_embedscope()
330 (IN6_IS_SCOPE_LINKLOCAL(&sin6->sin6_addr) || in sa6_embedscope()
331 IN6_IS_ADDR_MC_INTFACELOCAL(&sin6->sin6_addr))) { in sa6_embedscope()
348 sin6->sin6_addr.s6_addr16[1] = htons(zoneid & 0xffff); in sa6_embedscope()
364 if (IN6_IS_SCOPE_LINKLOCAL(&sin6->sin6_addr) || in sa6_recoverscope()
365 IN6_IS_ADDR_MC_INTFACELOCAL(&sin6->sin6_addr)) { in sa6_recoverscope()
369 zoneid = ntohs(sin6->sin6_addr.s6_addr16[1]); in sa6_recoverscope()
385 ip6_sprintf(ip6buf, &sin6->sin6_addr), in sa6_recoverscope()
388 sin6->sin6_addr.s6_addr16[1] = 0; in sa6_recoverscope()
558 scope = in6_addrscope(&sa6->sin6_addr); in sa6_checkzone()
[all …]
H A Dnd6_rtr.c516 pr.ndpr_prefix.sin6_addr = pi->nd_opt_pi_prefix; in nd6_ra_input()
689 .sin6_addr = new->rtaddr, in defrouter_addreq()
723 .sin6_addr = dr->rtaddr, in defrouter_delreq()
1223 plen0 = in6_mask2len(&ib->ia_prefixmask.sin6_addr, NULL); in in6_ifadd()
1233 in6_prepare_ifra(&ifra, &pr->ndpr_prefix.sin6_addr, &mask); in in6_ifadd()
1235 IN6_MASK_ADDR(&ifra.ifra_addr.sin6_addr, &mask); in in6_ifadd()
1237 ifra.ifra_addr.sin6_addr.s6_addr32[0] |= in in6_ifadd()
1238 (ib->ia_addr.sin6_addr.s6_addr32[0] & ~mask.s6_addr32[0]); in in6_ifadd()
1239 ifra.ifra_addr.sin6_addr.s6_addr32[1] |= in in6_ifadd()
1240 (ib->ia_addr.sin6_addr.s6_addr32[1] & ~mask.s6_addr32[1]); in in6_ifadd()
[all …]
H A Din6_fib_algo.c73 #define KEY_LEN_INET6 (offsetof(struct sa_in6, sin6_addr) + sizeof(struct in6_addr))
74 #define OFF_LEN_INET6 (8 * offsetof(struct sa_in6, sin6_addr))
79 struct in6_addr sin6_addr; member
104 .sin6_addr = *key.addr6, in lradix6_lookup()
107 addr6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in lradix6_lookup()
190 ae->addr.sin6_addr = rt_dst->sin6_addr; in lradix6_add_route_cb()
195 mask.sin6_addr = rt_mask->sin6_addr; in lradix6_add_route_cb()
259 .sin6_addr = *key.addr6, in radix6_lookup()
262 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in radix6_lookup()
H A Dip6_mroute.c306 if (IN6_ARE_ADDR_EQUAL(&_rt->mf6c_origin.sin6_addr, &(o)) && \
307 IN6_ARE_ADDR_EQUAL(&_rt->mf6c_mcastgrp.sin6_addr, &(g)) && \
495 MF6CFIND(req->src.sin6_addr, req->grp.sin6_addr, rt); in get_sg_cnt()
818 MF6CFIND(mfccp->mf6cc_origin.sin6_addr, in add_m6fc()
819 mfccp->mf6cc_mcastgrp.sin6_addr, rt); in add_m6fc()
824 ip6_sprintf(ip6bufo, &mfccp->mf6cc_origin.sin6_addr), in add_m6fc()
825 ip6_sprintf(ip6bufg, &mfccp->mf6cc_mcastgrp.sin6_addr), in add_m6fc()
838 hash = MF6CHASH(mfccp->mf6cc_origin.sin6_addr, in add_m6fc()
839 mfccp->mf6cc_mcastgrp.sin6_addr); in add_m6fc()
841 if (IN6_ARE_ADDR_EQUAL(&rt->mf6c_origin.sin6_addr, in add_m6fc()
[all …]
H A Din6_pcb.c198 if ((error = prison_local_ip6(cred, &sin6->sin6_addr, in in6_pcbbind()
203 if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) { in in6_pcbbind()
220 } else if (!IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) { in in6_pcbbind()
255 if (!IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr) && in in6_pcbbind()
258 &sin6->sin6_addr, lport, in in6_pcbbind()
263 (!IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr) || in in6_pcbbind()
273 IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) { in in6_pcbbind()
289 t = in6_pcblookup_local(pcbinfo, &sin6->sin6_addr, in in6_pcbbind()
296 IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) { in in6_pcbbind()
311 inp->in6p_laddr = sin6->sin6_addr; in in6_pcbbind()
[all …]
H A Din6.c424 error = in6_setscope(&sa6->sin6_addr, ifp, NULL); in in6_control_ioctl()
428 &sa6->sin6_addr)) != 0) in in6_control_ioctl()
432 ia = in6ifa_ifpwithaddr(ifp, &sa6->sin6_addr); in in6_control_ioctl()
584 error = mac_inet6_check_add_addr(cred, &sa6->sin6_addr, ifp); in in6_control_ioctl()
685 &ifra->ifra_addr.sin6_addr)) != 0) in in6_update_ifa_join_mc()
828 ifra->ifra_addr.sin6_addr = *addr; in in6_prepare_ifra()
833 ifra->ifra_prefixmask.sin6_addr = *mask; in in6_prepare_ifra()
880 plen = in6_mask2len(&ifra->ifra_prefixmask.sin6_addr, in in6_validate_ifra()
890 plen = in6_mask2len(&ia->ia_prefixmask.sin6_addr, NULL); in in6_validate_ifra()
903 in6_tmp = dst6.sin6_addr; in in6_validate_ifra()
[all …]
H A Dip6_fastfwd.c63 nh = fib6_lookup(M_GETFIB(m), &dst->sin6_addr, in ip6_findroute()
159 dst.sin6_addr = ip6->ip6_dst; in ip6_tryforward()
192 dst.sin6_addr = ip6->ip6_dst; in ip6_tryforward()
256 !IN6_ARE_ADDR_EQUAL(&dst.sin6_addr, &ip6->ip6_dst)) { in ip6_tryforward()
262 dst.sin6_addr = ip6->ip6_dst; in ip6_tryforward()
283 dst.sin6_addr = nh->gw6_sa.sin6_addr; in ip6_tryforward()
H A Dsctp6_usrreq.c118 src.sin6_addr = ip6->ip6_src; in sctp6_input_with_port()
119 if (in6_setscope(&src.sin6_addr, m->m_pkthdr.rcvif, NULL) != 0) { in sctp6_input_with_port()
126 dst.sin6_addr = ip6->ip6_dst; in sctp6_input_with_port()
127 if (in6_setscope(&dst.sin6_addr, m->m_pkthdr.rcvif, NULL) != 0) { in sctp6_input_with_port()
279 src.sin6_addr = ip6cp->ip6c_ip6->ip6_src; in sctp6_ctlinput()
280 if (in6_setscope(&src.sin6_addr, ip6cp->ip6c_m->m_pkthdr.rcvif, NULL) != 0) { in sctp6_ctlinput()
287 dst.sin6_addr = ip6cp->ip6c_ip6->ip6_dst; in sctp6_ctlinput()
288 if (in6_setscope(&dst.sin6_addr, ip6cp->ip6c_m->m_pkthdr.rcvif, NULL) != 0) { in sctp6_ctlinput()
529 if (IN6_IS_ADDR_UNSPECIFIED(&sin6_p->sin6_addr)) { in sctp6_bind()
533 if (IN6_IS_ADDR_V4MAPPED(&sin6_p->sin6_addr)) { in sctp6_bind()
[all …]
H A Din6_gif.c161 CK_LIST_FOREACH(sc, &GIF_SRCHASH(&sin->sin6_addr), srchash) { in in6_gif_srcaddr()
163 &sin->sin6_addr) == 0) in in6_gif_srcaddr()
221 if (IN6_IS_ADDR_UNSPECIFIED(&src->sin6_addr) || in in6_gif_ioctl()
222 IN6_IS_ADDR_UNSPECIFIED(&dst->sin6_addr)) { in in6_gif_ioctl()
239 error = in6_gif_checkdup(sc, &src->sin6_addr, in in6_gif_ioctl()
240 &dst->sin6_addr); in in6_gif_ioctl()
249 ip6->ip6_src = src->sin6_addr; in in6_gif_ioctl()
250 ip6->ip6_dst = dst->sin6_addr; in in6_gif_ioctl()
275 src->sin6_addr = (cmd == SIOCGIFPSRCADDR_IN6) ? in in6_gif_ioctl()
H A Dip6_gre.c206 CK_LIST_FOREACH(sc, &GRE_SRCHASH(&sin->sin6_addr), srchash) { in in6_gre_srcaddr()
208 &sin->sin6_addr) == 0) in in6_gre_srcaddr()
231 if (IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_dst, &dst.sin6_addr)) in in6_gre_udp_input()
320 sin6.sin6_addr = sc->gre_oip6.ip6_src; in in6_gre_setup_socket()
453 if (IN6_IS_ADDR_UNSPECIFIED(&src->sin6_addr) || in in6_gre_ioctl()
454 IN6_IS_ADDR_UNSPECIFIED(&dst->sin6_addr)) { in in6_gre_ioctl()
472 error = in6_gre_checkdup(sc, &src->sin6_addr, in in6_gre_ioctl()
473 &dst->sin6_addr, sc->gre_options); in in6_gre_ioctl()
483 ip6->ip6_src = src->sin6_addr; in in6_gre_ioctl()
484 ip6->ip6_dst = dst->sin6_addr; in in6_gre_ioctl()
[all …]
/freebsd/sys/net/route/
H A Droute_rtentry.c294 if (IN6_IS_SCOPE_LINKLOCAL(&dst->sin6_addr)) in rt_get_inet6_prefix_plen()
295 in6_splitscope(&dst->sin6_addr, paddr, pscopeid); in rt_get_inet6_prefix_plen()
297 *paddr = dst->sin6_addr; in rt_get_inet6_prefix_plen()
302 *plen = inet6_get_plen(&dst->sin6_addr); in rt_get_inet6_prefix_plen()
319 if (IN6_IS_SCOPE_LINKLOCAL(&dst->sin6_addr)) in rt_get_inet6_prefix_pmask()
320 in6_splitscope(&dst->sin6_addr, paddr, pscopeid); in rt_get_inet6_prefix_pmask()
322 *paddr = dst->sin6_addr; in rt_get_inet6_prefix_pmask()
327 *pmask = dst->sin6_addr; in rt_get_inet6_prefix_pmask()
/freebsd/tests/sys/net/routing/
H A Drtsock_config.h110 inet_pton(AF_INET6, buf, &c->net6.sin6_addr); in config_setup()
120 memcpy(&c->addr6.sin6_addr, &c->net6.sin6_addr, sizeof(struct in6_addr)); in config_setup()
122 c->addr6.sin6_addr._s6_addr32[3] = htonl(ntohl(c->net6.sin6_addr._s6_addr32[3]) + 1); in config_setup()
124 inet_ntop(AF_INET6, &c->net6.sin6_addr, c->net6_str, INET6_ADDRSTRLEN); in config_setup()
125 inet_ntop(AF_INET6, &c->addr6.sin6_addr, c->addr6_str, INET6_ADDRSTRLEN); in config_setup()
/freebsd/usr.sbin/rtsold/
H A Drtsol.c241 inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf, in rtsol_input()
250 inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf, in rtsol_input()
260 inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf, in rtsol_input()
266 if (pi && !IN6_IS_ADDR_LINKLOCAL(&from.sin6_addr)) { in rtsol_input()
269 inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf, in rtsol_input()
280 inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf, in rtsol_input()
288 inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf, sizeof(ntopbuf)), in rtsol_input()
303 const char *rasender = inet_ntop(AF_INET6, &from.sin6_addr, in rtsol_input()
321 const char *rasender = inet_ntop(AF_INET6, &from.sin6_addr, in rtsol_input()
334 const char *rasender = inet_ntop(AF_INET6, &from.sin6_addr, in rtsol_input()
[all …]
/freebsd/contrib/tcp_wrappers/
H A Dhosts_access.c372 return (!memcmp(&pat.sin6_addr, &addr.sin6_addr, in string_match()
441 if (IN6_IS_ADDR_V4MAPPED(&addr.sin6_addr)) { in masked_match6()
442 if ((*(u_int32_t *)&net.sin6_addr.s6_addr[12] = dot_quad_addr(net_tok)) == INADDR_NONE in masked_match6()
445 …return ((*(u_int32_t *)&addr.sin6_addr.s6_addr[12] & mask) == *(u_int32_t *)&net.sin6_addr.s6_addr… in masked_match6()
469 …if ((*(u_int32_t *)&addr.sin6_addr.s6_addr[i] & mask) != (*(u_int32_t *)&net.sin6_addr.s6_addr[i] … in masked_match6()
473 if (*(u_int32_t *)&addr.sin6_addr.s6_addr[i] != *(u_int32_t *)&net.sin6_addr.s6_addr[i]) in masked_match6()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dctrl_iface_udp.c100 inet_ntop(AF_INET6, &from->sin6_addr, addr, sizeof(*from)), in wpa_supplicant_ctrl_iface_attach()
127 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr,
128 sizeof(from->sin6_addr))) {
130 inet_ntop(AF_INET6, &from->sin6_addr, addr,
174 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr,
175 sizeof(from->sin6_addr))) {
177 inet_ntop(AF_INET6, &from->sin6_addr, addr,
252 inet_ntop(AF_INET6, &from.sin6_addr, addr, sizeof(from));
440 addr.sin6_addr = in6addr_any;
442 inet_pton(AF_INET6, "::1", &addr.sin6_addr);
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DSocketAddress.cpp147 if (inet_ntop(GetFamily(), &m_socket_addr.sa_ipv6.sin6_addr, str, in GetIPAddress()
262 m_socket_addr.sa_ipv6.sin6_addr = in6addr_loopback; in SetToLocalhost()
284 m_socket_addr.sa_ipv6.sin6_addr = in6addr_any; in SetToAnyAddress()
296 : 0 == memcmp(&m_socket_addr.sa_ipv6.sin6_addr, &in6addr_any, 16);
302 : 0 == memcmp(&m_socket_addr.sa_ipv6.sin6_addr, &in6addr_loopback, in IsLocalhost()
316 return 0 == memcmp(&m_socket_addr.sa_ipv6.sin6_addr, in operator ==()
317 &rhs.m_socket_addr.sa_ipv6.sin6_addr, 16); in operator ==()
/freebsd/usr.sbin/rtadvd/
H A Dif.c71 .sin6_addr = IN6ADDR_LINKLOCAL_ALLNODES_INIT,
77 .sin6_addr = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT,
83 .sin6_addr = IN6ADDR_SITELOCAL_ALLROUTERS_INIT,
203 if (IN6_IS_ADDR_LINKLOCAL(&SIN6(dst)->sin6_addr) || in get_next_msg()
204 IN6_IS_ADDR_MULTICAST(&SIN6(dst)->sin6_addr)) in get_next_msg()
233 (IN6_IS_ADDR_LINKLOCAL(&SIN6(ifa)->sin6_addr) || in get_next_msg()
234 IN6_IS_ADDR_MULTICAST(&SIN6(ifa)->sin6_addr))) in get_next_msg()
266 return (&SIN6(rti_info[RTAX_DST])->sin6_addr); in get_addr()
292 p = (char *)(&SIN6(sa)->sin6_addr); in get_prefixlen()
675 &sin6_linklocal_allrouters.sin6_addr, in sock_mc_join()
[all...]
H A Drtadvd.c808 inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf, in rtadvd_input()
818 inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf, in rtadvd_input()
827 inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf, in rtadvd_input()
839 if (!IN6_IS_ADDR_LINKLOCAL(&rcvfrom.sin6_addr)) { in rtadvd_input()
843 inet_ntop(AF_INET6, &rcvfrom.sin6_addr, in rtadvd_input()
853 inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf, in rtadvd_input()
863 inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf, in rtadvd_input()
872 inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf, in rtadvd_input()
914 inet_ntop(AF_INET6, &from->sin6_addr, ntopbuf, sizeof(ntopbuf)), in rs_input()
926 inet_ntop(AF_INET6, &from->sin6_addr, ntopbu in rs_input()
[all...]
H A Drrenum.c167 irr->irr_useprefix.sin6_addr = in6addr_any; in do_use_prefix()
202 irr->irr_useprefix.sin6_addr = rpu->rpu_prefix; in do_use_prefix()
279 irr.irr_matchprefix.sin6_addr = rpm->rpm_prefix; in do_pco()
445 inet_ntop(AF_INET6, &from->sin6_addr, ntopbuf[0] ,sizeof(ntopbuf[0])), in rr_input()
454 inet_ntop(AF_INET6, &from->sin6_addr, ntopbuf[0], in rr_input()
470 &sin6_sitelocal_allrouters.sin6_addr, &pi->ipi6_addr)) { in rr_input()
476 inet_ntop(AF_INET6, &from->sin6_addr, ntopbuf[1], in rr_input()
486 rr_command_input(len, rr, &from->sin6_addr, dst); in rr_input()
/freebsd/usr.sbin/route6d/
H A Droute6d.c761 inet6_n2p(&sin6->sin6_addr), ntohs(sin6->sin6_port)); in ripflush()
764 nrt, inet6_n2p(&sin6->sin6_addr), ntohs(sin6->sin6_port)); in ripflush()
794 inet6_n2p(&ifcp->ifc_ripsin.sin6_addr)); in ripflush()
799 inet6_n2p(&sin6->sin6_addr)); in ripflush()
1059 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) || in sendpacket()
1060 IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) in sendpacket()
1185 nh = fsock.sin6_addr; in riprecv()
1205 if (!IN6_IS_ADDR_LINKLOCAL(&fsock.sin6_addr)) { in riprecv()
1207 inet6_n2p(&fsock.sin6_addr)); in riprecv()
1212 inet6_n2p(&fsock.sin6_addr)); in riprecv()
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/
H A Dsockaddr.c77 memcmp(&a->type.sin6.sin6_addr, &b->type.sin6.sin6_addr, in isc_sockaddr_compare()
78 sizeof(a->type.sin6.sin6_addr)) != 0) in isc_sockaddr_compare()
222 in6 = &sockaddr->type.sin6.sin6_addr; in isc_sockaddr_hash()
228 length = sizeof(sockaddr->type.sin6.sin6_addr); in isc_sockaddr_hash()
277 sockaddr->type.sin6.sin6_addr = in6addr_any; in isc_sockaddr_any6()
321 sockaddr->type.sin6.sin6_addr = *ina6; in isc_sockaddr_fromin6()
336 sockaddr->type.sin6.sin6_addr.s6_addr[10] = 0xff; in isc_sockaddr_v6fromin()
337 sockaddr->type.sin6.sin6_addr.s6_addr[11] = 0xff; in isc_sockaddr_v6fromin()
338 memcpy(&sockaddr->type.sin6.sin6_addr.s6_addr[12], ina, 4); in isc_sockaddr_v6fromin()
392 memcpy(&sockaddr->type.sin6.sin6_addr, &na->type.in6, 16); in isc_sockaddr_fromnetaddr()
/freebsd/usr.bin/netstat/
H A Droute.c500 src = &satosin6(sa)->sin6_addr; in routename()
619 if (IN6_IS_ADDR_LINKLOCAL(&sa6->sin6_addr) || in in6_fillscopeid()
620 IN6_IS_ADDR_MC_NODELOCAL(&sa6->sin6_addr) || in in6_fillscopeid()
621 IN6_IS_ADDR_MC_LINKLOCAL(&sa6->sin6_addr)) { in in6_fillscopeid()
624 ntohs(*(u_int16_t *)&sa6->sin6_addr.s6_addr[2]); in in6_fillscopeid()
625 sa6->sin6_addr.s6_addr[2] = sa6->sin6_addr.s6_addr[3] = 0; in in6_fillscopeid()
656 p = (u_char *)&mask->sin6_addr; in netname6()
669 addr.sin6_addr.s6_addr[i] &= in netname6()
670 mask->sin6_addr.s6_addr[i]; in netname6()
676 if (masklen == 0 && IN6_IS_ADDR_UNSPECIFIED(&sa6->sin6_addr)) in netname6()
/freebsd/usr.sbin/ppp/
H A Dncpaddr.c170 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) ||
171 IN6_IS_ADDR_MC_LINKLOCAL(&sin6->sin6_addr)) {
173 ntohs(*(u_short *)&sin6->sin6_addr.s6_addr[2]);
174 *(u_short *)&sin6->sin6_addr.s6_addr[2] = 0;
325 host6->sin6_addr = addr->ncpaddr_ip6addr; in ncpaddr_getsa()
351 if (IN6_IS_ADDR_V4MAPPED(&host6->sin6_addr)) { in ncpaddr_setsa()
354 *(const u_int32_t *)(host6->sin6_addr.s6_addr + 12); in ncpaddr_setsa()
357 addr->ncpaddr_ip6addr = host6->sin6_addr; in ncpaddr_setsa()
385 sin6.sin6_addr = addr->ncpaddr_ip6addr; in ncpaddr_ntowa()
724 range->ncprange_ip6addr = host6->sin6_addr; in ncprange_setsa()
[all …]

12345678910>>...16