[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.42 and 1.43

version 1.42, 1996/12/20 08:39:27 version 1.43, 1996/12/20 09:08:14
Line 167  ipintr()
Line 167  ipintr()
 #ifdef PFIL_HOOKS  #ifdef PFIL_HOOKS
         struct packet_filter_hook *pfh;          struct packet_filter_hook *pfh;
         struct mbuf *m0;          struct mbuf *m0;
           int rv;
 #endif /* PFIL_HOOKS */  #endif /* PFIL_HOOKS */
   
 next:  next:
Line 250  next:
Line 251  next:
         m0 = m;          m0 = m;
         for (pfh = pfil_hook_get(PFIL_IN); pfh; pfh = pfh->pfil_link.le_next)          for (pfh = pfil_hook_get(PFIL_IN); pfh; pfh = pfh->pfil_link.le_next)
                 if (pfh->pfil_func) {                  if (pfh->pfil_func) {
                         if (pfh->pfil_func(ip, hlen, m->m_pkthdr.rcvif, 0, &m0))                          rv = pfh->pfil_func(ip, hlen, m->m_pkthdr.rcvif, 0, &m0);
                           ip = mtod(m = m0, struct ip *);
                           if (rv)
                                 goto next;                                  goto next;
                         else  
                                 ip = mtod(m = m0, struct ip *);  
                 }                  }
 #endif /* PFIL_HOOKS */  #endif /* PFIL_HOOKS */
   

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

CVSweb <webmaster@jp.NetBSD.org>