version 1.262.6.2, 2008/06/02 13:24:24 |
version 1.270, 2008/05/02 13:40:32 |
|
|
ip_nmbclusters_changed(); |
ip_nmbclusters_changed(); |
|
|
TAILQ_INIT(&in_ifaddrhead); |
TAILQ_INIT(&in_ifaddrhead); |
in_ifaddrhashtbl = hashinit(IN_IFADDR_HASH_SIZE, HASH_LIST, true, |
in_ifaddrhashtbl = hashinit(IN_IFADDR_HASH_SIZE, HASH_LIST, M_IFADDR, |
&in_ifaddrhash); |
M_WAITOK, &in_ifaddrhash); |
in_multihashtbl = hashinit(IN_IFADDR_HASH_SIZE, HASH_LIST, true, |
in_multihashtbl = hashinit(IN_IFADDR_HASH_SIZE, HASH_LIST, M_IPMADDR, |
&in_multihash); |
M_WAITOK, &in_multihash); |
ip_mtudisc_timeout_q = rt_timer_queue_create(ip_mtudisc_timeout); |
ip_mtudisc_timeout_q = rt_timer_queue_create(ip_mtudisc_timeout); |
#ifdef GATEWAY |
#ifdef GATEWAY |
ipflow_init(ip_hashsize); |
ipflow_init(ip_hashsize); |
Line 2202 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]; |
|
|
return (NETSTAT_SYSCTL(ipstat_percpu, IP_NSTATS)); |
ctx.ctx_stat = ipstat_percpu; |
|
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") |