[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.176 and 1.180

version 1.176, 2003/09/05 22:09:38 version 1.180, 2003/11/10 20:03:29
Line 226  int in_multientries;   /* total number o
Line 226  int in_multientries;   /* total number o
 struct  in_multihashhead *in_multihashtbl;  struct  in_multihashhead *in_multihashtbl;
 struct  ifqueue ipintrq;  struct  ifqueue ipintrq;
 struct  ipstat  ipstat;  struct  ipstat  ipstat;
 u_int16_t       ip_id;  
   
 #ifdef PFIL_HOOKS  #ifdef PFIL_HOOKS
 struct pfil_head inet_pfil_hook;  struct pfil_head inet_pfil_hook;
Line 360  ip_init()
Line 359  ip_init()
                     pr->pr_protocol && pr->pr_protocol != IPPROTO_RAW)                      pr->pr_protocol && pr->pr_protocol != IPPROTO_RAW)
                         ip_protox[pr->pr_protocol] = pr - inetsw;                          ip_protox[pr->pr_protocol] = pr - inetsw;
         LIST_INIT(&ipq);          LIST_INIT(&ipq);
         ip_id = arc4random() & 0xffff;  
         ipintrq.ifq_maxlen = ipqmaxlen;          ipintrq.ifq_maxlen = ipqmaxlen;
         TAILQ_INIT(&in_ifaddr);          TAILQ_INIT(&in_ifaddr);
         in_ifaddrhashtbl = hashinit(IN_IFADDR_HASH_SIZE, HASH_LIST, M_IFADDR,          in_ifaddrhashtbl = hashinit(IN_IFADDR_HASH_SIZE, HASH_LIST, M_IFADDR,
Line 445  ip_input(struct mbuf *m)
Line 443  ip_input(struct mbuf *m)
         if ((m->m_flags & M_PKTHDR) == 0)          if ((m->m_flags & M_PKTHDR) == 0)
                 panic("ipintr no HDR");                  panic("ipintr no HDR");
 #endif  #endif
 #ifdef IPSEC  
         /*  
          * should the inner packet be considered authentic?  
          * see comment in ah4_input().  
          */  
         if (m) {  
                 m->m_flags &= ~M_AUTHIPHDR;  
                 m->m_flags &= ~M_AUTHIPDGM;  
         }  
 #endif  
   
         /*          /*
          * If no IP addresses have been set yet but the interfaces           * If no IP addresses have been set yet but the interfaces
Line 1934  ip_sysctl(name, namelen, oldp, oldlenp, 
Line 1922  ip_sysctl(name, namelen, oldp, oldlenp, 
   
         int error, old;          int error, old;
   
         /* All sysctl names at this level are terminal. */          /* All sysctl names (except ifq.*) at this level are terminal. */
         if (namelen != 1)          if ((namelen != 1) && !(namelen == 2 && name[0] == IPCTL_IFQ))
                 return (ENOTDIR);                  return (ENOTDIR);
   
         switch (name[0]) {          switch (name[0]) {
         case IPCTL_FORWARDING:          case IPCTL_FORWARDING:
Line 2071  ip_sysctl(name, namelen, oldp, oldlenp, 
Line 2059  ip_sysctl(name, namelen, oldp, oldlenp, 
         case IPCTL_CHECKINTERFACE:          case IPCTL_CHECKINTERFACE:
                 return (sysctl_int(oldp, oldlenp, newp, newlen,                  return (sysctl_int(oldp, oldlenp, newp, newlen,
                     &ip_checkinterface));                      &ip_checkinterface));
           case IPCTL_IFQ:
                   return (sysctl_ifq(name+1, namelen-1,
                                     oldp, oldlenp, newp, newlen,
                                     &ipintrq));
   
         default:          default:
                 return (EOPNOTSUPP);                  return (EOPNOTSUPP);
         }          }

Legend:
Removed from v.1.176  
changed lines
  Added in v.1.180

CVSweb <webmaster@jp.NetBSD.org>