[BACK]Return to ip_input.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / netinet

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/netinet/ip_input.c between version 1.96 and 1.97

version 1.96, 2000/02/01 00:07:09 version 1.97, 2000/02/11 05:57:58
Line 488  ip_input(struct mbuf *m)
Line 488  ip_input(struct mbuf *m)
         /*          /*
          * Check our list of addresses, to see if the packet is for us.           * Check our list of addresses, to see if the packet is for us.
          */           */
         INADDR_TO_IA(ip->ip_dst, ia);          for (ia = IN_IFADDR_HASH(ip->ip_dst.s_addr).lh_first;
                ia != NULL;
                ia = ia->ia_hash.le_next) {
                   if (in_hosteq(ia->ia_addr.sin_addr, ip->ip_dst)) {
                           if ((ia->ia_ifp->if_flags & IFF_UP) != 0)
                                   break;
                           else {
                                   icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_HOST,
                                       0, m->m_pkthdr.rcvif);
                                   return;
                           }
                   }
           }
         if (ia != NULL)          if (ia != NULL)
                 goto ours;                  goto ours;
         if (m->m_pkthdr.rcvif->if_flags & IFF_BROADCAST) {          if (m->m_pkthdr.rcvif->if_flags & IFF_BROADCAST) {

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97

CVSweb <webmaster@jp.NetBSD.org>