| /freebsd-13-stable/sys/netinet6/ |
| HD | ip6_forward.c | 110 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in ip6_forward() 120 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in ip6_forward() 182 dst.sin6_addr = ip6->ip6_dst; in ip6_forward() 183 dst.sin6_scope_id = in6_get_unicast_scopeid(&ip6->ip6_dst, m->m_pkthdr.rcvif); in ip6_forward() 230 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in ip6_forward() 247 inzone = in6_get_unicast_scopeid(&ip6->ip6_dst, m->m_pkthdr.rcvif); in ip6_forward() 248 outzone = in6_get_unicast_scopeid(&ip6->ip6_dst, nh->nh_ifp); in ip6_forward() 303 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in ip6_forward() 318 in6_clearscope(&ip6->ip6_dst); in ip6_forward() 324 odst = ip6->ip6_dst; in ip6_forward() [all …]
|
| HD | ip6_fastfwd.c | 106 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in ip6_tryforward() 107 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst) || in ip6_tryforward() 110 in6_localip(&ip6->ip6_dst)) in ip6_tryforward() 158 dst.sin6_addr = ip6->ip6_dst; in ip6_tryforward() 191 dst.sin6_addr = ip6->ip6_dst; in ip6_tryforward() 255 !IN6_ARE_ADDR_EQUAL(&dst.sin6_addr, &ip6->ip6_dst)) { in ip6_tryforward() 261 dst.sin6_addr = ip6->ip6_dst; in ip6_tryforward()
|
| HD | in6_gif.c | 99 &(sc)->gif_ip6hdr->ip6_dst) 117 IN6_ARE_ADDR_EQUAL(&sc->gif_ip6hdr->ip6_dst, dst)) in in6_gif_checkdup() 124 IN6_ARE_ADDR_EQUAL(&tmp->gif_ip6hdr->ip6_dst, dst)) in in6_gif_checkdup() 249 ip6->ip6_dst = dst->sin6_addr; in in6_gif_ioctl() 275 sc->gif_ip6hdr->ip6_src: sc->gif_ip6hdr->ip6_dst; in in6_gif_ioctl() 358 CK_LIST_FOREACH(sc, &GIF_HASH(&ip6->ip6_dst, &ip6->ip6_src), chain) { in in6_gif_lookup() 364 &ip6->ip6_dst) && in in6_gif_lookup() 365 IN6_ARE_ADDR_EQUAL(&sc->gif_ip6hdr->ip6_dst, in in6_gif_lookup() 377 &ip6->ip6_dst)) { in in6_gif_lookup()
|
| HD | ip6_gre.c | 88 &(sc)->gre_oip6.ip6_dst) 123 IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_dst, dst) && in in6_gre_checkdup() 139 IN6_ARE_ADDR_EQUAL(&tmp->gre_oip6.ip6_dst, dst)) in in6_gre_checkdup() 156 CK_LIST_FOREACH(sc, &GRE_HASH(&ip6->ip6_dst, &ip6->ip6_src), chain) { in in6_gre_lookup() 162 &ip6->ip6_dst) && in in6_gre_lookup() 163 IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_dst, in in6_gre_lookup() 245 if (IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_dst, &dst.sin6_addr)) in in6_gre_udp_input() 421 &sc->gre_oip6.ip6_dst, value) == EADDRNOTAVAIL) in in6_gre_setopts() 498 ip6->ip6_dst = dst->sin6_addr; in in6_gre_ioctl() 528 sc->gre_oip6.ip6_src: sc->gre_oip6.ip6_dst; in in6_gre_ioctl()
|
| HD | ip6_input.c | 640 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst)) { in ip6_input() 648 if (IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst) && in ip6_input() 660 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in ip6_input() 661 IPV6_ADDR_MC_SCOPE(&ip6->ip6_dst) == 0) { in ip6_input() 690 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) { in ip6_input() 704 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) { in ip6_input() 753 odst = ip6->ip6_dst; in ip6_input() 758 srcrt = !IN6_ARE_ADDR_EQUAL(&odst, &ip6->ip6_dst); in ip6_input() 781 if (in6_clearscope(&ip6->ip6_src) || in6_clearscope(&ip6->ip6_dst)) { in ip6_input() 786 in6_setscope(&ip6->ip6_dst, rcvif, NULL)) { in ip6_input() [all …]
|
| HD | nd6_nbr.c | 142 ip6_sprintf(ip6bufd, &ip6->ip6_dst), if_name(ifp))); in nd6_ns_input() 157 daddr6 = ip6->ip6_dst; in nd6_ns_input() 453 ip6->ip6_dst = *daddr6; in nd6_ns_output_fib() 455 ip6->ip6_dst.s6_addr16[0] = IPV6_ADDR_INT16_MLL; in nd6_ns_output_fib() 456 ip6->ip6_dst.s6_addr16[1] = 0; in nd6_ns_output_fib() 457 ip6->ip6_dst.s6_addr32[1] = 0; in nd6_ns_output_fib() 458 ip6->ip6_dst.s6_addr32[2] = IPV6_ADDR_INT32_ONE; in nd6_ns_output_fib() 459 ip6->ip6_dst.s6_addr32[3] = taddr6->s6_addr32[3]; in nd6_ns_output_fib() 460 ip6->ip6_dst.s6_addr8[12] = 0xff; in nd6_ns_output_fib() 461 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0) in nd6_ns_output_fib() [all …]
|
| HD | ip6_mroute.c | 1081 ip6_sprintf(ip6bufd, &ip6->ip6_dst), ifp->if_index); in X_ip6_mforward() 1087 if (ip6->ip6_hlim <= 1 || IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst) || in X_ip6_mforward() 1088 IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst)) in X_ip6_mforward() 1107 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in X_ip6_mforward() 1119 MF6CFIND(ip6->ip6_src, ip6->ip6_dst, rt); in X_ip6_mforward() 1135 ip6_sprintf(ip6bufd, &ip6->ip6_dst)); in X_ip6_mforward() 1160 hash = MF6CHASH(ip6->ip6_src, ip6->ip6_dst); in X_ip6_mforward() 1164 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, in X_ip6_mforward() 1260 rt->mf6c_mcastgrp.sin6_addr = ip6->ip6_dst; in X_ip6_mforward() 1484 dst0 = ip6->ip6_dst; in ip6_mdq() [all …]
|
| HD | icmp6.c | 241 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0) in icmp6_error2() 293 IN6_IS_ADDR_MULTICAST(&oip6->ip6_dst)) && in icmp6_error() 362 nip6->ip6_dst = oip6->ip6_dst; in icmp6_error() 365 in6_clearscope(&oip6->ip6_dst); in icmp6_error() 430 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in icmp6_input() 433 inm = in6m_lookup(ifp, &ip6->ip6_dst); in icmp6_input() 850 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in icmp6_input() 1058 icmp6dst.sin6_addr = eip6->ip6_dst; in icmp6_notify_error() 1216 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ni6_input() 1217 if (!IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst)) in ni6_input() [all …]
|
| HD | in6_cksum.c | 129 scope = in6_getscope(&ip6->ip6_dst); in _in6_cksum_pseudo() 130 w = (u_int16_t *)&ip6->ip6_dst; in _in6_cksum_pseudo() 305 scope = in6_getscope(&ip6->ip6_dst); in in6_cksum_partial() 306 w = (uint16_t *)&ip6->ip6_dst; in in6_cksum_partial()
|
| HD | send.c | 186 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) in send_output() 192 dst.sin6_addr = ip6->ip6_dst; in send_output() 295 in6_clearscope(&ip6->ip6_dst); in send_input()
|
| HD | in6_rss.c | 350 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6() 363 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6() 371 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6()
|
| HD | raw_ip6.c | 185 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ip6->ip6_dst)) in rip6_input() 236 if (!IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in rip6_input() 238 &ip6->ip6_dst) != 0) in rip6_input() 263 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in rip6_input() 290 mcaddr.sin6_addr = ip6->ip6_dst; in rip6_input() 497 ip6->ip6_dst = dstsock->sin6_addr; in rip6_output()
|
| HD | ip6_output.c | 660 else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output() 671 dst->sin6_addr = ip6->ip6_dst; in ip6_output() 689 !IN6_ARE_ADDR_EQUAL(&ro->ro_dst.sin6_addr, &ip6->ip6_dst))) in ip6_output() 694 IN6_ARE_ADDR_EQUAL(&ro->ro_dst.sin6_addr, &ip6->ip6_dst)) { in ip6_output() 705 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output() 739 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output() 798 dst0 = ip6->ip6_dst; in ip6_output() 803 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output() 856 if (nh && !IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output() 869 if (!IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output() [all …]
|
| HD | udp6_usrreq.c | 312 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in udp6_input() 344 &ip6->ip6_dst)) in udp6_input() 380 mcaddr.sin6_addr = ip6->ip6_dst; in udp6_input() 468 uh->uh_sport, &ip6->ip6_dst, uh->uh_dport, in udp6_input() 487 uh->uh_sport, &ip6->ip6_dst, uh->uh_dport, in udp6_input() 497 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in udp6_input() 605 inp = in6_pcblookup_mbuf(pcbinfo, &ip6->ip6_dst, in udp6_common_ctlinput() 931 ip6->ip6_dst = *faddr; in udp6_output()
|
| HD | frag6.c | 262 ip6->ip6_dst = q6->ip6q_dst; in frag6_freef() 397 ia6 = in6ifa_ifwithaddr(&ip6->ip6_dst, 0 /* XXX */, false); in frag6_input() 498 memcpy(hashkeyp, &ip6->ip6_dst, sizeof(struct in6_addr)); in frag6_input() 509 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &q6->ip6q_dst) in frag6_input() 554 q6->ip6q_dst = ip6->ip6_dst; in frag6_input() 652 ip6err->ip6_dst = q6->ip6q_dst; in frag6_input()
|
| /freebsd-13-stable/sys/netpfil/ipfw/nptv6/ |
| HD | nptv6.c | 176 inet_ntop(AF_INET6, &ip6->ip6_dst, _d, sizeof(_d)), in nptv6_translate_icmpv6() 181 else if (IN6_ARE_MASKED_ADDR_EQUAL(&ip6->ip6_dst, in nptv6_translate_icmpv6() 238 inet_ntop(AF_INET6, &ip6->ip6_dst, _d, sizeof(_d)), in nptv6_rewrite_internal() 249 addr = &ip6->ip6_dst; in nptv6_rewrite_internal() 296 inet_ntop(AF_INET6, &ip6->ip6_dst, _d, sizeof(_d)), in nptv6_rewrite_external() 299 addr = &ip6->ip6_dst; in nptv6_rewrite_external() 379 inet_ntop(AF_INET6, &ip6->ip6_dst, _d, sizeof(_d)), in ipfw_nptv6() 387 if (IN6_ARE_MASKED_ADDR_EQUAL(&ip6->ip6_dst, in ipfw_nptv6() 391 } else if (IN6_ARE_MASKED_ADDR_EQUAL(&ip6->ip6_dst, in ipfw_nptv6() 413 args->f_id.dst_ip6 = ip6->ip6_dst; in ipfw_nptv6()
|
| /freebsd-13-stable/tools/tools/netmap/ |
| HD | pkt_hash.c | 220 daddr = ipv6h->ip6_dst.s6_addr[0] | in decode_ipv6_n_hash() 221 (ipv6h->ip6_dst.s6_addr[1] << 8) | in decode_ipv6_n_hash() 222 (ipv6h->ip6_dst.s6_addr[2] << 16) | in decode_ipv6_n_hash() 223 (ipv6h->ip6_dst.s6_addr[3] << 24); in decode_ipv6_n_hash()
|
| /freebsd-13-stable/sys/netipsec/ |
| HD | ipsec_output.c | 458 sin6->sin6_addr = ip6->ip6_dst; in ipsec6_allocsa() 459 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_allocsa() 463 ntohs(ip6->ip6_dst.s6_addr16[1]); in ipsec6_allocsa() 533 (!in6_sa_equal_addrwithscope(&dst->sin6, &ip6->ip6_dst)))) { in ipsec6_perform_request() 903 in6_clearscope(&ip6->ip6_dst); in ipsec_encap() 947 ip6->ip6_dst = saidx->dst.sin6.sin6_addr; in ipsec_encap() 949 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) in ipsec_encap() 950 ip6->ip6_dst.s6_addr16[1] = in ipsec_encap()
|
| HD | subr_ipsec.c | 118 bcopy(&ip6->ip6_dst, &dst->sin6.sin6_addr, sizeof(ip6->ip6_dst)); in ipsec6_setsockaddrs() 119 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_setsockaddrs() 121 dst->sin6.sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]); in ipsec6_setsockaddrs()
|
| /freebsd-13-stable/contrib/tcpdump/ |
| HD | print-tcp.c | 189 GET_IP6ADDR_STRING(ip6->ip6_dst)); in tcp_print() 207 GET_IP6ADDR_STRING(ip6->ip6_dst), in tcp_print() 269 dst = (const void *)ip6->ip6_dst; in tcp_print() 273 if (UNALIGNED_MEMCMP(src, dst, sizeof(ip6->ip6_dst)) > 0) in tcp_print() 277 UNALIGNED_MEMCPY(&tha.src, dst, sizeof(ip6->ip6_dst)); in tcp_print() 281 UNALIGNED_MEMCPY(&tha.dst, dst, sizeof(ip6->ip6_dst)); in tcp_print() 939 MD5_Update(&ctx, (const char *)&ip6->ip6_dst, sizeof(ip6->ip6_dst)); in tcp_verify_signature()
|
| HD | print-ip6.c | 61 dst_addr = (const void *)ip6->ip6_dst; in ip6_finddst() 206 GET_CPY_BYTES(&ph.ph_dst, ip6->ip6_dst, sizeof(nd_ipv6)); in nextproto6_cksum() 329 GET_IP6ADDR_STRING(ip6->ip6_dst)); in ip6_print()
|
| /freebsd-13-stable/cddl/lib/libdtrace/ |
| HD | ip.d | 239 inet_ntoa6(&((struct ip6_hdr *)p)->ip6_dst); 257 inet_ntoa6(&((struct ip6_hdr *)m->m_data)->ip6_dst); 300 ipv6_dst = p == NULL ? 0 : (in6_addr_t *)&p->ip6_dst; 302 ipv6_daddr = p == NULL ? 0 : inet_ntoa6(&p->ip6_dst);
|
| /freebsd-13-stable/sys/netpfil/ipfilter/netinet/ |
| HD | ip_tftp_pxy.c | 330 sw2ip6.in6 = ip6->ip6_dst; in ipf_p_tftp_backchannel() 332 ip6->ip6_dst = nat->nat_nsrc6.in6; in ipf_p_tftp_backchannel() 366 ip6->ip6_dst = nat->nat_nsrc6.in6; in ipf_p_tftp_backchannel() 378 ip6->ip6_dst = nat->nat_osrc6.in6; in ipf_p_tftp_backchannel() 394 ip6->ip6_dst = sw2ip6.in6; in ipf_p_tftp_backchannel()
|
| /freebsd-13-stable/sys/netpfil/ipfw/nat64/ |
| HD | nat64_translate.c | 200 dst6.sin6_addr = ip6->ip6_dst; in nat64_direct_output_one() 741 oip6->ip6_dst = ip6->ip6_src; in nat64_icmp6_reflect() 1070 if (ip.ip_src.s_addr != nat64_get_ip4(&ip6->ip6_dst)) { in nat64_icmp_translate() 1073 nat64_get_ip4(&ip6->ip6_dst)); in nat64_icmp_translate() 1100 eip6->ip6_src = ip6->ip6_dst; in nat64_icmp_translate() 1103 eip6->ip6_dst = ip6->ip6_src; in nat64_icmp_translate() 1105 nat64_embed_ip4(&eip6->ip6_dst, cfg->plat_plen, ip.ip_dst.s_addr); in nat64_icmp_translate() 1244 ip6.ip6_dst = *daddr; in nat64_do_handle_ip4() 1268 dst.sin6_addr = ip6.ip6_dst; in nat64_do_handle_ip4() 1350 nat64_check_ip6(&ip6->ip6_dst) != 0) in nat64_handle_icmp6() [all …]
|
| HD | nat64clat.c | 127 if (memcmp(&ip6->ip6_dst, &cfg->base.clat_prefix, in nat64clat_handle_ip6() 190 daddr = nat64_extract_ip4(&ip6i->ip6_dst, cfg->base.clat_plen); in nat64clat_handle_icmp6()
|