/freebsd/sys/netinet6/ |
H A D | ip6_forward.c | 111 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() 229 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in ip6_forward() 246 inzone = in6_get_unicast_scopeid(&ip6->ip6_dst, m->m_pkthdr.rcvif); in ip6_forward() 247 outzone = in6_get_unicast_scopeid(&ip6->ip6_dst, nh->nh_ifp); in ip6_forward() 302 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in ip6_forward() 317 in6_clearscope(&ip6->ip6_dst); in ip6_forward() 323 odst = ip6->ip6_dst; in ip6_forward() [all …]
|
H A D | ip6_fastfwd.c | 107 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in ip6_tryforward() 108 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst) || in ip6_tryforward() 110 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst) || in ip6_tryforward() 112 in6_localip(&ip6->ip6_dst)) in ip6_tryforward() 160 dst.sin6_addr = ip6->ip6_dst; in ip6_tryforward() 193 dst.sin6_addr = ip6->ip6_dst; in ip6_tryforward() 257 !IN6_ARE_ADDR_EQUAL(&dst.sin6_addr, &ip6->ip6_dst)) { in ip6_tryforward() 263 dst.sin6_addr = ip6->ip6_dst; in ip6_tryforward()
|
H A D | in6_gif.c | 100 &(sc)->gif_ip6hdr->ip6_dst) 118 IN6_ARE_ADDR_EQUAL(&sc->gif_ip6hdr->ip6_dst, dst)) in in6_gif_checkdup() 125 IN6_ARE_ADDR_EQUAL(&tmp->gif_ip6hdr->ip6_dst, dst)) in in6_gif_checkdup() 250 ip6->ip6_dst = dst->sin6_addr; in in6_gif_ioctl() 276 sc->gif_ip6hdr->ip6_src: sc->gif_ip6hdr->ip6_dst; in in6_gif_ioctl() 359 CK_LIST_FOREACH(sc, &GIF_HASH(&ip6->ip6_dst, &ip6->ip6_src), chain) { in in6_gif_lookup() 365 &ip6->ip6_dst) && in in6_gif_lookup() 366 IN6_ARE_ADDR_EQUAL(&sc->gif_ip6hdr->ip6_dst, in in6_gif_lookup() 378 &ip6->ip6_dst)) { in in6_gif_lookup()
|
H A D | ip6_gre.c | 89 &(sc)->gre_oip6.ip6_dst) 124 IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_dst, dst) && in in6_gre_checkdup() 140 IN6_ARE_ADDR_EQUAL(&tmp->gre_oip6.ip6_dst, dst)) in in6_gre_checkdup() 157 CK_LIST_FOREACH(sc, &GRE_HASH(&ip6->ip6_dst, &ip6->ip6_src), chain) { in in6_gre_lookup() 163 &ip6->ip6_dst) && in in6_gre_lookup() 164 IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_dst, in in6_gre_lookup() 231 if (IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_dst, &dst.sin6_addr)) in in6_gre_udp_input() 407 &sc->gre_oip6.ip6_dst, value) == EADDRNOTAVAIL) in in6_gre_setopts() 484 ip6->ip6_dst = dst->sin6_addr; in in6_gre_ioctl() 514 sc->gre_oip6.ip6_src: sc->gre_oip6.ip6_dst; in in6_gre_ioctl()
|
H A D | ip6_input.c | 635 if (IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst) && in ip6_input() 647 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in ip6_input() 648 IPV6_ADDR_MC_SCOPE(&ip6->ip6_dst) == 0) { in ip6_input() 671 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) { in ip6_input() 685 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) { in ip6_input() 734 odst = ip6->ip6_dst; in ip6_input() 739 srcrt = !IN6_ARE_ADDR_EQUAL(&odst, &ip6->ip6_dst); in ip6_input() 757 if (__predict_false(IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst))) { in ip6_input() 773 if (in6_clearscope(&ip6->ip6_src) || in6_clearscope(&ip6->ip6_dst)) { in ip6_input() 778 in6_setscope(&ip6->ip6_dst, rcvi in ip6_input() [all...] |
H A D | icmp6.c | 257 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0) in icmp6_error2() 309 IN6_IS_ADDR_MULTICAST(&oip6->ip6_dst)) && in icmp6_error() 378 nip6->ip6_dst = oip6->ip6_dst; in icmp6_error() 381 in6_clearscope(&oip6->ip6_dst); in icmp6_error() 490 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in icmp6_input() 493 inm = in6m_lookup(ifp, &ip6->ip6_dst); in icmp6_input() 881 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in icmp6_input() 1089 IN6_IS_ADDR_UNSPECIFIED(&eip6->ip6_dst)) in icmp6_notify_error() 1095 icmp6dst.sin6_addr = eip6->ip6_dst; in icmp6_notify_error() 1249 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ni6_input() [all …]
|
H A D | nd6_nbr.c | 153 ip6_sprintf(ip6bufd, &ip6->ip6_dst), if_name(ifp))); in nd6_ns_input() 168 daddr6 = ip6->ip6_dst; in nd6_ns_input() 462 ip6->ip6_dst = *daddr6; in nd6_ns_output_fib() 464 ip6->ip6_dst.s6_addr16[0] = IPV6_ADDR_INT16_MLL; in nd6_ns_output_fib() 465 ip6->ip6_dst.s6_addr16[1] = 0; in nd6_ns_output_fib() 466 ip6->ip6_dst.s6_addr32[1] = 0; in nd6_ns_output_fib() 467 ip6->ip6_dst.s6_addr32[2] = IPV6_ADDR_INT32_ONE; in nd6_ns_output_fib() 468 ip6->ip6_dst.s6_addr32[3] = taddr6->s6_addr32[3]; in nd6_ns_output_fib() 469 ip6->ip6_dst.s6_addr8[12] = 0xff; in nd6_ns_output_fib() 470 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0) in nd6_ns_output_fib() [all …]
|
H A D | ip6_mroute.c | 1079 ip6_sprintf(ip6bufd, &ip6->ip6_dst), ifp->if_index); in X_ip6_mforward() 1085 if (ip6->ip6_hlim <= 1 || IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst) || in X_ip6_mforward() 1086 IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst)) in X_ip6_mforward() 1104 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in X_ip6_mforward() 1116 MF6CFIND(ip6->ip6_src, ip6->ip6_dst, rt); in X_ip6_mforward() 1132 ip6_sprintf(ip6bufd, &ip6->ip6_dst)); in X_ip6_mforward() 1157 hash = MF6CHASH(ip6->ip6_src, ip6->ip6_dst); in X_ip6_mforward() 1161 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, in X_ip6_mforward() 1257 rt->mf6c_mcastgrp.sin6_addr = ip6->ip6_dst; in X_ip6_mforward() 1483 dst0 = ip6->ip6_dst; in ip6_mdq() [all …]
|
H A D | in6_cksum.c | 126 scope = in6_getscope(&ip6->ip6_dst); in _in6_cksum_pseudo() 127 w = (u_int16_t *)&ip6->ip6_dst; in _in6_cksum_pseudo() 304 scope = in6_getscope(&ip6->ip6_dst); in in6_cksum_partial_l2() 305 w = (uint16_t *)&ip6->ip6_dst; in in6_cksum_partial_l2()
|
H A D | raw_ip6.c | 170 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ip6->ip6_dst)) in rip6_inp_match() 220 !IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in rip6_input() 221 prison_check_ip6(inp->inp_cred, &ip6->ip6_dst) != 0) in rip6_input() 257 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in rip6_input() 284 mcaddr.sin6_addr = ip6->ip6_dst; in rip6_input() 481 ip6->ip6_dst = dstsock->sin6_addr; in rip6_send()
|
H A D | in6_rss.c | 345 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6() 358 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6() 366 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6()
|
H A D | send.c | 184 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) in send_output() 190 dst.sin6_addr = ip6->ip6_dst; in send_output() 293 in6_clearscope(&ip6->ip6_dst); in send_input()
|
H A D | ip6_output.c | 642 else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output() 653 dst->sin6_addr = ip6->ip6_dst; in ip6_output() 671 !IN6_ARE_ADDR_EQUAL(&ro->ro_dst.sin6_addr, &ip6->ip6_dst))) in ip6_output() 676 IN6_ARE_ADDR_EQUAL(&ro->ro_dst.sin6_addr, &ip6->ip6_dst)) { in ip6_output() 687 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output() 726 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output() 816 dst0 = ip6->ip6_dst; in ip6_output() 821 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output() 857 if (nh && !IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output() 870 if (!IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output() [all …]
|
H A D | udp6_usrreq.c | 235 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ctx->ip6->ip6_dst)) in udp6_multi_match() 293 mcaddr.sin6_addr = ctx.ip6->ip6_dst; in udp6_multi_input() 450 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in udp6_input() 475 uh->uh_sport, &ip6->ip6_dst, uh->uh_dport, in udp6_input() 494 uh->uh_sport, &ip6->ip6_dst, uh->uh_dport, in udp6_input() 504 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in udp6_input() 579 inp = in6_pcblookup_mbuf(pcbinfo, &ip6->ip6_dst, uh.uh_dport, in udp6_common_ctlinput() 906 ip6->ip6_dst = *faddr; in udp6_send()
|
H A D | frag6.c | 331 ip6->ip6_dst = q6->ip6q_dst; in frag6_freef() 460 ia6 = in6ifa_ifwithaddr(&ip6->ip6_dst, 0 /* XXX */, false); in frag6_input() 561 memcpy(hashkeyp, &ip6->ip6_dst, sizeof(struct in6_addr)); in frag6_input() 572 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &q6->ip6q_dst) in frag6_input() 616 q6->ip6q_dst = ip6->ip6_dst; in frag6_input() 700 ip6err->ip6_dst = q6->ip6q_dst; in frag6_input()
|
/freebsd/sys/netpfil/ipfw/nptv6/ |
H A D | 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/tools/tools/netmap/ |
H A D | 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/contrib/tcpdump/ |
H A D | 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()
|
H A D | 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/cddl/lib/libdtrace/ |
H A D | 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/sys/netipsec/ |
H A D | subr_ipsec.c | 107 bcopy(&ip6->ip6_dst, &dst->sin6.sin6_addr, sizeof(ip6->ip6_dst)); in ipsec6_setsockaddrs() 108 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_setsockaddrs() 110 dst->sin6.sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]); in ipsec6_setsockaddrs()
|
H A D | ipsec_output.c | 589 sin6->sin6_addr = ip6->ip6_dst; in ipsec6_allocsa() 590 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_allocsa() 594 ntohs(ip6->ip6_dst.s6_addr16[1]); in ipsec6_allocsa() 689 (!in6_sa_equal_addrwithscope(&dst->sin6, &ip6->ip6_dst)))) { in ipsec6_perform_request() 1176 in6_clearscope(&ip6->ip6_dst); in ipsec_encap() 1220 ip6->ip6_dst = saidx->dst.sin6.sin6_addr; in ipsec_encap() 1222 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) in ipsec_encap() 1223 ip6->ip6_dst.s6_addr16[1] = in ipsec_encap()
|
/freebsd/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.c | 201 dst6.sin6_addr = ip6->ip6_dst; in nat64_direct_output_one() 742 oip6->ip6_dst = ip6->ip6_src; in nat64_icmp6_reflect() 1071 if (ip.ip_src.s_addr != nat64_get_ip4(&ip6->ip6_dst)) { in nat64_icmp_translate() 1074 nat64_get_ip4(&ip6->ip6_dst)); in nat64_icmp_translate() 1101 eip6->ip6_src = ip6->ip6_dst; in nat64_icmp_translate() 1104 eip6->ip6_dst = ip6->ip6_src; in nat64_icmp_translate() 1106 nat64_embed_ip4(&eip6->ip6_dst, cfg->plat_plen, ip.ip_dst.s_addr); in nat64_icmp_translate() 1245 ip6.ip6_dst = *daddr; in nat64_do_handle_ip4() 1269 dst.sin6_addr = ip6.ip6_dst; in nat64_do_handle_ip4() 1351 nat64_check_ip6(&ip6->ip6_dst) != 0) in nat64_handle_icmp6() [all …]
|
H A D | nat64clat.c | 126 if (memcmp(&ip6->ip6_dst, &cfg->base.clat_prefix, in nat64clat_handle_ip6() 189 daddr = nat64_extract_ip4(&ip6i->ip6_dst, cfg->base.clat_plen); in nat64clat_handle_icmp6()
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | 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()
|