Return to udp_usrreq.c CVS log | 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. |
version 1.171, 2008/04/26 08:13:59 | version 1.171.2.1, 2008/05/16 02:25:42 | ||
---|---|---|---|
|
|
||
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]; | |||
ctx.ctx_stat = udpstat_percpu; | return (NETSTAT_SYSCTL(udpstat_percpu, UDP_NSTATS)); | ||
ctx.ctx_counters = udps; | |||
ctx.ctx_ncounters = UDP_NSTATS; | |||
return (NETSTAT_SYSCTL(&ctx)); | |||
} | } | ||
/* | /* |