Searched refs:ip6_dst (Results 1 - 25 of 33) sorted by relevance

12

/darwin-on-arm/xnu/bsd/netinet6/
H A Droute6.c231 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
232 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst) ||
233 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst) ||
234 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) {
260 *nextaddr = ip6->ip6_dst;
262 ip6->ip6_dst = tmpaddr;
263 if (IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst))
264 ip6->ip6_dst.s6_addr16[1] = htons(m->m_pkthdr.rcvif->if_index);
H A Dip6_forward.c190 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
200 ip6_sprintf(&ip6->ip6_dst),
222 VERIFY(!IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst));
386 * ip6forward_rt->ro_dst.sin6_addr is equal to ip6->ip6_dst
418 !IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &dst->sin6_addr) ||
430 dst->sin6_addr = ip6->ip6_dst;
484 ip6_sprintf(&ip6->ip6_dst),
506 dst_in6 = ip6->ip6_dst;
649 ip6_sprintf(&ip6->ip6_dst),
664 in6_clearscope(&ip6->ip6_dst);
[all...]
H A Dicmp6.c266 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0)
319 IN6_IS_ADDR_MULTICAST(&oip6->ip6_dst)) &&
395 nip6->ip6_dst = oip6->ip6_dst;
398 in6_clearscope(&oip6->ip6_dst);
465 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
469 IN6_LOOKUP_MULTI(&ip6->ip6_dst, ifp, inm);
607 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
701 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
745 if (icmp6_ratelimit(&ip6->ip6_dst, icmp
[all...]
H A Dip6_mroute.c990 ip6_sprintf(&ip6->ip6_src), ip6_sprintf(&ip6->ip6_dst),
998 if (ip6->ip6_hlim <= 1 || IN6_IS_ADDR_MC_NODELOCAL(&ip6->ip6_dst) ||
999 IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst))
1019 ip6_sprintf(&ip6->ip6_dst),
1029 MF6CFIND(ip6->ip6_src, ip6->ip6_dst, rt);
1056 ip6_sprintf(&ip6->ip6_dst));
1082 hash = MF6CHASH(ip6->ip6_src, ip6->ip6_dst);
1086 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst,
1189 rt->mf6c_mcastgrp.sin6_addr = ip6->ip6_dst;
1432 dst0 = ip6->ip6_dst;
[all...]
H A Dip6_input.c660 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst)) {
668 if (IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst) &&
694 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) {
708 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) {
767 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst) &&
768 ip6->ip6_dst.s6_addr16[1]) {
777 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst))
778 ip6->ip6_dst.s6_addr16[1]
784 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
794 IN6_LOOKUP_MULTI(&ip6->ip6_dst, if
[all...]
H A Dfrag6.c204 dst->sin6_addr = ip6->ip6_dst;
270 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &q6->ip6q_dst))
306 q6->ip6q_dst = ip6->ip6_dst;
379 ip6err->ip6_dst = q6->ip6q_dst;
565 ip6->ip6_dst = q6->ip6q_dst;
668 ip6->ip6_dst = q6->ip6q_dst;
H A Dudp6_usrreq.c281 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
357 if (imo && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
365 mcaddr.sin6_addr = ip6->ip6_dst;
466 &ip6->ip6_dst, uh->uh_dport, 1,
476 strlcpy(buf, ip6_sprintf(&ip6->ip6_dst), sizeof(buf));
483 !IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &ip6->ip6_src))
H A Draw_ip6.c177 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst))
407 ip6->ip6_dst = *dst;
417 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) {
421 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && im6o != NULL) {
432 ip6->ip6_dst.s6_addr16[1] = htons(pi->ipi6_ifindex);
436 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) &&
440 ip6->ip6_dst.s6_addr16[1] = htons(oifp->if_index);
453 ip6->ip6_dst.s6_addr16[1]
H A Dnd6_nbr.c259 struct in6_addr daddr6 = ip6->ip6_dst;
298 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)));
630 ip6->ip6_dst = *daddr6;
632 ip6->ip6_dst.s6_addr16[0] = IPV6_ADDR_INT16_MLL;
633 ip6->ip6_dst.s6_addr16[1] = 0;
634 ip6->ip6_dst.s6_addr32[1] = 0;
635 ip6->ip6_dst.s6_addr32[2] = IPV6_ADDR_INT32_ONE;
636 ip6->ip6_dst.s6_addr32[3] = taddr6->s6_addr32[3];
637 ip6->ip6_dst.s6_addr8[12] = 0xff;
638 if (in6_setscope(&ip6->ip6_dst, if
[all...]
H A Dip6_output.c380 finaldst = ip6->ip6_dst;
622 if (im6o != NULL && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
632 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst) &&
633 (ip6->ip6_dst.s6_addr16[1] == 0) && (ro != NULL)) {
635 ip6->ip6_dst.s6_addr16[1] = htons(ro->ro_dst.sin6_scope_id);
666 ip6->ip6_dst.s6_addr16[1] = 0;
758 ip6->ip6_dst = sa.sin6_addr;
819 else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
839 !IN6_ARE_ADDR_EQUAL(&dst->sin6_addr, &ip6->ip6_dst) ||
848 dst->sin6_addr = ip6->ip6_dst;
[all...]
H A Dipsec.c1211 bcopy(&ip6->ip6_dst, &sin6->sin6_addr, sizeof(ip6->ip6_dst));
1212 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) {
1214 sin6->sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]);
2477 if (IN6_IS_SCOPE_LINKLOCAL(&oip6->ip6_dst))
2478 oip6->ip6_dst.s6_addr16[1] = 0;
2492 &ip6->ip6_dst, sizeof(ip6->ip6_dst));
2642 &ip6->ip6_dst, sizeof(ip6->ip6_dst));
[all...]
H A Din6_gif.c190 ip6->ip6_dst = sin6_dst->sin6_addr;
342 if (!IN6_ARE_ADDR_EQUAL(&src->sin6_addr, &ip6->ip6_dst) ||
H A Dudp6_output.c354 ip6->ip6_dst = *faddr;
386 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) &&
H A Dah_input.c666 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst,
818 || !IN6_ARE_ADDR_EQUAL(&nip6->ip6_dst, &ip6->ip6_dst)) {
894 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) {
926 ip6addr->sin6_addr = ip6->ip6_dst;
H A Dip6_fw.c484 ip6_sprintf(&ip6->ip6_dst));
498 ip6_sprintf(&ip6->ip6_dst));
512 ip6_sprintf(&ip6->ip6_dst));
518 ip6_sprintf(&ip6->ip6_dst));
621 (!IN6_ARE_ADDR_MASKEQUAL(&ip6->ip6_dst,&f->fw_dmsk,&f->fw_dst)))
833 && !IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
H A Din6_cksum.c203 if (!IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst))
H A Desp_input.c544 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) {
557 ip6addr->sin6_addr = ip6->ip6_dst;
773 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst,
1015 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) {
1038 ip6addr->sin6_addr = ip6->ip6_dst;
H A Dmld6.c778 dst = ip6->ip6_dst;
984 dst = ip6->ip6_dst;
1249 dst = ip6->ip6_dst;
1254 ip6_sprintf(&ip6->ip6_dst),
1992 ip6->ip6_dst = in6m->in6m_addr;
3286 (void) in6_setscope(&ip6->ip6_dst, ifp, NULL); /* XXX LOR */
3293 MLD_EMBEDSCOPE(&ip6->ip6_dst, ifp->if_index);
3395 ip6->ip6_dst = in6addr_linklocal_allv2routers;
H A Dipcomp_input.c284 (caddr_t)&ip6->ip6_dst, IPPROTO_IPCOMP, htonl(cpi));
H A Dnd6_prproxy.c529 if (IN6_IS_ADDR_MC_NODELOCAL(&ip6->ip6_dst) ||
530 IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst)) {
534 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
553 VERIFY(IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst,
/darwin-on-arm/xnu/bsd/net/
H A Dif_stf.c562 * ip6_dst has priority as it may be able to give us shorter IPv4 hops.
564 if (IN6_IS_ADDR_6TO4(&ip6->ip6_dst))
565 in4 = GET_V4(&ip6->ip6_dst);
793 if (stf_checkaddr6(sc, &ip6.ip6_dst, NULL) < 0 ||
H A Dif_utun_crypto_ipsec.c868 !IN6_ARE_ADDR_EQUAL(&dst6->sin6_addr, &ip6->ip6_dst))) {
877 dst6->sin6_addr = ip6->ip6_dst;
/darwin-on-arm/xnu/bsd/netinet/
H A Dip6.h114 struct in6_addr ip6_dst; /* destination address */ member in struct:ip6_hdr
H A Dtcp_input.c788 (caddr_t)&ip6->ip6_dst - (caddr_t)ip6);
1205 (((ip6->ip6_src.s6_addr16[0]) << 16) | (ip6->ip6_dst.s6_addr16[0])),
1477 &ip6->ip6_dst, th->th_dport, 1,
1546 inet_ntop(AF_INET6, &ip6->ip6_dst, dbuf, sizeof(dbuf));
1573 ((isipv6 && !IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &ip6->ip6_src)) ||
1720 if (IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst,
1740 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
1891 inp->in6p_laddr = ip6->ip6_dst;
2435 (((ip6->ip6_src.s6_addr16[0]) << 16) | (ip6->ip6_dst.s6_addr16[0])),
2514 inp->in6p_laddr = ip6->ip6_dst;
[all...]
H A Dip_encap.c286 d.sin6_addr = ip6->ip6_dst;

Completed in 109 milliseconds

12