[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.269 and 1.271

version 1.269, 2008/04/28 20:24:09 version 1.271, 2008/05/04 07:22:14
Line 1436  ip_slowtimo(void)
Line 1436  ip_slowtimo(void)
 }  }
   
 /*  /*
  * Drain off all datagram fragments.   * Drain off all datagram fragments.  Don't acquire softnet_lock as
    * can be called from hardware interrupt context.
  */   */
 void  void
 ip_drain(void)  ip_drain(void)
 {  {
   
         mutex_enter(softnet_lock);  
         KERNEL_LOCK(1, NULL);          KERNEL_LOCK(1, NULL);
   
         /*          /*
Line 1459  ip_drain(void)
Line 1459  ip_drain(void)
         }          }
   
         KERNEL_UNLOCK_ONE(NULL);          KERNEL_UNLOCK_ONE(NULL);
         mutex_exit(softnet_lock);  
 }  }
   
 /*  /*
Line 2203  sysctl_net_inet_ip_hashsize(SYSCTLFN_ARG
Line 2202  sysctl_net_inet_ip_hashsize(SYSCTLFN_ARG
 static int  static int
 sysctl_net_inet_ip_stats(SYSCTLFN_ARGS)  sysctl_net_inet_ip_stats(SYSCTLFN_ARGS)
 {  {
         netstat_sysctl_context ctx;  
         uint64_t ips[IP_NSTATS];  
   
         ctx.ctx_stat = ipstat_percpu;          return (NETSTAT_SYSCTL(ipstat_percpu, IP_NSTATS));
         ctx.ctx_counters = ips;  
         ctx.ctx_ncounters = IP_NSTATS;  
         return (NETSTAT_SYSCTL(&ctx));  
 }  }
   
 SYSCTL_SETUP(sysctl_net_inet_ip_setup, "sysctl net.inet.ip subtree setup")  SYSCTL_SETUP(sysctl_net_inet_ip_setup, "sysctl net.inet.ip subtree setup")

Legend:
Removed from v.1.269  
changed lines
  Added in v.1.271

CVSweb <webmaster@jp.NetBSD.org>