| /xnu-10063.101.15/bsd/netinet6/ |
| H A D | ip6_forward.c | 225 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in ip6_forward() 235 ip6_sprintf(&ip6->ip6_dst), in ip6_forward() 257 VERIFY(!IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)); in ip6_forward() 456 …!in6_are_addr_equal_scoped(&ip6->ip6_dst, &dst->sin6_addr, ip6_input_getdstifscope(m), dst->sin6_s… in ip6_forward() 467 dst->sin6_addr = ip6->ip6_dst; in ip6_forward() 526 ip6_sprintf(&ip6->ip6_dst), in ip6_forward() 548 dst_in6 = ip6->ip6_dst; in ip6_forward() 677 ip6_sprintf(&ip6->ip6_dst), in ip6_forward() 701 in6_clearscope(&ip6->ip6_dst); in ip6_forward()
|
| H A D | udp6_usrreq.c | 308 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in udp6_input() 396 if (imo && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in udp6_input() 404 mcaddr.sin6_addr = ip6->ip6_dst; in udp6_input() 432 uh->uh_dport, uh->uh_sport, &ip6->ip6_dst, in udp6_input() 526 check_esp = key_checksa_present(AF_INET6, (caddr_t)&ip6->ip6_dst, in udp6_input() 569 &ip6->ip6_dst, uh->uh_dport, ip6_input_getdstifscope(m), 1, m->m_pkthdr.rcvif); in udp6_input() 576 strlcpy(buf, ip6_sprintf(&ip6->ip6_dst), sizeof(buf)); in udp6_input() 584 …!in6_are_addr_equal_scoped(&ip6->ip6_dst, &ip6->ip6_src, ip6_input_getdstifscope(m), ip6_input_get… in udp6_input() 611 uh->uh_sport, &ip6->ip6_dst, &ip6->ip6_src, ifp, pf_tag, NULL, NULL, NULL, NULL)) { in udp6_input() 735 in6p = in6_pcblookup_hash(&udbinfo, &ip6->ip6_dst, uh.uh_dport, ip6_input_getdstifscope(m), in udp6_ctlinput() [all …]
|
| H A D | icmp6.c | 329 IN6_IS_ADDR_MULTICAST(&oip6->ip6_dst)) && in icmp6_error_flag() 426 nip6->ip6_dst = oip6->ip6_dst; in icmp6_error_flag() 429 in6_clearscope(&oip6->ip6_dst); in icmp6_error_flag() 525 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) { in icmp6_input() 534 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in icmp6_input() 538 IN6_LOOKUP_MULTI(&ip6->ip6_dst, ifp, inm); in icmp6_input() 926 ip6_sprintf(&ip6->ip6_dst), in icmp6_input() 1152 icmp6dst.sin6_addr = eip6->ip6_dst; in icmp6_notify_error() 1326 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ni6_input() 1327 if (!IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst) && in ni6_input() [all …]
|
| H A D | ip6_input.c | 606 struct in6_addr tmp_dst = ip6->ip6_dst; /* copy to avoid unaligned access */ in ip6_input_check_interface() 673 dst6->sin6_addr = ip6->ip6_dst; in ip6_input_check_interface() 674 if (!in6_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in ip6_input_check_interface() 757 inet_ntop(AF_INET6, &ip6->ip6_dst, dst_str, sizeof(dst_str)); in ip6_input_check_interface() 769 inet_ntop(AF_INET6, &ip6->ip6_dst, dst_str, sizeof(dst_str)); in ip6_input_check_interface() 952 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst)) { in ip6_input() 960 if (IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst) && in ip6_input() 986 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) { in ip6_input() 1005 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) { in ip6_input() 1065 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst) && in ip6_input() [all …]
|
| H A D | raw_ip6.c | 186 … !in6_are_addr_equal_scoped(&in6p->in6p_laddr, &ip6->ip6_dst, in6p->inp_lifscope, ifp->if_index)) { in rip6_input() 211 &ip6->ip6_dst, &ip6->ip6_src, ifp, 0, NULL, NULL, NULL, NULL)) { in rip6_input() 251 &ip6->ip6_dst, &ip6->ip6_src, ifp, 0, NULL, NULL, NULL, NULL)) { in rip6_input() 559 ip6->ip6_dst = *dst; in rip6_output() 569 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in rip6_output() 573 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && im6o != NULL) { in rip6_output() 585 ip6->ip6_dst.s6_addr16[1] = htons((uint16_t)pi->ipi6_ifindex); in rip6_output() 592 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in rip6_output() 597 ip6->ip6_dst.s6_addr16[1] = htons(oifp->if_index); in rip6_output() 613 ip6->ip6_dst.s6_addr16[1] in rip6_output() [all …]
|
| H A D | frag6.c | 414 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in frag6_input() 415 d = ip6->ip6_dst.s6_addr16[1]; in frag6_input() 416 ip6->ip6_dst.s6_addr16[1] = 0; in frag6_input() 431 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in frag6_input() 432 ip6->ip6_dst.s6_addr16[1] = d; in frag6_input() 460 …in6_are_addr_equal_scoped(&ip6->ip6_dst, &q6->ip6q_dst, ip6_input_getdstifscope(m), q6->ip6q_dst_i… in frag6_input() 491 q6->ip6q_dst = ip6->ip6_dst; in frag6_input() 602 ip6err->ip6_dst = q6->ip6q_dst; in frag6_input() 843 ip6->ip6_dst = q6->ip6q_dst; in frag6_input() 986 ip6->ip6_dst = q6->ip6q_dst; in frag6_purgef()
|
| H A D | in6_cksum.c | 228 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 D | ipsec.c | 1423 bcopy(&ip6->ip6_dst, &sin6->sin6_addr, sizeof(ip6->ip6_dst)); in ipsec6_setspidx_ipaddr() 1424 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_setspidx_ipaddr() 1430 in6_verify_ifscope(&ip6->ip6_dst, sin6->sin6_scope_id); in ipsec6_setspidx_ipaddr() 1433 sin6->sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]); in ipsec6_setspidx_ipaddr() 2436 if (in6_embedded_scope && IN6_IS_SCOPE_LINKLOCAL(&oip6->ip6_dst)) { in ipsec6_encapsulate() 2437 oip6->ip6_dst.s6_addr16[1] = 0; in ipsec6_encapsulate() 2452 &ip6->ip6_dst, sizeof(ip6->ip6_dst)); in ipsec6_encapsulate() 2455 if (in6_embedded_scope && IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_encapsulate() 2457 ip6->ip6_dst.s6_addr16[1] = htons((u_int16_t)sav->sah->outgoing_if); in ipsec6_encapsulate() 2576 !IN6_ARE_ADDR_EQUAL(&dst6->sin6_addr, &ip6->ip6_dst)) { in ipsec6_update_routecache_and_output() [all …]
|
| H A D | esp_input.c | 657 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) { in esp4_input_extended() 671 ip6addr->sin6_addr = ip6->ip6_dst; in esp4_input_extended() 982 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst, in esp6_input_extended() 994 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[0]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[1]), in esp6_input_extended() 995 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[2]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[3]), in esp6_input_extended() 996 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[4]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[5]), in esp6_input_extended() 997 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[6]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[7]), in esp6_input_extended() 1319 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) { in esp6_input_extended() 1334 ip6addr->sin6_addr = ip6->ip6_dst; in esp6_input_extended() 1790 dst_ip = (caddr_t)&ip6->ip6_dst; in esp_kpipe_input()
|
| H A D | nd6_nbr.c | 268 struct in6_addr daddr6 = ip6->ip6_dst; in nd6_ns_input() 302 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)); in nd6_ns_input() 665 ip6->ip6_dst = *daddr6; in nd6_ns_output() 668 ip6->ip6_dst.s6_addr16[0] = IPV6_ADDR_INT16_MLL; in nd6_ns_output() 669 ip6->ip6_dst.s6_addr16[1] = 0; in nd6_ns_output() 670 ip6->ip6_dst.s6_addr32[1] = 0; in nd6_ns_output() 671 ip6->ip6_dst.s6_addr32[2] = IPV6_ADDR_INT32_ONE; in nd6_ns_output() 672 ip6->ip6_dst.s6_addr32[3] = taddr6->s6_addr32[3]; in nd6_ns_output() 673 ip6->ip6_dst.s6_addr8[12] = 0xff; in nd6_ns_output() 675 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0) { in nd6_ns_output() [all …]
|
| H A D | ip6_output.c | 527 finaldst = ip6->ip6_dst; in ip6_output_list() 861 if (im6o != NULL && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output_list() 871 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst) && in ip6_output_list() 872 (ip6->ip6_dst.s6_addr16[1] == 0) && (ro != NULL)) { in ip6_output_list() 874 ip6->ip6_dst.s6_addr16[1] = in ip6_output_list() 910 ip6->ip6_dst.s6_addr16[1] = 0; in ip6_output_list() 1030 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output_list() 1049 …!in6_are_addr_equal_scoped(&dst->sin6_addr, &ip6->ip6_dst, dst->sin6_scope_id, ip6_output_getdstif… in ip6_output_list() 1057 dst->sin6_addr = ip6->ip6_dst; in ip6_output_list() 1155 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output_list() [all …]
|
| H A D | in6_gif.c | 182 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 D | ah_input.c | 621 (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 D | udp6_output.c | 440 ip6->ip6_dst = *faddr; in udp6_output() 559 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in udp6_output()
|
| H A D | nd6_prproxy.c | 505 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 D | mld6.c | 894 dst = ip6->ip6_dst; in mld_v1_input_query() 1389 dst = ip6->ip6_dst; in mld_v1_input_report() 1394 __func__, ip6_sprintf(&ip6->ip6_dst), in mld_v1_input_report() 2381 ip6->ip6_dst = in6m->in6m_addr; in mld_v1_transmit_report() 3737 (void)in6_setscope(&ip6->ip6_dst, ifp, NULL); in mld_dispatch_packet() 3846 ip6->ip6_dst = in6addr_linklocal_allv2routers; in mld_v2_encap_report()
|
| /xnu-10063.101.15/bsd/dev/dtrace/scripts/ |
| H A D | ip.d | 91 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-10063.101.15/bsd/net/ |
| H A D | iptap.c | 579 if (in6_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in iptap_bpf_tap() 580 dst_scope_id = ip6->ip6_dst.s6_addr16[1]; in iptap_bpf_tap() 581 ip6->ip6_dst.s6_addr16[1] = 0; in iptap_bpf_tap() 639 if (in6_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in iptap_bpf_tap() 640 ip6->ip6_dst.s6_addr16[1] = (uint16_t)dst_scope_id; in iptap_bpf_tap()
|
| H A D | nat464_utils.c | 324 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 D | if_stf.c | 559 if (IN6_IS_ADDR_6TO4(&ip6->ip6_dst)) { in stf_pre_output() 560 in4 = GET_V4(&ip6->ip6_dst); in stf_pre_output() 791 if (stf_checkaddr6(sc, &ip6.ip6_dst, NULL) < 0 || in in_stf_input()
|
| H A D | pf_norm.c | 443 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() 1851 dst->sin6_addr = hdr->ip6_dst; in pf_refragment6() [all …]
|
| /xnu-10063.101.15/bsd/netinet/ |
| H A D | tcp_input.c | 965 (int)((caddr_t)&ip6->ip6_dst - (caddr_t)ip6)); in tcp6_input() 2001 (((ip6->ip6_src.s6_addr16[0]) << 16) | (ip6->ip6_dst.s6_addr16[0])), in tcp_input() 2174 &ip6->ip6_dst, th->th_dport, ip6_input_getdstifscope(m), 1, in tcp_input() 2202 inet_ntop(AF_INET6, &ip6->ip6_dst, dbuf, sizeof(dbuf)); in tcp_input() 2228 …((isipv6 && !in6_are_addr_equal_scoped(&ip6->ip6_dst, &ip6->ip6_src, ip6_input_getdstifscope(m), i… in tcp_input() 2305 …!in6_are_addr_equal_scoped(&inp->in6p_laddr, &ip6->ip6_dst, inp->inp_lifscope, ip6_input_getdstifs… in tcp_input() 2364 th->th_dport, th->th_sport, &ip6->ip6_dst, in tcp_input() 2479 …if (in6_are_addr_equal_scoped(&ip6->ip6_dst, &ip6->ip6_src, ip6_input_getdstifscope(m), ip6_input_… in tcp_input() 2501 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in tcp_input() 2560 sin6->sin6_addr = ip6->ip6_dst; in tcp_input() [all …]
|
| H A D | ip6.h | 121 struct in6_addr ip6_dst; /* destination address */ member
|
| H A D | tcp_log.c | 695 memcmp(&ip6->ip6_dst, &in6addr_loopback, sizeof(struct in6_addr)) == 0) { in tcp_log_pkt_addresses() 706 inet_ntop(AF_INET6, &ip6->ip6_dst, fbuf, fbuflen); in tcp_log_pkt_addresses() 708 inet_ntop(AF_INET6, &ip6->ip6_dst, lbuf, lbuflen); in tcp_log_pkt_addresses()
|
| /xnu-10063.101.15/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_track.c | 811 ip6->ip6_dst = fe->fe_key.fk_dst6; in flow_track_abort_tcp() 814 ip6->ip6_dst = rst_pkt->pkt_flow_ipv6_dst; in flow_track_abort_tcp() 976 ip6->ip6_dst = fe->fe_key.fk_dst6; in flow_track_abort_quic()
|