Home
last modified time | relevance | path

Searched refs:ip6_dst (Results 1 – 25 of 48) sorted by relevance

12

/xnu-8020.101.4/bsd/netinet6/
H A Dudp6_usrreq.c301 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in udp6_input()
389 if (imo && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in udp6_input()
397 mcaddr.sin6_addr = ip6->ip6_dst; in udp6_input()
425 uh->uh_dport, uh->uh_sport, &ip6->ip6_dst, in udp6_input()
515 check_esp = key_checksa_present(AF_INET6, (caddr_t)&ip6->ip6_dst, in udp6_input()
558 &ip6->ip6_dst, uh->uh_dport, ip6_input_getdstifscope(m), 1, m->m_pkthdr.rcvif); in udp6_input()
565 strlcpy(buf, ip6_sprintf(&ip6->ip6_dst), sizeof(buf)); in udp6_input()
573 …!in6_are_addr_equal_scoped(&ip6->ip6_dst, &ip6->ip6_src, ip6_input_getdstifscope(m), ip6_input_get… in udp6_input()
593 uh->uh_sport, &ip6->ip6_dst, &ip6->ip6_src, ifp, pf_tag, NULL, NULL, NULL, NULL)) { in udp6_input()
721 in6p = in6_pcblookup_hash(&udbinfo, &ip6->ip6_dst, uh.uh_dport, ip6_input_getdstifscope(m), in udp6_ctlinput()
[all …]
H A Dip6_forward.c223 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in ip6_forward()
233 ip6_sprintf(&ip6->ip6_dst), in ip6_forward()
255 VERIFY(!IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)); in ip6_forward()
454 …!in6_are_addr_equal_scoped(&ip6->ip6_dst, &dst->sin6_addr, ip6_input_getdstifscope(m), dst->sin6_s… in ip6_forward()
465 dst->sin6_addr = ip6->ip6_dst; in ip6_forward()
524 ip6_sprintf(&ip6->ip6_dst), in ip6_forward()
546 dst_in6 = ip6->ip6_dst; in ip6_forward()
675 ip6_sprintf(&ip6->ip6_dst), in ip6_forward()
699 in6_clearscope(&ip6->ip6_dst); in ip6_forward()
H A Dicmp6.c307 IN6_IS_ADDR_MULTICAST(&oip6->ip6_dst)) && in icmp6_error_flag()
397 nip6->ip6_dst = oip6->ip6_dst; in icmp6_error_flag()
400 in6_clearscope(&oip6->ip6_dst); in icmp6_error_flag()
496 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) { in icmp6_input()
505 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in icmp6_input()
509 IN6_LOOKUP_MULTI(&ip6->ip6_dst, ifp, inm); in icmp6_input()
897 ip6_sprintf(&ip6->ip6_dst), in icmp6_input()
1123 icmp6dst.sin6_addr = eip6->ip6_dst; in icmp6_notify_error()
1297 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ni6_input()
1298 if (!IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst) && in ni6_input()
[all …]
H A Dip6_input.c602 struct in6_addr tmp_dst = ip6->ip6_dst; /* copy to avoid unaligned access */ in ip6_input_check_interface()
669 dst6->sin6_addr = ip6->ip6_dst; in ip6_input_check_interface()
670 if (!in6_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in ip6_input_check_interface()
753 inet_ntop(AF_INET6, &ip6->ip6_dst, dst_str, sizeof(dst_str)); in ip6_input_check_interface()
765 inet_ntop(AF_INET6, &ip6->ip6_dst, dst_str, sizeof(dst_str)); in ip6_input_check_interface()
948 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst)) { in ip6_input()
956 if (IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst) && in ip6_input()
982 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) { in ip6_input()
996 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) { in ip6_input()
1056 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst) && in ip6_input()
[all …]
H A Draw_ip6.c181 … !in6_are_addr_equal_scoped(&in6p->in6p_laddr, &ip6->ip6_dst, in6p->inp_lifscope, ifp->if_index)) { in rip6_input()
206 &ip6->ip6_dst, &ip6->ip6_src, ifp, 0, NULL, NULL, NULL, NULL)) { in rip6_input()
243 &ip6->ip6_dst, &ip6->ip6_src, ifp, 0, NULL, NULL, NULL, NULL)) { in rip6_input()
545 ip6->ip6_dst = *dst; in rip6_output()
555 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in rip6_output()
559 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && im6o != NULL) { in rip6_output()
571 ip6->ip6_dst.s6_addr16[1] = htons((uint16_t)pi->ipi6_ifindex); in rip6_output()
578 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in rip6_output()
583 ip6->ip6_dst.s6_addr16[1] = htons(oifp->if_index); in rip6_output()
599 ip6->ip6_dst.s6_addr16[1] in rip6_output()
[all …]
H A Dfrag6.c417 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in frag6_input()
418 d = ip6->ip6_dst.s6_addr16[1]; in frag6_input()
419 ip6->ip6_dst.s6_addr16[1] = 0; in frag6_input()
434 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in frag6_input()
435 ip6->ip6_dst.s6_addr16[1] = d; in frag6_input()
463 …in6_are_addr_equal_scoped(&ip6->ip6_dst, &q6->ip6q_dst, ip6_input_getdstifscope(m), q6->ip6q_dst_i… in frag6_input()
494 q6->ip6q_dst = ip6->ip6_dst; in frag6_input()
597 ip6err->ip6_dst = q6->ip6q_dst; in frag6_input()
831 ip6->ip6_dst = q6->ip6q_dst; in frag6_input()
974 ip6->ip6_dst = q6->ip6q_dst; in frag6_purgef()
H A Din6_cksum.c228 sum += in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, in inet6_cksum()
273 sum += in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, in inet6_cksum_buffer()
H A Dipsec.c1421 bcopy(&ip6->ip6_dst, &sin6->sin6_addr, sizeof(ip6->ip6_dst)); in ipsec6_setspidx_ipaddr()
1422 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_setspidx_ipaddr()
1428 in6_verify_ifscope(&ip6->ip6_dst, sin6->sin6_scope_id); in ipsec6_setspidx_ipaddr()
1431 sin6->sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]); in ipsec6_setspidx_ipaddr()
2434 if (in6_embedded_scope && IN6_IS_SCOPE_LINKLOCAL(&oip6->ip6_dst)) { in ipsec6_encapsulate()
2435 oip6->ip6_dst.s6_addr16[1] = 0; in ipsec6_encapsulate()
2450 &ip6->ip6_dst, sizeof(ip6->ip6_dst)); in ipsec6_encapsulate()
2453 if (in6_embedded_scope && IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_encapsulate()
2455 ip6->ip6_dst.s6_addr16[1] = htons((u_int16_t)sav->sah->outgoing_if); in ipsec6_encapsulate()
2574 !IN6_ARE_ADDR_EQUAL(&dst6->sin6_addr, &ip6->ip6_dst)) { in ipsec6_update_routecache_and_output()
[all …]
H A Desp_input.c643 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) { in esp4_input_extended()
657 ip6addr->sin6_addr = ip6->ip6_dst; in esp4_input_extended()
973 …(caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst, interface != NULL ? interface->if_index : IFSCOPE_… in esp6_input_extended()
984 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[0]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[1]), in esp6_input_extended()
985 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[2]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[3]), in esp6_input_extended()
986 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[4]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[5]), in esp6_input_extended()
987 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[6]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[7]), in esp6_input_extended()
1297 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) { in esp6_input_extended()
1312 ip6addr->sin6_addr = ip6->ip6_dst; in esp6_input_extended()
H A Dnd6_nbr.c263 struct in6_addr daddr6 = ip6->ip6_dst; in nd6_ns_input()
297 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)); in nd6_ns_input()
660 ip6->ip6_dst = *daddr6; in nd6_ns_output()
663 ip6->ip6_dst.s6_addr16[0] = IPV6_ADDR_INT16_MLL; in nd6_ns_output()
664 ip6->ip6_dst.s6_addr16[1] = 0; in nd6_ns_output()
665 ip6->ip6_dst.s6_addr32[1] = 0; in nd6_ns_output()
666 ip6->ip6_dst.s6_addr32[2] = IPV6_ADDR_INT32_ONE; in nd6_ns_output()
667 ip6->ip6_dst.s6_addr32[3] = taddr6->s6_addr32[3]; in nd6_ns_output()
668 ip6->ip6_dst.s6_addr8[12] = 0xff; in nd6_ns_output()
670 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0) { in nd6_ns_output()
[all …]
H A Dip6_output.c525 finaldst = ip6->ip6_dst; in ip6_output_list()
858 if (im6o != NULL && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output_list()
868 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst) && in ip6_output_list()
869 (ip6->ip6_dst.s6_addr16[1] == 0) && (ro != NULL)) { in ip6_output_list()
871 ip6->ip6_dst.s6_addr16[1] = in ip6_output_list()
907 ip6->ip6_dst.s6_addr16[1] = 0; in ip6_output_list()
1023 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output_list()
1042 …!in6_are_addr_equal_scoped(&dst->sin6_addr, &ip6->ip6_dst, dst->sin6_scope_id, ip6_output_getdstif… in ip6_output_list()
1050 dst->sin6_addr = ip6->ip6_dst; in ip6_output_list()
1148 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output_list()
[all …]
H A Din6_gif.c182 ip6->ip6_dst = sin6_dst->sin6_addr; in in6_gif_output()
350 if (!IN6_ARE_ADDR_EQUAL(&src->sin6_addr, &ip6->ip6_dst) || in gif_validate6()
H A Dah_input.c621 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst, ip6_input_getsrcifscope(m), in ah6_input()
816 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) { in ah6_input()
843 ip6addr->sin6_addr = ip6->ip6_dst; in ah6_input()
H A Dudp6_output.c437 ip6->ip6_dst = *faddr; in udp6_output()
557 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in udp6_output()
H A Dnd6_prproxy.c505 if (IN6_IS_ADDR_MC_NODELOCAL(&ip6->ip6_dst) || in nd6_prproxy_isours()
506 IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst)) { in nd6_prproxy_isours()
510 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in nd6_prproxy_isours()
530 VERIFY(in6_are_addr_equal_scoped(&ip6->ip6_dst, in nd6_prproxy_isours()
H A Dmld6.c891 dst = ip6->ip6_dst; in mld_v1_input_query()
1386 dst = ip6->ip6_dst; in mld_v1_input_report()
1391 __func__, ip6_sprintf(&ip6->ip6_dst), in mld_v1_input_report()
2290 ip6->ip6_dst = in6m->in6m_addr; in mld_v1_transmit_report()
3650 (void)in6_setscope(&ip6->ip6_dst, ifp, NULL); in mld_dispatch_packet()
3759 ip6->ip6_dst = in6addr_linklocal_allv2routers; in mld_v2_encap_report()
/xnu-8020.101.4/bsd/dev/dtrace/scripts/
H A Dip.d91 ip_daddr = (ip6 != NULL) ? inet_ntoa6(&ip6->ip6_dst) : "<null>";
113 inet_ntoa6(&((struct ip6_hdr *)i)->ip6_dst) : "<unknown>")) : "<null>";
221 ipv6_dst = (ip6 != NULL) ? (&ip6->ip6_dst) : 0;
223 ipv6_daddr = (ip6 != NULL) ? inet_ntoa6(&ip6->ip6_dst) : "<null>";
/xnu-8020.101.4/bsd/net/
H A Diptap.c583 if (in6_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in iptap_bpf_tap()
584 dst_scope_id = ip6->ip6_dst.s6_addr16[1]; in iptap_bpf_tap()
585 ip6->ip6_dst.s6_addr16[1] = 0; in iptap_bpf_tap()
643 if (in6_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in iptap_bpf_tap()
644 ip6->ip6_dst.s6_addr16[1] = (uint16_t)dst_scope_id; in iptap_bpf_tap()
H A Dnat464_utils.c324 ptr < PTR_IP6(ip6_dst)) { in nat464_translate_icmp()
326 } else if (ptr >= PTR_IP6(ip6_dst) && in nat464_translate_icmp()
440 ptr = PTR_IP6(ip6_dst); in nat464_translate_icmp()
552 ip6->ip6_dst = dst->natv6addr; in nat464_translate_icmp_ip()
560 inet_ntop(AF_INET6, (void *)&ip6->ip6_dst, buf2, sizeof(buf2)))); in nat464_translate_icmp_ip()
751 ip6->ip6_dst = dst_v6; in nat464_translate_46()
759 inet_ntop(AF_INET6, (void *)&ip6->ip6_dst, buf2, sizeof(buf2)))); in nat464_translate_46()
816 ndst = &ip6h->ip6_dst; in nat464_translate_proto()
H A Dsixxlowpan.c580 !IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst) || in compress_hdr_hc1()
581 !uip_is_addr_mac_addr_based(&ip6->ip6_dst, in compress_hdr_hc1()
699 uip_ip6addr_u8(&ip6->ip6_dst, 0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); in uncompress_hdr_hc1()
700 uip_ds6_set_addr_iid(&ip6->ip6_dst, in uncompress_hdr_hc1()
H A Dif_stf.c557 if (IN6_IS_ADDR_6TO4(&ip6->ip6_dst)) { in stf_pre_output()
558 in4 = GET_V4(&ip6->ip6_dst); in stf_pre_output()
786 if (stf_checkaddr6(sc, &ip6.ip6_dst, NULL) < 0 || in in_stf_input()
H A Dpf_norm.c443 key->fr_dstx.v6addr = ip6->ip6_dst; in pf_ip6hdr2key()
1168 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in pf_reassemble6()
1169 d = ip6->ip6_dst.s6_addr16[1]; in pf_reassemble6()
1170 ip6->ip6_dst.s6_addr16[1] = 0; in pf_reassemble6()
1185 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in pf_reassemble6()
1186 ip6->ip6_dst.s6_addr16[1] = d; in pf_reassemble6()
1225 (*frag)->fr_dstx.v6addr = frent->fr_ip6->ip6_dst; in pf_reassemble6()
1395 ip6->ip6_dst = (*frag)->fr_dstx.v6addr; in pf_reassemble6()
1537 (*frag)->fr_dstx.v6addr = h->ip6_dst; in pf_frag6cache()
1852 dst->sin6_addr = hdr->ip6_dst; in pf_refragment6()
[all …]
/xnu-8020.101.4/bsd/netinet/
H A Dtcp_input.c947 (int)((caddr_t)&ip6->ip6_dst - (caddr_t)ip6)); in tcp6_input()
1947 (((ip6->ip6_src.s6_addr16[0]) << 16) | (ip6->ip6_dst.s6_addr16[0])), in tcp_input()
2120 &ip6->ip6_dst, th->th_dport, ip6_input_getdstifscope(m), 1, in tcp_input()
2148 inet_ntop(AF_INET6, &ip6->ip6_dst, dbuf, sizeof(dbuf)); in tcp_input()
2174 …((isipv6 && !in6_are_addr_equal_scoped(&ip6->ip6_dst, &ip6->ip6_src, ip6_input_getdstifscope(m), i… in tcp_input()
2251 …!in6_are_addr_equal_scoped(&inp->in6p_laddr, &ip6->ip6_dst, inp->inp_lifscope, ip6_input_getdstifs… in tcp_input()
2312 th->th_dport, th->th_sport, &ip6->ip6_dst, in tcp_input()
2422 …if (in6_are_addr_equal_scoped(&ip6->ip6_dst, &ip6->ip6_src, ip6_input_getdstifscope(m), ip6_input_… in tcp_input()
2444 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in tcp_input()
2503 sin6->sin6_addr = ip6->ip6_dst; in tcp_input()
[all …]
H A Dip6.h121 struct in6_addr ip6_dst; /* destination address */ member
H A Dtcp_log.c629 memcmp(&ip6->ip6_dst, &in6addr_loopback, sizeof(struct in6_addr)) == 0) { in tcp_log_pkt_addresses()
640 inet_ntop(AF_INET6, &ip6->ip6_dst, fbuf, fbuflen); in tcp_log_pkt_addresses()
642 inet_ntop(AF_INET6, &ip6->ip6_dst, lbuf, lbuflen); in tcp_log_pkt_addresses()

12