| version 1.118, 2008/04/24 11:38:38 |
version 1.119, 2008/05/04 07:22:15 |
| Line 1654 u_char inet6ctlerrmap[PRC_NCMDS] = { |
|
| Line 1654 u_char inet6ctlerrmap[PRC_NCMDS] = { |
|
| static int |
static int |
| sysctl_net_inet6_ip6_stats(SYSCTLFN_ARGS) |
sysctl_net_inet6_ip6_stats(SYSCTLFN_ARGS) |
| { |
{ |
| netstat_sysctl_context ctx; |
|
| uint64_t ip6s[IP6_NSTATS]; |
|
| |
|
| ctx.ctx_stat = ip6stat_percpu; |
return (NETSTAT_SYSCTL(ip6stat_percpu, IP6_NSTATS)); |
| ctx.ctx_counters = ip6s; |
|
| ctx.ctx_ncounters = IP6_NSTATS; |
|
| return (NETSTAT_SYSCTL(&ctx)); |
|
| } |
} |
| |
|
| SYSCTL_SETUP(sysctl_net_inet6_ip6_setup, "sysctl net.inet6.ip6 subtree setup") |
SYSCTL_SETUP(sysctl_net_inet6_ip6_setup, "sysctl net.inet6.ip6 subtree setup") |