[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.7 and 1.93.2.8

version 1.93.2.7, 2001/03/27 15:32:31 version 1.93.2.8, 2001/04/21 17:46:48
Line 212  struct pfil_head inet_pfil_hook;
Line 212  struct pfil_head inet_pfil_hook;
 struct ipqhead ipq;  struct ipqhead ipq;
 int     ipq_locked;  int     ipq_locked;
 int     ip_nfragpackets = 0;  int     ip_nfragpackets = 0;
 int     ip_maxfragpackets = -1;  int     ip_maxfragpackets = 200;
   
 static __inline int ipq_lock_try __P((void));  static __inline int ipq_lock_try __P((void));
 static __inline void ipq_unlock __P((void));  static __inline void ipq_unlock __P((void));
Line 222  ipq_lock_try()
Line 222  ipq_lock_try()
 {  {
         int s;          int s;
   
         s = splimp();          /*
            * Use splvm() -- we're bloking things that would cause
            * mbuf allocation.
            */
           s = splvm();
         if (ipq_locked) {          if (ipq_locked) {
                 splx(s);                  splx(s);
                 return (0);                  return (0);
Line 237  ipq_unlock()
Line 241  ipq_unlock()
 {  {
         int s;          int s;
   
         s = splimp();          s = splvm();
         ipq_locked = 0;          ipq_locked = 0;
         splx(s);          splx(s);
 }  }
Line 343  ipintr()
Line 347  ipintr()
         struct mbuf *m;          struct mbuf *m;
   
         while (1) {          while (1) {
                 s = splimp();                  s = splnet();
                 IF_DEQUEUE(&ipintrq, m);                  IF_DEQUEUE(&ipintrq, m);
                 splx(s);                  splx(s);
                 if (m == 0)                  if (m == 0)

Legend:
Removed from v.1.93.2.7  
changed lines
  Added in v.1.93.2.8

CVSweb <webmaster@jp.NetBSD.org>