Lines Matching refs:ip_dst
331 IN_ADDRHASH_READER_FOREACH(ia, ip->ip_dst.s_addr) { in ip_match_our_address()
332 if (in_hosteq(ia->ia_addr.sin_addr, ip->ip_dst)) { in ip_match_our_address()
366 if (in_hosteq(ip->ip_dst, ia->ia_broadaddr.sin_addr) || in ip_match_our_address_broadcast()
367 in_hosteq(ip->ip_dst, ia->ia_netbroadcast) || in ip_match_our_address_broadcast()
372 ip->ip_dst.s_addr == ia->ia_subnet || in ip_match_our_address_broadcast()
373 ip->ip_dst.s_addr == ia->ia_net) in ip_match_our_address_broadcast()
488 if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET || in ip_input()
574 struct in_addr odst = ip->ip_dst; in ip_input()
617 srcrt = (odst.s_addr != ip->ip_dst.s_addr); in ip_input()
669 if (IN_MULTICAST(ip->ip_dst.s_addr)) { in ip_input()
709 if (!in_multi_group(ip->ip_dst, ifp, 0)) { in ip_input()
715 if (ip->ip_dst.s_addr == INADDR_BROADCAST || 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()
984 forward = !IN_MULTICAST(ip->ip_dst.s_addr); in ip_dooptions()
1013 memcpy((void *)&ipaddr.sin_addr, (void *)&ip->ip_dst, in ip_dooptions()
1353 if (m->m_flags & (M_BCAST|M_MCAST) || in_canforward(ip->ip_dst) == 0) { in ip_forward()
1365 sockaddr_in_init(&u.dst4, &ip->ip_dst, 0); in ip_forward()
1404 dest = ip->ip_dst.s_addr; in ip_forward()
1509 *mp = sbcreatecontrol(&ip->ip_dst, in ip_savecontrol()
1533 ipi.ipi_addr = ip->ip_dst; in ip_savecontrol()