[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.93.2.2 and 1.124

version 1.93.2.2, 2000/11/22 16:06:10 version 1.124, 2000/12/22 20:01:18
Line 319  ip_init()
Line 319  ip_init()
   
 #ifdef PFIL_HOOKS  #ifdef PFIL_HOOKS
         /* Register our Packet Filter hook. */          /* Register our Packet Filter hook. */
         inet_pfil_hook.ph_key = (void *)(u_long) AF_INET;          inet_pfil_hook.ph_type = PFIL_TYPE_AF;
         inet_pfil_hook.ph_dlt = DLT_RAW;          inet_pfil_hook.ph_af   = AF_INET;
         i = pfil_head_register(&inet_pfil_hook);          i = pfil_head_register(&inet_pfil_hook);
         if (i != 0)          if (i != 0)
                 printf("ip_init: WARNING: unable to register pfil hook, "                  printf("ip_init: WARNING: unable to register pfil hook, "
Line 479  ip_input(struct mbuf *m)
Line 479  ip_input(struct mbuf *m)
         ip = mtod(m, struct ip *);          ip = mtod(m, struct ip *);
 #endif /* PFIL_HOOKS */  #endif /* PFIL_HOOKS */
   
   #ifdef ALTQ
           /* XXX Temporary until ALTQ is changed to use a pfil hook */
           if (altq_input != NULL && (*altq_input)(m, AF_INET) == 0) {
                   /* packet dropped by traffic conditioner */
                   return;
           }
   #endif
   
         /*          /*
          * Convert fields to host representation.           * Convert fields to host representation.
          */           */
Line 695  found:
Line 703  found:
          * Switch out to protocol's input routine.           * Switch out to protocol's input routine.
          */           */
 #if IFA_STATS  #if IFA_STATS
         ia->ia_ifa.ifa_data.ifad_inbytes += ip->ip_len;          if (ia && ip)
                   ia->ia_ifa.ifa_data.ifad_inbytes += ip->ip_len;
 #endif  #endif
         ipstat.ips_delivered++;          ipstat.ips_delivered++;
     {      {

Legend:
Removed from v.1.93.2.2  
changed lines
  Added in v.1.124

CVSweb <webmaster@jp.NetBSD.org>