/netbsd/tests/net/route/ |
H A D | t_rtcache.sh | 55 local ip_dst=10.0.3.1 89 atf_check -s exit:0 rump.ifconfig shmif0 $ip_dst/24 alias 95 atf_check -s exit:0 rump.ifconfig shmif0 $ip_dst/24 alias 101 atf_check -s not-exit:0 -o ignore rump.ping -n -w 3 -c 1 $ip_dst 115 atf_check -s not-exit:0 -o ignore rump.ping -n -w 3 -c 1 $ip_dst 119 atf_check -s exit:0 -o match:"$ip_src > $ip_dst: ICMP echo request" \ 132 atf_check -s not-exit:0 -o ignore rump.ping -n -w 3 -c 1 $ip_dst 137 atf_check -s exit:0 -o not-match:"$ip_src > $ip_dst: ICMP echo request" \ 146 atf_check -s not-exit:0 -o ignore rump.ping -n -w 3 -c 1 $ip_dst 150 atf_check -s exit:0 -o match:"$ip_src > $ip_dst: ICMP echo request" \
|
/netbsd/sys/lib/libsa/ |
H A D | ip.c | 69 if (ip->ip_dst.s_addr == INADDR_BROADCAST || ip->ip_src.s_addr == 0 || in _sendip() 70 netmask == 0 || SAMENET(ip->ip_src, ip->ip_dst, netmask)) { in _sendip() 71 ea = arpwhohas(d, ip->ip_dst); in _sendip() 100 ip->ip_dst = d->destip; in sendip() 163 if (d->myip.s_addr && ip->ip_dst.s_addr != d->myip.s_addr) { in readip()
|
/netbsd/sys/netinet/ |
H A D | ip_input.c | 373 ip->ip_dst.s_addr == ia->ia_net) in ip_match_our_address_broadcast() 574 struct in_addr odst = ip->ip_dst; in ip_input() 669 if (IN_MULTICAST(ip->ip_dst.s_addr)) { in ip_input() 716 in_nullhost(ip->ip_dst)) in ip_input() 802 _ia = in_get_ia(ip->ip_dst); in ip_input() 870 dst = ip->ip_dst; in ip_dooptions() 929 ipaddr.sin_addr = ip->ip_dst; in ip_dooptions() 976 ip->ip_dst = ipaddr.sin_addr; in ip_dooptions() 1404 dest = ip->ip_dst.s_addr; in ip_forward() 1509 *mp = sbcreatecontrol(&ip->ip_dst, in ip_savecontrol() [all …]
|
H A D | igmp.c | 250 if (ip->ip_dst.s_addr != INADDR_ALLHOSTS_GROUP) { in igmp_input() 287 if (!IN_MULTICAST(ip->ip_dst.s_addr)) { in igmp_input() 309 (ip->ip_dst.s_addr == INADDR_ALLHOSTS_GROUP || in igmp_input() 310 in_hosteq(ip->ip_dst, inm->inm_addr))) { in igmp_input() 345 !in_hosteq(igmp->igmp_group, ip->ip_dst)) { in igmp_input() 418 !in_hosteq(igmp->igmp_group, ip->ip_dst)) { in igmp_input() 619 ip->ip_dst = inm->inm_addr; in igmp_sendpkt()
|
H A D | ip_icmp.c | 385 nip->ip_dst = oip->ip_dst; in icmp_error() 535 if (IN_MULTICAST(icp->icmp_ip.ip_dst.s_addr)) in _icmp_input() 538 icmpsrc.sin_addr = icp->icmp_ip.ip_dst; in _icmp_input() 588 if (ip->ip_dst.s_addr == INADDR_BROADCAST || in _icmp_input() 589 in_nullhost(ip->ip_dst)) in _icmp_input() 592 icmpdst.sin_addr = ip->ip_dst; in _icmp_input() 642 icmpsrc.sin_addr = icp->icmp_ip.ip_dst; in _icmp_input() 655 IN_PRINT(buf, &icp->icmp_ip.ip_dst), i); in _icmp_input() 729 t = ip->ip_dst; in icmp_reflect() 730 ip->ip_dst = ip->ip_src; in icmp_reflect() [all …]
|
H A D | ip_mroute.c | 1349 rt = mfc_find(&ip->ip_src, &ip->ip_dst); in ip_mforward_real() 1376 ntohl(ip->ip_dst.s_addr)); in ip_mforward_real() 1397 hash = MFCHASH(ip->ip_src, ip->ip_dst); in ip_mforward_real() 1462 rt->mfc_mcastgrp = ip->ip_dst; in ip_mforward_real() 1790 ip_copy->ip_dst = vifp->v_rmt_addr; in encap_send() 1870 if (!in_hosteq(vifp->v_lcl_addr, ip.ip_dst)) in vif_encapcheck() 1881 if (!IN_MULTICAST(ip.ip_dst.s_addr)) in vif_encapcheck() 2842 im->im_dst = ip->ip_dst; in pim_register_send_upcall() 2907 ip_outer->ip_dst = rt->mfc_rp; in pim_register_send_rp() 3080 (u_long)ntohl(encap_ip->ip_dst.s_addr), in pim_input() [all …]
|
H A D | ip_output.c | 295 sockaddr_in_init(&udst.sin, &ip->ip_dst, 0); in ip_output() 305 !in_hosteq(dst->sin_addr, ip->ip_dst))) in ip_output() 339 } else if (((IN_MULTICAST(ip->ip_dst.s_addr) || in ip_output() 340 ip->ip_dst.s_addr == INADDR_BROADCAST) || in ip_output() 351 if (IN_MULTICAST(ip->ip_dst.s_addr) || in ip_output() 352 ip->ip_dst.s_addr == INADDR_BROADCAST) { in ip_output() 406 if (IN_MULTICAST(ip->ip_dst.s_addr) || in ip_output() 407 (ip->ip_dst.s_addr == INADDR_BROADCAST)) { in ip_output() 410 m->m_flags |= (ip->ip_dst.s_addr == INADDR_BROADCAST) ? in ip_output() 473 inmgroup = in_multi_group(ip->ip_dst, ifp, flags); in ip_output() [all …]
|
H A D | ip_reass.c | 268 fp->ipq_dst = ip->ip_dst; in ip_reass() 407 ip->ip_dst = fp->ipq_dst; in ip_reass() 664 if (!in_hosteq(ip->ip_dst, fp->ipq_dst)) in ip_reass_packet()
|
/netbsd/external/bsd/tcpdump/dist/ |
H A D | print-icmp.c | 373 ND_TCHECK(dp->icmp_ip.ip_dst); in icmp_print() 380 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), in icmp_print() 396 ipaddr_string(ndo, &oip->ip_dst), in icmp_print() 403 ipaddr_string(ndo, &oip->ip_dst), in icmp_print() 410 ipaddr_string(ndo, &oip->ip_dst), in icmp_print() 424 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), mtu); in icmp_print() 428 ipaddr_string(ndo, &dp->icmp_ip.ip_dst)); in icmp_print() 437 ipaddr_string(ndo, &dp->icmp_ip.ip_dst)); in icmp_print() 443 ND_TCHECK(dp->icmp_ip.ip_dst); in icmp_print() 447 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), in icmp_print() [all …]
|
H A D | print-tcp.c | 187 ipaddr_string(ndo, &ip->ip_dst))); in tcp_print() 210 ipaddr_string(ndo, &ip->ip_dst), in tcp_print() 316 … if (UNALIGNED_MEMCMP(&ip->ip_src, &ip->ip_dst, sizeof ip->ip_dst) > 0) in tcp_print() 320 UNALIGNED_MEMCPY(&tha.src, &ip->ip_dst, sizeof ip->ip_dst); in tcp_print() 324 UNALIGNED_MEMCPY(&tha.dst, &ip->ip_dst, sizeof ip->ip_dst); in tcp_print() 872 MD5_Update(&ctx, (const char *)&ip->ip_dst, sizeof(ip->ip_dst)); in tcp_verify_signature()
|
H A D | print-ip.c | 138 UNALIGNED_MEMCPY(&retval, &ip->ip_dst, sizeof(uint32_t)); in ip_finddst() 165 UNALIGNED_MEMCPY(&ph.dst, &ip->ip_dst, sizeof(uint32_t)); in nextproto4_cksum() 490 ipaddr_string(ndo, &ipds->ip->ip_dst))); in ip_print_demux() 496 ipaddr_string(ndo, &ipds->ip->ip_dst))); in ip_print_demux() 680 ipaddr_string(ndo, &ipds->ip->ip_dst))); in ip_print() 697 ipaddr_string(ndo, &ipds->ip->ip_dst))); in ip_print()
|
/netbsd/external/bsd/ipf/dist/ipsend/ |
H A D | ipsend.c | 131 if (resolve(t, (char *)&ic->icmp_ip.ip_dst) == -1) 184 ph.h.dst = ip->ip_dst.s_addr; in udpcksum() 356 if (resolve(dst, (char *)&ip->ip_dst) == -1) 363 gwip = ip->ip_dst; 426 printf("Dest: %s\n", inet_ntoa(ip->ip_dst));
|
H A D | iptest.c | 155 if (resolve(dst, (char *)&ip->ip_dst) == -1) 168 gwip = ip->ip_dst; 180 printf("Dest: %s\n", inet_ntoa(ip->ip_dst));
|
H A D | ip.c | 273 ip2->ip_dst = ip->ip_dst; 317 ti->ti_dst = ip->ip_dst;
|
H A D | iptests.c | 1115 sin.sin_addr.s_addr = ip->ip_dst.s_addr; 1126 inet_ntoa(ip->ip_dst)); 1278 ip->ip_src = ip->ip_dst; 1403 bcopy((char *)&ip->ip_dst, (char *)&pip->ip_dst, 1419 bcopy((char *)&ip->ip_dst, (char *)&pip->ip_dst,
|
/netbsd/sys/net/ |
H A D | if_stf.c | 298 if (memcmp(GET_V4(&ia6->ia_addr.sin6_addr), &ip.ip_dst, in stf_encapcheck() 299 sizeof(ip.ip_dst)) != 0) in stf_encapcheck() 428 memcpy(&ip->ip_dst, in4, sizeof(ip->ip_dst)); in stf_output() 437 sockaddr_in_init(&u.dst4, &ip->ip_dst, 0); in stf_output() 612 if (stf_checkaddr4(sc, &ip->ip_dst, NULL) < 0 || in in_stf_input()
|
H A D | slcompress.c | 207 ip->ip_dst.s_addr != cs->cs_ip.ip_dst.s_addr || in sl_compress_tcp() 227 && ip->ip_dst.s_addr == cs->cs_ip.ip_dst.s_addr in sl_compress_tcp()
|
/netbsd/sys/external/bsd/ipf/netinet/ |
H A D | ip_tftp_pxy.c | 324 sw2ip = ip->ip_dst; in ipf_p_tftp_backchannel() 326 ip->ip_dst = nat->nat_nsrcip; in ipf_p_tftp_backchannel() 364 ip->ip_dst = nat->nat_nsrcip; in ipf_p_tftp_backchannel() 376 ip->ip_dst = nat->nat_osrcip; in ipf_p_tftp_backchannel() 391 ip->ip_dst = sw2ip; in ipf_p_tftp_backchannel()
|
H A D | ip_raudio_pxy.c | 274 swb = ip->ip_dst; in ipf_p_raudio_in() 278 ip->ip_dst = nat->nat_odstip; in ipf_p_raudio_in() 342 ip->ip_dst = swb; in ipf_p_raudio_in()
|
/netbsd/external/bsd/ipf/dist/ |
H A D | ip_tftp_pxy.c | 344 sw2ip = ip->ip_dst; 346 ip->ip_dst = nat->nat_nsrcip; 382 ip->ip_dst = nat->nat_nsrcip; 394 ip->ip_dst = nat->nat_osrcip; 409 ip->ip_dst = sw2ip;
|
/netbsd/sys/net/agr/ |
H A D | if_agrether_hash.c | 121 hash = HASH(&ip->ip_dst, sizeof(ip->ip_dst), hash); in agrether_hashmbuf()
|
/netbsd/sys/netmpls/ |
H A D | mpls_ttl.c | 308 nip->ip_dst = oip->ip_dst; in mpls_icmp_error() 344 (ntohl(iph->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET || in ip4_check()
|
/netbsd/sys/net/npf/ |
H A D | npf_sendpkt.c | 143 ip->ip_src.s_addr = oip->ip_dst.s_addr; in npf_return_tcp() 144 ip->ip_dst.s_addr = oip->ip_src.s_addr; in npf_return_tcp()
|
/netbsd/sys/altq/ |
H A D | altq_flowvalve.h | 45 struct in_addr ip_dst; member
|
/netbsd/usr.sbin/mrouted/ |
H A D | igmp.c | 139 dst = ip->ip_dst.s_addr; in accept_igmp() 313 ip->ip_dst.s_addr = dst; in send_igmp()
|