Lines Matching refs:ip_dst
737 tbl[pkttbl_idx].pkte_daddr.s_addr = ip->ip_dst.s_addr; in ip_chain_insert()
740 if ((ip->ip_dst.s_addr == tbl[pkttbl_idx].pkte_daddr.s_addr) && in ip_chain_insert()
1055 KERNEL_DEBUG(DBG_LAYER_BEG, ip->ip_dst.s_addr, ip->ip_src.s_addr, in ip_input_first_pass()
1093 if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET || in ip_input_first_pass()
1120 if ((IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) || in ip_input_first_pass()
1302 if (ip->ip_dst.s_addr == (u_int32_t)INADDR_BROADCAST || in ip_input_check_interface()
1303 ip->ip_dst.s_addr == INADDR_ANY) { in ip_input_check_interface()
1312 TAILQ_FOREACH(ia, INADDR_HASH(ip->ip_dst.s_addr), ia_hash) { in ip_input_check_interface()
1313 if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr) { in ip_input_check_interface()
1367 if (satosin(&ia->ia_broadaddr)->sin_addr.s_addr == ip->ip_dst.s_addr || in ip_input_check_interface()
1368 ia->ia_netbroadcast.s_addr == ip->ip_dst.s_addr) { in ip_input_check_interface()
1421 inet_ntop(AF_INET, &ip->ip_dst, dst_str, sizeof(dst_str)); in ip_input_check_interface()
1432 inet_ntop(AF_INET, &ip->ip_dst, dst_str, sizeof(dst_str)); in ip_input_check_interface()
1508 if (!IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { in ip_input_second_pass()
1526 IN_LOOKUP_MULTI(&ip->ip_dst, inifp, inm); in ip_input_second_pass()
1831 KERNEL_DEBUG(DBG_LAYER_BEG, ip->ip_dst.s_addr, ip->ip_src.s_addr, in ip_input()
1857 if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET || in ip_input()
1882 if ((IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) || in ip_input()
2029 if (!IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { in ip_input()
2046 IN_LOOKUP_MULTI(&ip->ip_dst, inifp, inm); in ip_input()
2244 ip->ip_dst.s_addr == fp->ipq_dst.s_addr && in ip_reass()
2396 fp->ipq_dst = ip->ip_dst; in ip_reass()
2593 ip->ip_dst = fp->ipq_dst; in ip_reass()
2826 dst = ip->ip_dst; in ip_dooptions()
2871 ipaddr.sin_addr = ip->ip_dst; in ip_dooptions()
2916 inet_ntop(AF_INET, &ip->ip_dst, in ip_dooptions()
2953 ip->ip_dst = ipaddr.sin_addr; in ip_dooptions()
2964 forward = !IN_MULTICAST(ntohl(ip->ip_dst.s_addr)); in ip_dooptions()
2983 (void) memcpy(&ipaddr.sin_addr, &ip->ip_dst, in ip_dooptions()
3491 pkt_dst = ip->ip_dst; in ip_forward()
3732 bcopy(&ipm->ip_dst, &sin->sin_addr, in ip_forward()
3846 mp = sbcreatecontrol_mbuf((caddr_t)&ip->ip_dst, in ip_savecontrol()
3934 bcopy(&ip->ip_dst, &pi.ipi_addr, sizeof(struct in_addr)); in ip_savecontrol()