/freebsd/sys/netinet/libalias/ |
H A D | alias.c | 275 struct in_addr ip_dst, u_char ip_p, u_short *ip_sum, 298 lnk = FindIcmpIn(la, pip->ip_src, pip->ip_dst, ic->icmp_id, 1); in IcmpAliasIn1() 319 &original_address, &pip->ip_dst, 2); in IcmpAliasIn1() 320 pip->ip_dst = original_address; in IcmpAliasIn1() 350 lnk = FindUdpTcpIn(la, ip->ip_dst, ip->ip_src, in IcmpAliasIn2() 354 lnk = FindUdpTcpIn(la, ip->ip_dst, ip->ip_src, in IcmpAliasIn2() 359 lnk = FindIcmpIn(la, ip->ip_dst, ip->ip_src, ic2->icmp_id, 0); in IcmpAliasIn2() 387 &original_address, &pip->ip_dst, 2); in IcmpAliasIn2() 388 pip->ip_dst = original_address; in IcmpAliasIn2() 416 &original_address, &pip->ip_dst, 2); in IcmpAliasIn2() [all …]
|
H A D | alias_pptp.c | 477 lnk = FindPptpOutByPeerCallId(la, pip->ip_src, pip->ip_dst, gr->gh_call_id); in AliasHandlePptpGreOut() 501 lnk = FindPptpInByPeerCallId(la, pip->ip_src, pip->ip_dst, gr->gh_call_id); in AliasHandlePptpGreIn() 510 &src_addr, &pip->ip_dst, 2); in AliasHandlePptpGreIn() 511 pip->ip_dst = src_addr; in AliasHandlePptpGreIn()
|
/freebsd/contrib/tcpdump/ |
H A D | print-icmp.c | 357 GET_IPADDR_STRING(dp->icmp_ip.ip_dst)); in icmp_print() 363 GET_IPADDR_STRING(dp->icmp_ip.ip_dst)); in icmp_print() 369 GET_IPADDR_STRING(dp->icmp_ip.ip_dst), in icmp_print() 385 GET_IPADDR_STRING(oip->ip_dst), in icmp_print() 392 GET_IPADDR_STRING(oip->ip_dst), in icmp_print() 399 GET_IPADDR_STRING(oip->ip_dst), in icmp_print() 413 GET_IPADDR_STRING(dp->icmp_ip.ip_dst), mtu); in icmp_print() 417 GET_IPADDR_STRING(dp->icmp_ip.ip_dst)); in icmp_print() 425 GET_IPADDR_STRING(dp->icmp_ip.ip_dst)); in icmp_print() 431 GET_IPADDR_STRING(dp->icmp_ip.ip_dst)); in icmp_print() [all …]
|
H A D | print-tcp.c | 193 GET_IPADDR_STRING(ip->ip_dst)); in tcp_print() 218 GET_IPADDR_STRING(ip->ip_dst), in tcp_print() 327 … if (UNALIGNED_MEMCMP(ip->ip_src, ip->ip_dst, sizeof(ip->ip_dst)) > 0) in tcp_print() 331 UNALIGNED_MEMCPY(&tha.src, ip->ip_dst, in tcp_print() 332 sizeof(ip->ip_dst)); in tcp_print() 337 UNALIGNED_MEMCPY(&tha.dst, ip->ip_dst, in tcp_print() 338 sizeof(ip->ip_dst)); in tcp_print() 930 MD5_Update(&ctx, (const char *)&ip->ip_dst, sizeof(ip->ip_dst)); in tcp_verify_signature()
|
H A D | print-ip.c | 128 return (GET_IPV4_TO_NETWORK_ORDER(ip->ip_dst)); in ip_finddst() 154 ph.dst = GET_IPV4_TO_NETWORK_ORDER(ip->ip_dst); in nextproto4_cksum() 442 GET_IPADDR_STRING(ip->ip_dst)); in ip_print() 461 GET_IPADDR_STRING(ip->ip_dst)); in ip_print() 491 GET_IPADDR_STRING(ip->ip_dst)); in ip_print()
|
/freebsd/tests/sys/netinet/libalias/ |
H A D | util.h | 69 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)); \
|
H A D | perf.c | 156 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/tests/sys/netinet/ |
H A D | output.sh | 48 ip_dst="${net_dst}2" 66 jexec ${jname}b ifconfig ${epair}b inet ${ip_dst}/${plen} 87 echo -n "${text}" | jexec ${jname}a nc -N ${ip_dst} ${port} 118 ip_dst="${net_dst}2" 135 jexec ${jname}b ifconfig ${epair}b inet ${ip_dst}/${plen} 157 echo -n "${text}" | jexec ${jname}a nc -uNw1 ${ip_dst} ${port} 187 ip_dst="${net_dst}2" 203 jexec ${jname}b ifconfig ${epair}b inet ${ip_dst}/${plen} 205 atf_check -o match:'1 packets transmitted, 1 packets received' jexec ${jname}a ping -nc1 ${ip_dst} 254 ip_dst="${net_dst}1" [all …]
|
/freebsd/stand/libsa/ |
H A D | ip.c | 71 struct in_addr ip_dst; member 115 ip->ip_dst = d->destip; in sendip() 118 if (ip->ip_dst.s_addr == INADDR_BROADCAST || ip->ip_src.s_addr == 0 || in sendip() 119 netmask == 0 || SAMENET(ip->ip_src, ip->ip_dst, netmask)) in sendip() 120 ea = arpwhohas(d, ip->ip_dst); in sendip() 259 if (d->myip.s_addr && ip->ip_dst.s_addr != d->myip.s_addr) { in readipv4() 263 printf("%s\n", inet_ntoa(ip->ip_dst)); in readipv4() 290 ipr->ip_dst.s_addr == ip->ip_dst.s_addr && in readipv4() 304 ipr->ip_dst = ip->ip_dst; in readipv4()
|
/freebsd/tests/sys/netinet6/ |
H A D | output6.sh | 48 ip_dst=${net_dst}4242 66 jexec ${jname}b ifconfig ${epair}b inet6 ${ip_dst}/${plen} 95 echo -n "${text}" | jexec ${jname}a nc -N ${ip_dst} ${port} 126 ip_dst=${net_dst}4242 143 jexec ${jname}b ifconfig ${epair}b inet6 ${ip_dst}/${plen} 173 echo -n "${text}" | jexec ${jname}a nc -uNw1 ${ip_dst} ${port} 203 ip_dst=${net_dst}4242 219 jexec ${jname}b ifconfig ${epair}b inet6 ${ip_dst}/${plen} 229 …f_check -o match:'1 packets transmitted, 1 packets received' jexec ${jname}a ping -6 -nc1 ${ip_dst} 279 ip_dst="${net_dst}::1" [all …]
|
/freebsd/sys/netinet/ |
H A D | in_gif.c | 95 (sc)->gif_iphdr->ip_dst.s_addr) 112 sc->gif_iphdr->ip_dst.s_addr == dst) in in_gif_checkdup() 119 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() 263 sc->gif_iphdr->ip_src: sc->gif_iphdr->ip_dst; in in_gif_ioctl() 341 CK_LIST_FOREACH(sc, &GIF_HASH(ip->ip_dst.s_addr, in in_gif_lookup() 347 if (sc->gif_iphdr->ip_src.s_addr == ip->ip_dst.s_addr && in in_gif_lookup() 348 sc->gif_iphdr->ip_dst.s_addr == ip->ip_src.s_addr) { in in_gif_lookup() 358 if (sc->gif_iphdr->ip_src.s_addr == ip->ip_dst.s_addr) { in in_gif_lookup()
|
H A D | ip_gre.c | 98 (sc)->gre_oip.ip_dst.s_addr) 133 sc->gre_oip.ip_dst.s_addr == dst && in in_gre_checkdup() 149 tmp->gre_oip.ip_dst.s_addr == dst) in in_gre_checkdup() 166 CK_LIST_FOREACH(sc, &GRE_HASH(ip->ip_dst.s_addr, in in_gre_lookup() 172 if (sc->gre_oip.ip_src.s_addr == ip->ip_dst.s_addr && in in_gre_lookup() 173 sc->gre_oip.ip_dst.s_addr == ip->ip_src.s_addr) { in in_gre_lookup() 234 if (sc->gre_oip.ip_dst.s_addr == dst) in in_gre_udp_input() 362 sc->gre_oip.ip_dst.s_addr, 0)); in in_gre_attach() 409 sc->gre_oip.ip_dst.s_addr, value) == EADDRNOTAVAIL) in in_gre_setopts() 477 ip->ip_dst.s_addr = dst->sin_addr.s_addr; in in_gre_ioctl() [all …]
|
H A D | ip_fastfwd.c | 282 in_broadcast(ip->ip_dst) || in ip_tryforward() 284 IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) || in ip_tryforward() 286 IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) ) in ip_tryforward() 292 if (in_localip(ip->ip_dst)) in ip_tryforward() 301 odest.s_addr = dest.s_addr = ip->ip_dst.s_addr; in ip_tryforward() 318 dest.s_addr = ip->ip_dst.s_addr; in ip_tryforward() 410 dest.s_addr = ip->ip_dst.s_addr; in ip_tryforward()
|
H A D | ip_input.c | 517 if (IN_LOOPBACK(ntohl(ip->ip_dst.s_addr)) || in ip_input() 615 odst = ip->ip_dst; in ip_input() 621 dchg = (odst.s_addr != ip->ip_dst.s_addr); in ip_input() 646 if (__predict_false(ntohl(ip->ip_dst.s_addr) == INADDR_ANY)) { in ip_input() 696 CK_LIST_FOREACH(ia, INADDR_HASH(ip->ip_dst.s_addr), ia_hash) { in ip_input() 697 if (IA_SIN(ia)->sin_addr.s_addr != ip->ip_dst.s_addr) in ip_input() 738 ip->ip_dst.s_addr) { in ip_input() 755 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { in ip_input() 792 if (in_broadcast(ip->ip_dst)) in ip_input() 795 if (IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) || in ip_input() [all …]
|
H A D | raw_ip.c | 265 if (inp->inp_laddr.s_addr != ctx->ip->ip_dst.s_addr) in rip_inp_match1() 285 !in_hosteq(inp->inp_laddr, ctx->ip->ip_dst)) in rip_inp_match2() 326 ctx.ip->ip_dst.s_addr, V_ripcbinfo.ipi_hashmask); in rip_input() 330 prison_check_ip4(inp->inp_cred, &ctx.ip->ip_dst) != 0) { in rip_input() 352 !IN_MULTICAST(ntohl(ctx.ip->ip_dst.s_addr)) && in rip_input() 353 prison_check_ip4(inp->inp_cred, &ctx.ip->ip_dst) != 0) in rip_input() 370 IN_MULTICAST(ntohl(ctx.ip->ip_dst.s_addr))) { in rip_input() 392 group.sin_addr = ctx.ip->ip_dst; in rip_input() 488 ip->ip_dst.s_addr = *dst; in rip_send() 494 ip->ip_dst, 0, 0, ip->ip_p, &hash_type); in rip_send() [all …]
|
H A D | ip_icmp.c | 485 inet_ntoa_r(ip->ip_dst, dstbuf), icmplen); in icmp_input() 560 if (IN_MULTICAST(ntohl(icp->icmp_ip.ip_dst.s_addr))) in icmp_input() 563 if (icp->icmp_ip.ip_dst.s_addr == INADDR_ANY || in icmp_input() 638 if (in_broadcast(ip->ip_dst)) in icmp_input() 641 icmpdst.sin_addr = ip->ip_dst; in icmp_input() 670 dst = ntohl(icp->icmp_ip.ip_dst.s_addr); in icmp_input() 709 inet_ntoa_r(icp->icmp_ip.ip_dst, dstbuf), in icmp_input() 713 icmpsrc.sin_addr = icp->icmp_ip.ip_dst; in icmp_input() 793 t = ip->ip_dst; in icmp_reflect() 794 ip->ip_dst = ip->ip_src; in icmp_reflect() [all …]
|
H A D | ip_output.c | 121 odst.s_addr = ip->ip_dst.s_addr; in ip_output_pfil() 140 if (odst.s_addr != ip->ip_dst.s_addr) { in ip_output_pfil() 143 if (in_localip(ip->ip_dst)) { in ip_output_pfil() 165 dst->sin_addr = ip->ip_dst; in ip_output_pfil() 394 dst->sin_addr = ip->ip_dst; in ip_output() 414 dst->sin_addr.s_addr != ip->ip_dst.s_addr)) in ip_output() 432 ip->ip_dst.s_addr = INADDR_BROADCAST; in ip_output() 433 dst->sin_addr = ip->ip_dst; in ip_output() 452 (in_broadcast(ip->ip_dst) || in ip_output() 455 } else if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) && in ip_output() [all …]
|
H A D | ip_options.c | 123 dst = ip->ip_dst; in ip_dooptions() 169 ipaddr.sin_addr = ip->ip_dst; in ip_dooptions() 213 inet_ntoa_r(ip->ip_dst, dstbuf)); in ip_dooptions() 264 ip->ip_dst = ipaddr.sin_addr; in ip_dooptions() 269 forward = !IN_MULTICAST(ntohl(ip->ip_dst.s_addr)); in ip_dooptions() 291 (void)memcpy(&ipaddr.sin_addr, &ip->ip_dst, in ip_dooptions() 520 ip->ip_dst = p->ipopt_dst; in ip_insertoptions()
|
H A D | in_rss.c | 319 return rss_proto_software_hash_v4(ip->ip_src, ip->ip_dst, in rss_mbuf_software_hash_v4() 333 return rss_proto_software_hash_v4(ip->ip_src, ip->ip_dst, in rss_mbuf_software_hash_v4() 341 return rss_proto_software_hash_v4(ip->ip_src, ip->ip_dst, in rss_mbuf_software_hash_v4()
|
/freebsd/sbin/natd/ |
H A D | icmp.c | 99 swap = ip->ip_dst; in SendNeedFragIcmp() 100 ip->ip_dst = ip->ip_src; in SendNeedFragIcmp() 106 addr.sin_addr = ip->ip_dst; in SendNeedFragIcmp()
|
/freebsd/sbin/ipf/ipsend/ |
H A D | ipsend.c | 100 if (resolve(t, (char *)&ic->icmp_ip.ip_dst) == -1) in do_icmp() 150 ph.h.dst = ip->ip_dst.s_addr; in udpcksum() 321 if (resolve(dst, (char *)&ip->ip_dst) == -1) in main() 328 gwip = ip->ip_dst; in main() 400 printf("Dest: %s\n", inet_ntoa(ip->ip_dst)); in main()
|
H A D | iptest.c | 128 if (resolve(dst, (char *)&ip->ip_dst) == -1) in main() 141 gwip = ip->ip_dst; in main() 153 printf("Dest: %s\n", inet_ntoa(ip->ip_dst)); in main()
|
/freebsd/tools/tools/netmap/ |
H A D | pkt_hash.c | 156 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 167 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 174 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 197 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash()
|
/freebsd/sys/netpfil/ipfw/nat64/ |
H A D | nat64clat.c | 94 nat64_check_ip4(ip->ip_dst.s_addr) != 0 || in nat64clat_handle_ip4() 95 nat64_check_private_ip4(&cfg->base, ip->ip_dst.s_addr) != 0) in nat64clat_handle_ip4() 101 nat64_embed_ip4(&daddr, cfg->base.plat_plen, ip->ip_dst.s_addr); in nat64clat_handle_ip4()
|
/freebsd/cddl/lib/libdtrace/ |
H A D | ip.d | 238 inet_ntoa(&((struct ip *)p)->ip_dst.s_addr) : 256 inet_ntoa(&((struct ip *)m->m_data)->ip_dst.s_addr) : 284 ipv4_dst = p == NULL ? 0 : (ipaddr_t)ntohl(p->ip_dst.s_addr); 286 ipv4_daddr = p == NULL ? 0 : inet_ntoa(&p->ip_dst.s_addr);
|