Home
last modified time | relevance | path

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

123

/xnu-12377.81.4/bsd/netinet6/
H A Dip6_forward.c226 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in ip6_forward()
236 ip6_sprintf(&ip6->ip6_dst), in ip6_forward()
258 VERIFY(!IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)); in ip6_forward()
457 …!in6_are_addr_equal_scoped(&ip6->ip6_dst, &dst->sin6_addr, ip6_input_getdstifscope(m), dst->sin6_s… in ip6_forward()
468 dst->sin6_addr = ip6->ip6_dst; in ip6_forward()
527 ip6_sprintf(&ip6->ip6_dst), in ip6_forward()
549 dst_in6 = ip6->ip6_dst; in ip6_forward()
678 ip6_sprintf(&ip6->ip6_dst), in ip6_forward()
702 in6_clearscope(&ip6->ip6_dst); in ip6_forward()
H A Dudp6_usrreq.c308 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()
525 ipsec_fill_ip6_sockaddr_4_6_with_ifscope(&dst, &ip6->ip6_dst, in udp6_input()
579 &ip6->ip6_dst, uh->uh_dport, ip6_input_getdstifscope(m), 1, m->m_pkthdr.rcvif); in udp6_input()
586 strlcpy(buf, ip6_sprintf(&ip6->ip6_dst), sizeof(buf)); in udp6_input()
594 …!in6_are_addr_equal_scoped(&ip6->ip6_dst, &ip6->ip6_src, ip6_input_getdstifscope(m), ip6_input_get… in udp6_input()
612 &ip6->ip6_dst, uh->uh_dport) == true) { in udp6_input()
633 uh->uh_sport, &ip6->ip6_dst, &ip6->ip6_src, ifp, pf_tag, NULL, NULL, NULL, NULL)) { in udp6_input()
[all …]
H A Dicmp6.c334 IN6_IS_ADDR_MULTICAST(&oip6->ip6_dst)) && in icmp6_error_flag()
431 nip6->ip6_dst = oip6->ip6_dst; in icmp6_error_flag()
434 in6_clearscope(&oip6->ip6_dst); in icmp6_error_flag()
530 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) { in icmp6_input()
539 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in icmp6_input()
543 IN6_LOOKUP_MULTI(&ip6->ip6_dst, ifp, inm); in icmp6_input()
931 ip6_sprintf(&ip6->ip6_dst), in icmp6_input()
1157 icmp6dst.sin6_addr = eip6->ip6_dst; in icmp6_notify_error()
1331 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ni6_input()
1332 if (!IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst) && in ni6_input()
[all …]
H A Dip6_input.c606 struct in6_addr tmp_dst = ip6->ip6_dst; /* copy to avoid unaligned access */ in ip6_input_check_interface()
679 dst6->sin6_addr = ip6->ip6_dst; in ip6_input_check_interface()
680 if (!in6_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in ip6_input_check_interface()
763 inet_ntop(AF_INET6, &ip6->ip6_dst, dst_str, sizeof(dst_str)); in ip6_input_check_interface()
775 inet_ntop(AF_INET6, &ip6->ip6_dst, dst_str, sizeof(dst_str)); in ip6_input_check_interface()
978 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst)) { in ip6_input()
987 if (IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst) && in ip6_input()
1014 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) { in ip6_input()
1034 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) { in ip6_input()
1096 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst) && in ip6_input()
[all …]
H A Draw_ip6.c189 … !in6_are_addr_equal_scoped(&in6p->in6p_laddr, &ip6->ip6_dst, in6p->inp_lifscope, ifp->if_index)) { in rip6_input()
214 &ip6->ip6_dst, &ip6->ip6_src, ifp, 0, NULL, NULL, NULL, NULL)) { in rip6_input()
254 &ip6->ip6_dst, &ip6->ip6_src, ifp, 0, NULL, NULL, NULL, NULL)) { in rip6_input()
565 ip6->ip6_dst = *dst; in rip6_output()
575 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in rip6_output()
579 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && im6o != NULL) { in rip6_output()
591 ip6->ip6_dst.s6_addr16[1] = htons((uint16_t)pi->ipi6_ifindex); in rip6_output()
598 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in rip6_output()
603 ip6->ip6_dst.s6_addr16[1] = htons(oifp->if_index); in rip6_output()
620 ip6->ip6_dst.s6_addr16[1] in rip6_output()
[all …]
H A Dfrag6.c418 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in frag6_input()
419 d = ip6->ip6_dst.s6_addr16[1]; in frag6_input()
420 ip6->ip6_dst.s6_addr16[1] = 0; in frag6_input()
435 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in frag6_input()
436 ip6->ip6_dst.s6_addr16[1] = d; in frag6_input()
464 …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()
608 ip6err->ip6_dst = q6->ip6q_dst; in frag6_input()
853 ip6->ip6_dst = q6->ip6q_dst; in frag6_input()
996 ip6->ip6_dst = q6->ip6q_dst; in frag6_purgef()
H A Dipsec.c1412 bcopy(&ip6->ip6_dst, &sin6->sin6_addr, sizeof(ip6->ip6_dst)); in ipsec6_setspidx_ipaddr()
1413 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_setspidx_ipaddr()
1419 in6_verify_ifscope(&ip6->ip6_dst, sin6->sin6_scope_id); in ipsec6_setspidx_ipaddr()
1422 sin6->sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]); in ipsec6_setspidx_ipaddr()
2423 if (in6_embedded_scope && IN6_IS_SCOPE_LINKLOCAL(&oip6->ip6_dst)) { in ipsec6_encapsulate()
2424 oip6->ip6_dst.s6_addr16[1] = 0; in ipsec6_encapsulate()
2439 &ip6->ip6_dst, sizeof(ip6->ip6_dst)); in ipsec6_encapsulate()
2442 if (in6_embedded_scope && IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_encapsulate()
2444 ip6->ip6_dst.s6_addr16[1] = htons((u_int16_t)sav->sah->outgoing_if); in ipsec6_encapsulate()
2562 !IN6_ARE_ADDR_EQUAL(&dst6->sin6_addr, &ip6->ip6_dst)) { in ipsec6_update_routecache_and_output()
[all …]
H A Din6_cksum.c228 sum += in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, in inet6_cksum()
294 sum += in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, in inet6_cksum_buffer()
H A Dip6_output.c553 finaldst = ip6->ip6_dst; in ip6_output_list()
890 if (im6o != NULL && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output_list()
900 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst) && in ip6_output_list()
901 (ip6->ip6_dst.s6_addr16[1] == 0) && (ro != NULL)) { in ip6_output_list()
903 ip6->ip6_dst.s6_addr16[1] = in ip6_output_list()
940 ip6->ip6_dst.s6_addr16[1] = 0; in ip6_output_list()
1062 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output_list()
1081 …!in6_are_addr_equal_scoped(&dst->sin6_addr, &ip6->ip6_dst, dst->sin6_scope_id, ip6_output_getdstif… in ip6_output_list()
1089 dst->sin6_addr = ip6->ip6_dst; in ip6_output_list()
1187 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output_list()
[all …]
H A Dnd6_nbr.c271 struct in6_addr daddr6 = ip6->ip6_dst; in nd6_ns_input()
306 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)); in nd6_ns_input()
682 ip6->ip6_dst = *daddr6; in nd6_ns_output()
685 ip6->ip6_dst.s6_addr16[0] = IPV6_ADDR_INT16_MLL; in nd6_ns_output()
686 ip6->ip6_dst.s6_addr16[1] = 0; in nd6_ns_output()
687 ip6->ip6_dst.s6_addr32[1] = 0; in nd6_ns_output()
688 ip6->ip6_dst.s6_addr32[2] = IPV6_ADDR_INT32_ONE; in nd6_ns_output()
689 ip6->ip6_dst.s6_addr32[3] = taddr6->s6_addr32[3]; in nd6_ns_output()
690 ip6->ip6_dst.s6_addr8[12] = 0xff; in nd6_ns_output()
692 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 Desp_input.c660 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) { in esp4_input_extended()
674 ip6addr->sin6_addr = ip6->ip6_dst; in esp4_input_extended()
987 ipsec_fill_ip6_sockaddr_4_6_with_ifscope(&dst, &ip6->ip6_dst, 0, in esp6_input_extended()
995 ip6_sprintf(&ip6->ip6_src), ip6_sprintf(&ip6->ip6_dst), in esp6_input_extended()
1317 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) { in esp6_input_extended()
1332 ip6addr->sin6_addr = ip6->ip6_dst; in esp6_input_extended()
1787 ipsec_fill_ip6_sockaddr_4_6_with_ifscope(&dst, &ip6->ip6_dst, 0, in esp_kpipe_input()
H A Dah_input.c626 ipsec_fill_ip6_sockaddr_4_6_with_ifscope(&dst, &ip6->ip6_dst, 0, in ah6_input()
823 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) { in ah6_input()
850 ip6addr->sin6_addr = ip6->ip6_dst; in ah6_input()
H A Dudp6_output.c475 ip6->ip6_dst = *faddr; in udp6_output()
601 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in udp6_output()
H A Dnd6_prproxy.c506 if (IN6_IS_ADDR_MC_NODELOCAL(&ip6->ip6_dst) || in nd6_prproxy_isours()
507 IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst)) { in nd6_prproxy_isours()
511 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in nd6_prproxy_isours()
531 VERIFY(in6_are_addr_equal_scoped(&ip6->ip6_dst, in nd6_prproxy_isours()
/xnu-12377.81.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-12377.81.4/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()
658 if (in6_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in iptap_bpf_tap()
659 ip6->ip6_dst.s6_addr16[1] = (uint16_t)dst_scope_id; in iptap_bpf_tap()
H A Dnat464_utils.c336 ptr < PTR_IP6(ip6_dst)) { in nat464_translate_icmp()
338 } else if (ptr >= PTR_IP6(ip6_dst) && in nat464_translate_icmp()
452 ptr = PTR_IP6(ip6_dst); in nat464_translate_icmp()
564 ip6->ip6_dst = dst->natv6addr; in nat464_translate_icmp_ip()
572 inet_ntop(AF_INET6, (void *)&ip6->ip6_dst, buf2, sizeof(buf2)))); in nat464_translate_icmp_ip()
763 ip6->ip6_dst = dst_v6; in nat464_translate_46()
771 inet_ntop(AF_INET6, (void *)&ip6->ip6_dst, buf2, sizeof(buf2)))); in nat464_translate_46()
828 ndst = &ip6h->ip6_dst; in nat464_translate_proto()
H A Dif_stf.c560 if (IN6_IS_ADDR_6TO4(&ip6->ip6_dst)) { in stf_pre_output()
561 in4 = GET_V4(&ip6->ip6_dst); in stf_pre_output()
792 if (stf_checkaddr6(sc, &ip6.ip6_dst, NULL) < 0 || in in_stf_input()
H A Dpf_norm.c444 key->fr_dstx.v6addr = ip6->ip6_dst; in pf_ip6hdr2key()
1172 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in pf_reassemble6()
1173 d = ip6->ip6_dst.s6_addr16[1]; in pf_reassemble6()
1174 ip6->ip6_dst.s6_addr16[1] = 0; in pf_reassemble6()
1189 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) { in pf_reassemble6()
1190 ip6->ip6_dst.s6_addr16[1] = d; in pf_reassemble6()
1229 (*frag)->fr_dstx.v6addr = frent->fr_ip6->ip6_dst; in pf_reassemble6()
1399 ip6->ip6_dst = (*frag)->fr_dstx.v6addr; in pf_reassemble6()
1542 (*frag)->fr_dstx.v6addr = h->ip6_dst; in pf_frag6cache()
1854 dst->sin6_addr = hdr->ip6_dst; in pf_refragment6()
[all …]
/xnu-12377.81.4/bsd/netinet/
H A Dtcp_syncookie.c511 SipHash_Update(&ctx, &tpi->ip6->ip6_dst.s6_addr, sizeof(tpi->ip6->ip6_dst.s6_addr)); in syncookie_siphash()
542 cchmac_update(di, ctx, sizeof(tpi->ip6->ip6_dst.s6_addr), &tpi->ip6->ip6_dst.s6_addr); in syncookie_hmac_sha256()
H A Dip6.h121 struct in6_addr ip6_dst; /* destination address */ member
H A Dtcp_input.c961 (int)((caddr_t)&ip6->ip6_dst - (caddr_t)ip6)); in tcp6_input()
2290 sin6->sin6_addr = tpi->ip6->ip6_dst; in tcp_create_server_socket()
2429 inp->in6p_laddr = tpi->ip6->ip6_dst; in tcp_create_server_socket()
2431 in6_verify_ifscope(&tpi->ip6->ip6_dst, inp->inp_lifscope); in tcp_create_server_socket()
2592 inp->in6p_laddr = tpi->ip6->ip6_dst; in tcp_setup_server_socket()
2848 (((ip6->ip6_src.s6_addr16[0]) << 16) | (ip6->ip6_dst.s6_addr16[0])), in tcp_input()
3027 &ip6->ip6_dst, th->th_dport, ip6_input_getdstifscope(m), 1, in tcp_input()
3055 inet_ntop(AF_INET6, &ip6->ip6_dst, dbuf, sizeof(dbuf)); in tcp_input()
3081 …((isipv6 && !in6_are_addr_equal_scoped(&ip6->ip6_dst, &ip6->ip6_src, ip6_input_getdstifscope(m), i… in tcp_input()
3164 …!in6_are_addr_equal_scoped(&inp->in6p_laddr, &ip6->ip6_dst, inp->inp_lifscope, ip6_input_getdstifs… in tcp_input()
[all …]
/xnu-12377.81.4/tests/skywalk/
H A Dskt_reass.c255 inet_pton(AF_INET6, utun_addr_str, &ip6->ip6_dst); in bad_fraglen_build()
329 inet_pton(AF_INET6, utun_addr_str, &ip6->ip6_dst); in timeout_build()
414 bcopy(&dst, &ip6->ip6_dst, sizeof(dst)); in atomic_build()
507 bcopy(&dst, &ip6->ip6_dst, sizeof(dst)); in queue_limit_build()
/xnu-12377.81.4/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_track.c817 ip6->ip6_dst = fe->fe_key.fk_dst6; in flow_track_abort_tcp()
820 ip6->ip6_dst = rst_pkt->pkt_flow_ipv6_dst; in flow_track_abort_tcp()
983 ip6->ip6_dst = fe->fe_key.fk_dst6; in flow_track_abort_quic()

123