version 1.98.2.1, 2007/04/10 13:26:51 |
version 1.99, 2007/03/23 14:24:22 |
|
|
* we could reduce this value, call ip6flow_reap(); |
* we could reduce this value, call ip6flow_reap(); |
*/ |
*/ |
static int |
static int |
sysctl_net_inet6_ip6_maxflows(SYSCTLFN_ARGS) |
sysctl_net_inet_ip6_maxflows(SYSCTLFN_ARGS) |
{ |
{ |
int s; |
int s; |
|
|
s = sysctl_lookup(SYSCTLFN_CALL(rnode)); |
s = sysctl_lookup(SYSCTLFN_CALL(rnode)); |
if (s || newp == NULL) |
if (s) |
return (s); |
return (s); |
|
|
s = splsoftnet(); |
s = splsoftnet(); |
Line 1944 SYSCTL_SETUP(sysctl_net_inet6_ip6_setup, |
|
Line 1944 SYSCTL_SETUP(sysctl_net_inet6_ip6_setup, |
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE, |
CTLFLAG_PERMANENT|CTLFLAG_READWRITE, |
CTLTYPE_INT, "maxflows", |
CTLTYPE_INT, "maxflows", |
SYSCTL_DESCR("Number of flows for fast forwarding (IPv6)"), |
SYSCTL_DESCR("Number of flows for fast forwarding (IPv6)"), |
sysctl_net_inet6_ip6_maxflows, 0, &ip6_maxflows, 0, |
sysctl_net_inet_ip6_maxflows, 0, &ip6_maxflows, 0, |
CTL_NET, PF_INET6, IPPROTO_IPV6, |
CTL_NET, PF_INET6, IPPROTO_IPV6, |
CTL_CREATE, CTL_EOL); |
CTL_CREATE, CTL_EOL); |
sysctl_createv(clog, 0, NULL, NULL, |
sysctl_createv(clog, 0, NULL, NULL, |