Home
last modified time | relevance | path

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

12

/xnu-8796.141.3/bsd/netinet6/
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 Dudp6_usrreq.c305 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in udp6_input()
393 if (imo && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in udp6_input()
401 mcaddr.sin6_addr = ip6->ip6_dst; in udp6_input()
429 uh->uh_dport, uh->uh_sport, &ip6->ip6_dst, in udp6_input()
523 check_esp = key_checksa_present(AF_INET6, (caddr_t)&ip6->ip6_dst, in udp6_input()
566 &ip6->ip6_dst, uh->uh_dport, ip6_input_getdstifscope(m), 1, m->m_pkthdr.rcvif); in udp6_input()
573 strlcpy(buf, ip6_sprintf(&ip6->ip6_dst), sizeof(buf)); in udp6_input()
581 …!in6_are_addr_equal_scoped(&ip6->ip6_dst, &ip6->ip6_src, ip6_input_getdstifscope(m), ip6_input_get… in udp6_input()
608 uh->uh_sport, &ip6->ip6_dst, &ip6->ip6_src, ifp, pf_tag, NULL, NULL, NULL, NULL)) { in udp6_input()
732 in6p = in6_pcblookup_hash(&udbinfo, &ip6->ip6_dst, uh.uh_dport, ip6_input_getdstifscope(m), in udp6_ctlinput()
[all …]
H A Dicmp6.c329 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 Dip6_input.c603 struct in6_addr tmp_dst = ip6->ip6_dst; /* copy to avoid unaligned access */ in ip6_input_check_interface()
670 dst6->sin6_addr = ip6->ip6_dst; in ip6_input_check_interface()
671 if (!in6_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in ip6_input_check_interface()
754 inet_ntop(AF_INET6, &ip6->ip6_dst, dst_str, sizeof(dst_str)); in ip6_input_check_interface()
766 inet_ntop(AF_INET6, &ip6->ip6_dst, dst_str, sizeof(dst_str)); in ip6_input_check_interface()
949 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst)) { in ip6_input()
957 if (IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst) && in ip6_input()
983 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) { in ip6_input()
1002 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) { in ip6_input()
1062 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst) && in ip6_input()
[all …]
H A Draw_ip6.c186 … !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 Dfrag6.c419 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in frag6_input()
420 d = ip6->ip6_dst.s6_addr16[1]; in frag6_input()
421 ip6->ip6_dst.s6_addr16[1] = 0; in frag6_input()
436 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in frag6_input()
437 ip6->ip6_dst.s6_addr16[1] = d; in frag6_input()
465 …in6_are_addr_equal_scoped(&ip6->ip6_dst, &q6->ip6q_dst, ip6_input_getdstifscope(m), q6->ip6q_dst_i… in frag6_input()
496 q6->ip6q_dst = ip6->ip6_dst; in frag6_input()
607 ip6err->ip6_dst = q6->ip6q_dst; in frag6_input()
848 ip6->ip6_dst = q6->ip6q_dst; in frag6_input()
991 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.c644 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) { in esp4_input_extended()
658 ip6addr->sin6_addr = ip6->ip6_dst; in esp4_input_extended()
974 …(caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst, interface != NULL ? interface->if_index : IFSCOPE_… in esp6_input_extended()
985 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[0]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[1]), in esp6_input_extended()
986 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[2]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[3]), in esp6_input_extended()
987 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[4]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[5]), in esp6_input_extended()
988 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[6]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[7]), in esp6_input_extended()
1298 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) { in esp6_input_extended()
1313 ip6addr->sin6_addr = ip6->ip6_dst; in esp6_input_extended()
H A Dip6_output.c525 finaldst = ip6->ip6_dst; in ip6_output_list()
859 if (im6o != NULL && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output_list()
869 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst) && in ip6_output_list()
870 (ip6->ip6_dst.s6_addr16[1] == 0) && (ro != NULL)) { in ip6_output_list()
872 ip6->ip6_dst.s6_addr16[1] = in ip6_output_list()
908 ip6->ip6_dst.s6_addr16[1] = 0; in ip6_output_list()
1028 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output_list()
1047 …!in6_are_addr_equal_scoped(&dst->sin6_addr, &ip6->ip6_dst, dst->sin6_scope_id, ip6_output_getdstif… in ip6_output_list()
1055 dst->sin6_addr = ip6->ip6_dst; in ip6_output_list()
1153 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output_list()
[all …]
H A Dnd6_nbr.c266 struct in6_addr daddr6 = ip6->ip6_dst; in nd6_ns_input()
300 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)); in nd6_ns_input()
664 ip6->ip6_dst = *daddr6; in nd6_ns_output()
667 ip6->ip6_dst.s6_addr16[0] = IPV6_ADDR_INT16_MLL; in nd6_ns_output()
668 ip6->ip6_dst.s6_addr16[1] = 0; in nd6_ns_output()
669 ip6->ip6_dst.s6_addr32[1] = 0; in nd6_ns_output()
670 ip6->ip6_dst.s6_addr32[2] = IPV6_ADDR_INT32_ONE; in nd6_ns_output()
671 ip6->ip6_dst.s6_addr32[3] = taddr6->s6_addr32[3]; in nd6_ns_output()
672 ip6->ip6_dst.s6_addr8[12] = 0xff; in nd6_ns_output()
674 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0) { in nd6_ns_output()
[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.c441 ip6->ip6_dst = *faddr; in udp6_output()
561 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()
/xnu-8796.141.3/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-8796.141.3/bsd/net/
H A Diptap.c579 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 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 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-8796.141.3/bsd/netinet/
H A Dtcp_input.c956 (int)((caddr_t)&ip6->ip6_dst - (caddr_t)ip6)); in tcp6_input()
1969 (((ip6->ip6_src.s6_addr16[0]) << 16) | (ip6->ip6_dst.s6_addr16[0])), in tcp_input()
2142 &ip6->ip6_dst, th->th_dport, ip6_input_getdstifscope(m), 1, in tcp_input()
2170 inet_ntop(AF_INET6, &ip6->ip6_dst, dbuf, sizeof(dbuf)); in tcp_input()
2196 …((isipv6 && !in6_are_addr_equal_scoped(&ip6->ip6_dst, &ip6->ip6_src, ip6_input_getdstifscope(m), i… in tcp_input()
2273 …!in6_are_addr_equal_scoped(&inp->in6p_laddr, &ip6->ip6_dst, inp->inp_lifscope, ip6_input_getdstifs… in tcp_input()
2332 th->th_dport, th->th_sport, &ip6->ip6_dst, in tcp_input()
2447 …if (in6_are_addr_equal_scoped(&ip6->ip6_dst, &ip6->ip6_src, ip6_input_getdstifscope(m), ip6_input_… in tcp_input()
2469 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in tcp_input()
2528 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.c644 memcmp(&ip6->ip6_dst, &in6addr_loopback, sizeof(struct in6_addr)) == 0) { in tcp_log_pkt_addresses()
655 inet_ntop(AF_INET6, &ip6->ip6_dst, fbuf, fbuflen); in tcp_log_pkt_addresses()
657 inet_ntop(AF_INET6, &ip6->ip6_dst, lbuf, lbuflen); in tcp_log_pkt_addresses()
H A Dudp_usrreq.c797 ip6->ip6_dst.s6_addr32[2] = IPV6_ADDR_INT32_SMP; in ip_2_ip6_hdr()
798 ip6->ip6_dst.s6_addr32[3] = ip->ip_dst.s_addr; in ip_2_ip6_hdr()
3048 ip6->ip6_dst = inp->in6p_faddr; in udp_fill_keepalive_offload_frames()
3049 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in udp_fill_keepalive_offload_frames()
3050 ip6->ip6_dst.s6_addr16[1] = 0; in udp_fill_keepalive_offload_frames()
3059 &ip6->ip6_dst, in udp_fill_keepalive_offload_frames()
/xnu-8796.141.3/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_track.c797 ip6->ip6_dst = fe->fe_key.fk_dst6; in flow_track_abort_tcp()
800 ip6->ip6_dst = rst_pkt->pkt_flow_ipv6_dst; in flow_track_abort_tcp()
962 ip6->ip6_dst = fe->fe_key.fk_dst6; in flow_track_abort_quic()

12