Home
last modified time | relevance | path

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

123

/f-stack/freebsd/netinet6/
H A Dip6_forward.c112 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in ip6_forward()
122 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in ip6_forward()
184 dst.sin6_addr = ip6->ip6_dst; in ip6_forward()
220 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in ip6_forward()
293 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in ip6_forward()
308 in6_clearscope(&ip6->ip6_dst); in ip6_forward()
314 odst = ip6->ip6_dst; in ip6_forward()
322 if (!IN6_ARE_ADDR_EQUAL(&odst, &ip6->ip6_dst)) { in ip6_forward()
325 if (in6_localip(&ip6->ip6_dst)) in ip6_forward()
331 dst.sin6_scope_id = ntohs(in6_getscope(&ip6->ip6_dst)); in ip6_forward()
[all …]
H A Dip6_fastfwd.c108 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || in ip6_tryforward()
109 IN6_IS_ADDR_LINKLOCAL(&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 Din6_gif.c101 &(sc)->gif_ip6hdr->ip6_dst)
119 IN6_ARE_ADDR_EQUAL(&sc->gif_ip6hdr->ip6_dst, dst)) in in6_gif_checkdup()
126 IN6_ARE_ADDR_EQUAL(&tmp->gif_ip6hdr->ip6_dst, dst)) in in6_gif_checkdup()
251 ip6->ip6_dst = dst->sin6_addr; in in6_gif_ioctl()
277 sc->gif_ip6hdr->ip6_src: sc->gif_ip6hdr->ip6_dst; in in6_gif_ioctl()
375 CK_LIST_FOREACH(sc, &GIF_HASH(&ip6->ip6_dst, &ip6->ip6_src), chain) { in in6_gif_lookup()
381 &ip6->ip6_dst) && in in6_gif_lookup()
382 IN6_ARE_ADDR_EQUAL(&sc->gif_ip6hdr->ip6_dst, in in6_gif_lookup()
394 &ip6->ip6_dst)) { in in6_gif_lookup()
H A Dip6_gre.c90 &(sc)->gre_oip6.ip6_dst)
125 IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_dst, dst) && in in6_gre_checkdup()
141 IN6_ARE_ADDR_EQUAL(&tmp->gre_oip6.ip6_dst, dst)) in in6_gre_checkdup()
158 CK_LIST_FOREACH(sc, &GRE_HASH(&ip6->ip6_dst, &ip6->ip6_src), chain) { in in6_gre_lookup()
164 &ip6->ip6_dst) && in in6_gre_lookup()
165 IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_dst, in in6_gre_lookup()
247 if (IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_dst, &dst.sin6_addr)) in in6_gre_udp_input()
423 &sc->gre_oip6.ip6_dst, value) == EADDRNOTAVAIL) in in6_gre_setopts()
500 ip6->ip6_dst = dst->sin6_addr; in in6_gre_ioctl()
530 sc->gre_oip6.ip6_src: sc->gre_oip6.ip6_dst; in in6_gre_ioctl()
H A Dip6_input.c638 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst)) { in ip6_input()
658 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in ip6_input()
659 IPV6_ADDR_MC_SCOPE(&ip6->ip6_dst) == 0) { in ip6_input()
688 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) { in ip6_input()
702 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) { in ip6_input()
751 odst = ip6->ip6_dst; in ip6_input()
784 in6_setscope(&ip6->ip6_dst, rcvif, NULL)) { in ip6_input()
797 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_input()
816 ip6_sprintf(ip6bufd, &ip6->ip6_dst))); in ip6_input()
880 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_input()
[all …]
H A Dicmp6.c371 nip6->ip6_dst = oip6->ip6_dst; in icmp6_error()
374 in6_clearscope(&oip6->ip6_dst); in icmp6_error()
437 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in icmp6_input()
440 inm = in6m_lookup(ifp, &ip6->ip6_dst); in icmp6_input()
855 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in icmp6_input()
1063 icmp6dst.sin6_addr = eip6->ip6_dst; in icmp6_notify_error()
2148 ip6->ip6_dst = ip6->ip6_src; in icmp6_reflect()
2456 if (IN6_IS_ADDR_MULTICAST(&sip6->ip6_dst)) in icmp6_redirect_output()
2531 bcopy(&sip6->ip6_dst, &nd_rd->nd_rd_dst, in icmp6_redirect_output()
2537 bcopy(&sip6->ip6_dst, &nd_rd->nd_rd_dst, in icmp6_redirect_output()
[all …]
H A Dnd6_nbr.c159 daddr6 = ip6->ip6_dst; in nd6_ns_input()
454 ip6->ip6_dst = *daddr6; in nd6_ns_output_fib()
456 ip6->ip6_dst.s6_addr16[0] = IPV6_ADDR_INT16_MLL; in nd6_ns_output_fib()
457 ip6->ip6_dst.s6_addr16[1] = 0; in nd6_ns_output_fib()
458 ip6->ip6_dst.s6_addr32[1] = 0; in nd6_ns_output_fib()
459 ip6->ip6_dst.s6_addr32[2] = IPV6_ADDR_INT32_ONE; in nd6_ns_output_fib()
461 ip6->ip6_dst.s6_addr8[12] = 0xff; in nd6_ns_output_fib()
462 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0) in nd6_ns_output_fib()
493 in6_splitscope(&ip6->ip6_dst, &dst6, &scopeid); in nd6_ns_output_fib()
680 daddr6 = ip6->ip6_dst; in nd6_na_input()
[all …]
H A Dip6_mroute.c1091 IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst)) in X_ip6_mforward()
1110 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in X_ip6_mforward()
1122 MF6CFIND(ip6->ip6_src, ip6->ip6_dst, rt); in X_ip6_mforward()
1138 ip6_sprintf(ip6bufd, &ip6->ip6_dst)); in X_ip6_mforward()
1163 hash = MF6CHASH(ip6->ip6_src, ip6->ip6_dst); in X_ip6_mforward()
1167 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, in X_ip6_mforward()
1487 dst0 = ip6->ip6_dst; in ip6_mdq()
1595 dst6.sin6_addr = ip6->ip6_dst; in phyint_send()
1619 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in phyint_send()
1639 ip6_sprintf(ip6bufd, &ip6->ip6_dst)); in register_send()
[all …]
H A Din6_cksum.c121 scope = in6_getscope(&ip6->ip6_dst); in _in6_cksum_pseudo()
122 w = (u_int16_t *)&ip6->ip6_dst; in _in6_cksum_pseudo()
203 scope = in6_getscope(&ip6->ip6_dst); in in6_cksum_partial()
204 w = (u_int16_t *)&ip6->ip6_dst; in in6_cksum_partial()
H A Dsend.c180 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) in send_output()
186 dst.sin6_addr = ip6->ip6_dst; in send_output()
279 in6_clearscope(&ip6->ip6_dst); in send_input()
H A Din6_rss.c353 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()
374 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6()
H A Draw_ip6.c187 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ip6->ip6_dst)) in rip6_input()
237 if (!IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && in rip6_input()
239 &ip6->ip6_dst) != 0) in rip6_input()
264 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in rip6_input()
291 mcaddr.sin6_addr = ip6->ip6_dst; in rip6_input()
491 ip6->ip6_dst = dstsock->sin6_addr; in rip6_output()
H A Dip6_output.c670 else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output()
681 dst->sin6_addr = ip6->ip6_dst; in ip6_output()
715 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output()
749 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output()
806 dst0 = ip6->ip6_dst; in ip6_output()
811 dst_sa.sin6_addr = ip6->ip6_dst; in ip6_output()
877 if (!IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ip6_output()
985 in6_clearscope(&ip6->ip6_dst); in ip6_output()
1024 odst = ip6->ip6_dst; in ip6_output()
1042 if (in6_localip(&ip6->ip6_dst)) { in ip6_output()
[all …]
H A Dudp6_usrreq.c314 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in udp6_input()
346 &ip6->ip6_dst)) in udp6_input()
382 mcaddr.sin6_addr = ip6->ip6_dst; in udp6_input()
470 uh->uh_sport, &ip6->ip6_dst, uh->uh_dport, in udp6_input()
489 uh->uh_sport, &ip6->ip6_dst, uh->uh_dport, in udp6_input()
499 ip6_sprintf(ip6bufd, &ip6->ip6_dst), in udp6_input()
606 inp = in6_pcblookup_mbuf(pcbinfo, &ip6->ip6_dst, in udp6_common_ctlinput()
937 ip6->ip6_dst = *faddr; in udp6_output()
H A Dfrag6.c264 ip6->ip6_dst = q6->ip6q_dst; in frag6_freef()
399 ia6 = in6ifa_ifwithaddr(&ip6->ip6_dst, 0 /* XXX */); in frag6_input()
502 memcpy(hashkeyp, &ip6->ip6_dst, sizeof(struct in6_addr)); in frag6_input()
513 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &q6->ip6q_dst) in frag6_input()
558 q6->ip6q_dst = ip6->ip6_dst; in frag6_input()
657 ip6err->ip6_dst = q6->ip6q_dst; in frag6_input()
/f-stack/freebsd/netpfil/ipfw/nptv6/
H A Dnptv6.c178 inet_ntop(AF_INET6, &ip6->ip6_dst, _d, sizeof(_d)), in nptv6_translate_icmpv6()
183 else if (IN6_ARE_MASKED_ADDR_EQUAL(&ip6->ip6_dst, in nptv6_translate_icmpv6()
240 inet_ntop(AF_INET6, &ip6->ip6_dst, _d, sizeof(_d)), in nptv6_rewrite_internal()
251 addr = &ip6->ip6_dst; in nptv6_rewrite_internal()
298 inet_ntop(AF_INET6, &ip6->ip6_dst, _d, sizeof(_d)), in nptv6_rewrite_external()
301 addr = &ip6->ip6_dst; in nptv6_rewrite_external()
381 inet_ntop(AF_INET6, &ip6->ip6_dst, _d, sizeof(_d)), in ipfw_nptv6()
389 if (IN6_ARE_MASKED_ADDR_EQUAL(&ip6->ip6_dst, in ipfw_nptv6()
393 } else if (IN6_ARE_MASKED_ADDR_EQUAL(&ip6->ip6_dst, in ipfw_nptv6()
415 args->f_id.dst_ip6 = ip6->ip6_dst; in ipfw_nptv6()
/f-stack/freebsd/netipsec/
H A Dsubr_ipsec.c120 bcopy(&ip6->ip6_dst, &dst->sin6.sin6_addr, sizeof(ip6->ip6_dst)); in ipsec6_setsockaddrs()
121 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_setsockaddrs()
123 dst->sin6.sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]); in ipsec6_setsockaddrs()
H A Dipsec_output.c472 sin6->sin6_addr = ip6->ip6_dst; in ipsec6_allocsa()
473 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_allocsa()
477 ntohs(ip6->ip6_dst.s6_addr16[1]); in ipsec6_allocsa()
547 (!in6_sa_equal_addrwithscope(&dst->sin6, &ip6->ip6_dst)))) { in ipsec6_perform_request()
929 in6_clearscope(&ip6->ip6_dst); in ipsec_encap()
973 ip6->ip6_dst = saidx->dst.sin6.sin6_addr; in ipsec_encap()
975 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) in ipsec_encap()
976 ip6->ip6_dst.s6_addr16[1] = in ipsec_encap()
/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64_translate.c202 dst6.sin6_addr = ip6->ip6_dst; in nat64_direct_output_one()
748 oip6->ip6_dst = ip6->ip6_src; in nat64_icmp6_reflect()
1076 if (ip.ip_src.s_addr != nat64_get_ip4(&ip6->ip6_dst)) { in nat64_icmp_translate()
1079 nat64_get_ip4(&ip6->ip6_dst)); in nat64_icmp_translate()
1106 eip6->ip6_src = ip6->ip6_dst; in nat64_icmp_translate()
1109 eip6->ip6_dst = ip6->ip6_src; in nat64_icmp_translate()
1250 ip6.ip6_dst = *daddr; in nat64_do_handle_ip4()
1274 dst.sin6_addr = ip6.ip6_dst; in nat64_do_handle_ip4()
1356 nat64_check_ip6(&ip6->ip6_dst) != 0) in nat64_handle_icmp6()
1528 nat64_check_ip6(&ip6i->ip6_dst) != 0) { in nat64_handle_icmp6()
[all …]
H A Dnat64clat.c129 if (memcmp(&ip6->ip6_dst, &cfg->base.clat_prefix, in nat64clat_handle_ip6()
192 daddr = nat64_extract_ip4(&ip6i->ip6_dst, cfg->base.clat_plen); in nat64clat_handle_icmp6()
H A Dnat64stl.c135 if (memcmp(&ip6->ip6_dst, &cfg->base.plat_prefix, in nat64stl_handle_ip6()
193 sizeof(struct in6_addr), &ip6i->ip6_dst, &tablearg) == 0) { in nat64stl_handle_icmp6()
/f-stack/freebsd/contrib/ipfilter/netinet/
H A Dip_tftp_pxy.c350 sw2ip6.in6 = ip6->ip6_dst;
352 ip6->ip6_dst = nat->nat_nsrc6.in6;
386 ip6->ip6_dst = nat->nat_nsrc6.in6;
398 ip6->ip6_dst = nat->nat_osrc6.in6;
414 ip6->ip6_dst = sw2ip6.in6;
/f-stack/dpdk/examples/ipsec-secgw/
H A Dipsec_worker.c154 uint8_t *ip6_dst; in route6_pkt() local
159 offset = RTE_ETHER_HDR_LEN + offsetof(struct ip6_hdr, ip6_dst); in route6_pkt()
160 ip6_dst = rte_pktmbuf_mtod_offset(pkt, uint8_t *, offset); in route6_pkt()
161 memcpy(&dst_ip[0], ip6_dst, 16); in route6_pkt()
/f-stack/freebsd/netinet/
H A Dtcp_lro.c603 le->dest_ip6 = ip6->ip6_dst; in tcp_set_le_to_m()
1265 ip6->ip6_dst.s6_addr32[0]; in tcp_lro_rx2()
1267 ip6->ip6_dst.s6_addr32[1]; in tcp_lro_rx2()
1269 ip6->ip6_dst.s6_addr32[2]; in tcp_lro_rx2()
1271 ip6->ip6_dst.s6_addr32[3]; in tcp_lro_rx2()
1294 bcmp(&le->dest_ip6, &ip6->ip6_dst, in tcp_lro_rx2()
1351 le->dest_ip6 = ip6->ip6_dst; in tcp_lro_rx2()
/f-stack/freebsd/net/
H A Dif_stf.c465 if (IN6_IS_ADDR_6TO4(&ip6->ip6_dst)) in stf_output()
466 ptr = GET_V4(&ip6->ip6_dst); in stf_output()
662 if (stf_checkaddr6(sc, &ip6->ip6_dst, NULL) < 0 || in in_stf_input()

123