[BACK]Return to udp_usrreq.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/udp_usrreq.c between version 1.163.14.1 and 1.170

version 1.163.14.1, 2008/06/02 13:24:25 version 1.170, 2008/04/24 11:38:38
Line 237  udp_init(void)
Line 237  udp_init(void)
         MOWNER_ATTACH(&udp_rx_mowner);          MOWNER_ATTACH(&udp_rx_mowner);
         MOWNER_ATTACH(&udp_mowner);          MOWNER_ATTACH(&udp_mowner);
   
 #ifdef INET  
         udpstat_percpu = percpu_alloc(sizeof(uint64_t) * UDP_NSTATS);          udpstat_percpu = percpu_alloc(sizeof(uint64_t) * UDP_NSTATS);
 #endif  
 #ifdef INET6  
         udp6stat_percpu = percpu_alloc(sizeof(uint64_t) * UDP6_NSTATS);  
 #endif  
 }  }
   
 /*  /*
Line 1349  release:
Line 1344  release:
 static int  static int
 sysctl_net_inet_udp_stats(SYSCTLFN_ARGS)  sysctl_net_inet_udp_stats(SYSCTLFN_ARGS)
 {  {
           netstat_sysctl_context ctx;
           uint64_t udps[UDP_NSTATS];
   
         return (NETSTAT_SYSCTL(udpstat_percpu, UDP_NSTATS));          ctx.ctx_stat = udpstat_percpu;
           ctx.ctx_counters = udps;
           ctx.ctx_ncounters = UDP_NSTATS;
           return (NETSTAT_SYSCTL(&ctx));
 }  }
   
 /*  /*

Legend:
Removed from v.1.163.14.1  
changed lines
  Added in v.1.170

CVSweb <webmaster@jp.NetBSD.org>