Home
last modified time | relevance | path

Searched refs:ip_dst (Results 1 – 25 of 161) sorted by relevance

1234567

/freebsd-12-stable/sys/netinet/libalias/
Dalias.c276 struct in_addr ip_dst, u_char ip_p, u_short *ip_sum,
299 lnk = FindIcmpIn(la, pip->ip_src, pip->ip_dst, ic->icmp_id, 1); in IcmpAliasIn1()
320 &original_address, &pip->ip_dst, 2); in IcmpAliasIn1()
321 pip->ip_dst = original_address; in IcmpAliasIn1()
351 lnk = FindUdpTcpIn(la, ip->ip_dst, ip->ip_src, in IcmpAliasIn2()
355 lnk = FindUdpTcpIn(la, ip->ip_dst, ip->ip_src, in IcmpAliasIn2()
360 lnk = FindIcmpIn(la, ip->ip_dst, ip->ip_src, ic2->icmp_id, 0); in IcmpAliasIn2()
388 &original_address, &pip->ip_dst, 2); in IcmpAliasIn2()
389 pip->ip_dst = original_address; in IcmpAliasIn2()
417 &original_address, &pip->ip_dst, 2); in IcmpAliasIn2()
[all …]
Dalias_pptp.c479 lnk = FindPptpOutByPeerCallId(la, pip->ip_src, pip->ip_dst, gr->gh_call_id); in AliasHandlePptpGreOut()
503 lnk = FindPptpInByPeerCallId(la, pip->ip_src, pip->ip_dst, gr->gh_call_id); in AliasHandlePptpGreIn()
512 &src_addr, &pip->ip_dst, 2); in AliasHandlePptpGreIn()
513 pip->ip_dst = src_addr; in AliasHandlePptpGreIn()
/freebsd-12-stable/tests/sys/netinet/libalias/
Dutil.h69 pip->ip_dst = dst; \
74 ATF_CHECK(addr_eq(dst, pip->ip_dst)); \
81 pip->ip_dst = dst; \
86 ATF_CHECK(addr_eq(dst, pip->ip_dst)); \
93 pip->ip_dst = dst; \
98 ATF_CHECK(addr_eq(rel, pip->ip_dst)); \
105 pip->ip_dst = dst; \
110 ATF_CHECK(addr_eq(dst, pip->ip_dst)); \
Dperf.c156 p->ip_dst = batch[i].dst; in main()
164 addr_eq(p->ip_dst, batch[i].dst) && in main()
182 p->ip_dst = masq; in main()
203 p->ip_dst = masq; in main()
239 p->ip_dst = masq; in main()
246 addr_eq(p->ip_dst, batch[k].src) && in main()
253 p->ip_dst = batch[k].dst; in main()
260 addr_eq(p->ip_dst, batch[k].dst) && in main()
/freebsd-12-stable/stand/libsa/
Dip.c74 struct in_addr ip_dst; member
118 ip->ip_dst = d->destip; in sendip()
121 if (ip->ip_dst.s_addr == INADDR_BROADCAST || ip->ip_src.s_addr == 0 || in sendip()
122 netmask == 0 || SAMENET(ip->ip_src, ip->ip_dst, netmask)) in sendip()
123 ea = arpwhohas(d, ip->ip_dst); in sendip()
262 if (d->myip.s_addr && ip->ip_dst.s_addr != d->myip.s_addr) { in readipv4()
266 printf("%s\n", inet_ntoa(ip->ip_dst)); in readipv4()
293 ipr->ip_dst.s_addr == ip->ip_dst.s_addr && in readipv4()
307 ipr->ip_dst = ip->ip_dst; in readipv4()
/freebsd-12-stable/sys/netinet/
Dip_fastfwd.c160 *addr = ip->ip_dst.s_addr; in ip_redir_alloc()
262 ntohl(ip->ip_dst.s_addr) == (u_long)INADDR_BROADCAST || in ip_tryforward()
264 IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) || in ip_tryforward()
266 IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) || in ip_tryforward()
268 ip->ip_dst.s_addr == INADDR_ANY ) in ip_tryforward()
274 if (in_localip(ip->ip_dst)) in ip_tryforward()
283 odest.s_addr = dest.s_addr = ip->ip_dst.s_addr; in ip_tryforward()
300 dest.s_addr = ip->ip_dst.s_addr; in ip_tryforward()
393 dest.s_addr = ip->ip_dst.s_addr; in ip_tryforward()
Din_gif.c96 (sc)->gif_iphdr->ip_dst.s_addr)
113 sc->gif_iphdr->ip_dst.s_addr == dst) in in_gif_checkdup()
120 tmp->gif_iphdr->ip_dst.s_addr == dst) in in_gif_checkdup()
236 ip->ip_dst.s_addr = dst->sin_addr.s_addr; in in_gif_ioctl()
261 sc->gif_iphdr->ip_src: sc->gif_iphdr->ip_dst; in in_gif_ioctl()
354 CK_LIST_FOREACH(sc, &GIF_HASH(ip->ip_dst.s_addr, in in_gif_lookup()
360 if (sc->gif_iphdr->ip_src.s_addr == ip->ip_dst.s_addr && in in_gif_lookup()
361 sc->gif_iphdr->ip_dst.s_addr == ip->ip_src.s_addr) { in in_gif_lookup()
371 if (sc->gif_iphdr->ip_src.s_addr == ip->ip_dst.s_addr) { in in_gif_lookup()
Dip_gre.c99 (sc)->gre_oip.ip_dst.s_addr)
134 sc->gre_oip.ip_dst.s_addr == dst && in in_gre_checkdup()
150 tmp->gre_oip.ip_dst.s_addr == dst) in in_gre_checkdup()
167 CK_LIST_FOREACH(sc, &GRE_HASH(ip->ip_dst.s_addr, in in_gre_lookup()
173 if (sc->gre_oip.ip_src.s_addr == ip->ip_dst.s_addr && in in_gre_lookup()
174 sc->gre_oip.ip_dst.s_addr == ip->ip_src.s_addr) { in in_gre_lookup()
249 if (sc->gre_oip.ip_dst.s_addr == dst) in in_gre_udp_input()
377 sc->gre_oip.ip_dst.s_addr, 0)); in in_gre_attach()
422 sc->gre_oip.ip_dst.s_addr, value) == EADDRNOTAVAIL) in in_gre_setopts()
490 ip->ip_dst.s_addr = dst->sin_addr.s_addr; in in_gre_ioctl()
[all …]
Dip_input.c509 if (IN_LOOPBACK(ntohl(ip->ip_dst.s_addr)) || in ip_input()
608 odst = ip->ip_dst; in ip_input()
615 dchg = (odst.s_addr != ip->ip_dst.s_addr); in ip_input()
689 LIST_FOREACH(ia, INADDR_HASH(ip->ip_dst.s_addr), ia_hash) { in ip_input()
695 if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr && in ip_input()
721 ip->ip_dst.s_addr) { in ip_input()
741 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { in ip_input()
777 if (ip->ip_dst.s_addr == (u_long)INADDR_BROADCAST) in ip_input()
779 if (ip->ip_dst.s_addr == INADDR_ANY) in ip_input()
782 if (IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) || in ip_input()
[all …]
Dip_icmp.c427 inet_ntoa_r(ip->ip_dst, dstbuf), icmplen); in icmp_input()
540 if (IN_MULTICAST(ntohl(icp->icmp_ip.ip_dst.s_addr))) in icmp_input()
546 icmpsrc.sin_addr = icp->icmp_ip.ip_dst; in icmp_input()
618 switch (ip->ip_dst.s_addr) { in icmp_input()
626 icmpdst.sin_addr = ip->ip_dst; in icmp_input()
657 dst = ntohl(icp->icmp_ip.ip_dst.s_addr); in icmp_input()
696 inet_ntoa_r(icp->icmp_ip.ip_dst, dstbuf), in icmp_input()
700 icmpsrc.sin_addr = icp->icmp_ip.ip_dst; in icmp_input()
761 t = ip->ip_dst; in icmp_reflect()
762 ip->ip_dst = ip->ip_src; in icmp_reflect()
[all …]
Dip_output.c125 odst.s_addr = ip->ip_dst.s_addr; in ip_output_pfil()
134 if (odst.s_addr != ip->ip_dst.s_addr) { in ip_output_pfil()
137 if (in_localip(ip->ip_dst)) { in ip_output_pfil()
159 dst->sin_addr = ip->ip_dst; in ip_output_pfil()
292 dst->sin_addr = ip->ip_dst; in ip_output()
315 dst->sin_addr.s_addr != ip->ip_dst.s_addr)) { in ip_output()
335 ip->ip_dst.s_addr = INADDR_BROADCAST; in ip_output()
336 dst->sin_addr = ip->ip_dst; in ip_output()
353 } else if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) && in ip_output()
371 ntohl(ip->ip_src.s_addr ^ ip->ip_dst.s_addr), in ip_output()
[all …]
Dip_options.c123 dst = ip->ip_dst; in ip_dooptions()
170 ipaddr.sin_addr = ip->ip_dst; in ip_dooptions()
214 inet_ntoa_r(ip->ip_dst, dstbuf)); in ip_dooptions()
265 ip->ip_dst = ipaddr.sin_addr; in ip_dooptions()
270 forward = !IN_MULTICAST(ntohl(ip->ip_dst.s_addr)); in ip_dooptions()
292 (void)memcpy(&ipaddr.sin_addr, &ip->ip_dst, in ip_dooptions()
523 ip->ip_dst = p->ipopt_dst; in ip_insertoptions()
Draw_ip.c301 ip->ip_dst.s_addr, V_ripcbinfo.ipi_hashmask); in rip_input()
311 if (inp->inp_laddr.s_addr != ip->ip_dst.s_addr) in rip_input()
333 if (prison_check_ip4(inp->inp_cred, &ip->ip_dst) != 0) in rip_input()
350 !in_hosteq(inp->inp_laddr, ip->ip_dst)) in rip_input()
374 if (!IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) && in rip_input()
375 prison_check_ip4(inp->inp_cred, &ip->ip_dst) != 0) in rip_input()
385 IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { in rip_input()
407 group.sin_addr = ip->ip_dst; in rip_input()
486 ip->ip_dst.s_addr = dst; in rip_output()
494 error = in_pcbladdr(inp, &ip->ip_dst, &ip->ip_src, in rip_output()
Din_rss.c285 return rss_proto_software_hash_v4(ip->ip_src, ip->ip_dst, in rss_mbuf_software_hash_v4()
299 return rss_proto_software_hash_v4(ip->ip_src, ip->ip_dst, in rss_mbuf_software_hash_v4()
307 return rss_proto_software_hash_v4(ip->ip_src, ip->ip_dst, in rss_mbuf_software_hash_v4()
/freebsd-12-stable/contrib/tcpdump/
Dprint-icmp.c367 ND_TCHECK(dp->icmp_ip.ip_dst); in icmp_print()
374 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), in icmp_print()
390 ipaddr_string(ndo, &oip->ip_dst), in icmp_print()
397 ipaddr_string(ndo, &oip->ip_dst), in icmp_print()
404 ipaddr_string(ndo, &oip->ip_dst), in icmp_print()
418 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), mtu); in icmp_print()
422 ipaddr_string(ndo, &dp->icmp_ip.ip_dst)); in icmp_print()
431 ipaddr_string(ndo, &dp->icmp_ip.ip_dst)); in icmp_print()
437 ND_TCHECK(dp->icmp_ip.ip_dst); in icmp_print()
441 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), in icmp_print()
[all …]
Dprint-tcp.c186 ipaddr_string(ndo, &ip->ip_dst))); in tcp_print()
209 ipaddr_string(ndo, &ip->ip_dst), in tcp_print()
315 … if (UNALIGNED_MEMCMP(&ip->ip_src, &ip->ip_dst, sizeof ip->ip_dst) > 0) in tcp_print()
319 UNALIGNED_MEMCPY(&tha.src, &ip->ip_dst, sizeof ip->ip_dst); in tcp_print()
323 UNALIGNED_MEMCPY(&tha.dst, &ip->ip_dst, sizeof ip->ip_dst); in tcp_print()
871 MD5_Update(&ctx, (const char *)&ip->ip_dst, sizeof(ip->ip_dst)); in tcp_verify_signature()
Dprint-ip.c133 UNALIGNED_MEMCPY(&retval, &ip->ip_dst, sizeof(uint32_t)); in ip_finddst()
160 UNALIGNED_MEMCPY(&ph.dst, &ip->ip_dst, sizeof(uint32_t)); in nextproto4_cksum()
485 ipaddr_string(ndo, &ipds->ip->ip_dst))); in ip_print_demux()
491 ipaddr_string(ndo, &ipds->ip->ip_dst))); in ip_print_demux()
677 ipaddr_string(ndo, &ipds->ip->ip_dst))); in ip_print()
694 ipaddr_string(ndo, &ipds->ip->ip_dst))); in ip_print()
/freebsd-12-stable/sbin/natd/
Dicmp.c102 swap = ip->ip_dst; in SendNeedFragIcmp()
103 ip->ip_dst = ip->ip_src; in SendNeedFragIcmp()
109 addr.sin_addr = ip->ip_dst; in SendNeedFragIcmp()
/freebsd-12-stable/sbin/ipf/ipsend/
Dipsend.c105 if (resolve(t, (char *)&ic->icmp_ip.ip_dst) == -1) in do_icmp()
155 ph.h.dst = ip->ip_dst.s_addr; in udpcksum()
326 if (resolve(dst, (char *)&ip->ip_dst) == -1) in main()
333 gwip = ip->ip_dst; in main()
396 printf("Dest: %s\n", inet_ntoa(ip->ip_dst)); in main()
Diptest.c133 if (resolve(dst, (char *)&ip->ip_dst) == -1) in main()
146 gwip = ip->ip_dst; in main()
158 printf("Dest: %s\n", inet_ntoa(ip->ip_dst)); in main()
/freebsd-12-stable/tools/tools/netmap/
Dpkt_hash.c157 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash()
168 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash()
175 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash()
198 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash()
/freebsd-12-stable/sys/netpfil/ipfw/nat64/
Dnat64clat.c97 nat64_check_ip4(ip->ip_dst.s_addr) != 0 || in nat64clat_handle_ip4()
98 nat64_check_private_ip4(&cfg->base, ip->ip_dst.s_addr) != 0) in nat64clat_handle_ip4()
104 nat64_embed_ip4(&daddr, cfg->base.plat_plen, ip->ip_dst.s_addr); in nat64clat_handle_ip4()
Dnat64_translate.c188 dst4.sin_addr = ip4->ip_dst; in nat64_direct_output_one()
493 sum += ~ip->ip_dst.s_addr >> 16; in nat64_cksum_convert()
494 sum += ~ip->ip_dst.s_addr & 0xffff; in nat64_cksum_convert()
849 oip->ip_src = ip->ip_dst; in nat64_icmp_reflect()
850 oip->ip_dst = ip->ip_src; in nat64_icmp_reflect()
1052 nat64_check_ip4(ip.ip_dst.s_addr) != 0 || in nat64_icmp_translate()
1054 nat64_check_private_ip4(cfg, ip.ip_dst.s_addr) != 0) { in nat64_icmp_translate()
1056 ntohl(ip.ip_src.s_addr), ntohl(ip.ip_dst.s_addr)); in nat64_icmp_translate()
1105 nat64_embed_ip4(&eip6->ip6_dst, cfg->plat_plen, ip.ip_dst.s_addr); in nat64_icmp_translate()
1532 ip.ip_dst.s_addr = aaddr; in nat64_handle_icmp6()
[all …]
/freebsd-12-stable/cddl/lib/libdtrace/
Dip.d240 inet_ntoa(&((struct ip *)p)->ip_dst.s_addr) :
258 inet_ntoa(&((struct ip *)m->m_data)->ip_dst.s_addr) :
286 ipv4_dst = p == NULL ? 0 : (ipaddr_t)ntohl(p->ip_dst.s_addr);
288 ipv4_daddr = p == NULL ? 0 : inet_ntoa(&p->ip_dst.s_addr);
/freebsd-12-stable/sys/netpfil/ipfilter/netinet/
Dip_tftp_pxy.c322 sw2ip = ip->ip_dst; in ipf_p_tftp_backchannel()
324 ip->ip_dst = nat->nat_nsrcip; in ipf_p_tftp_backchannel()
362 ip->ip_dst = nat->nat_nsrcip; in ipf_p_tftp_backchannel()
374 ip->ip_dst = nat->nat_osrcip; in ipf_p_tftp_backchannel()
389 ip->ip_dst = sw2ip; in ipf_p_tftp_backchannel()

1234567