diff options
author | glebius <glebius@FreeBSD.org> | 2007-03-28 13:59:13 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2007-03-28 13:59:13 +0000 |
commit | e0b48c67ff458843054aff871ed5ef1ad6626999 (patch) | |
tree | e31e2b6a39a90c2ac8c649442de907e620311253 /sys/netgraph/netflow | |
parent | b1c6fabadd4d3f1741ad3d643e6bf40609a6a0ab (diff) | |
download | FreeBSD-src-e0b48c67ff458843054aff871ed5ef1ad6626999.zip FreeBSD-src-e0b48c67ff458843054aff871ed5ef1ad6626999.tar.gz |
Bump maximum number of interface hooks to the maximum possible value.
This will increase the memory consumption for more than 1 Mb, but this
is required for operation on multiinterface access concentrators running
mpd.
Requested by: Alexander Motin
Diffstat (limited to 'sys/netgraph/netflow')
-rw-r--r-- | sys/netgraph/netflow/ng_netflow.c | 1 | ||||
-rw-r--r-- | sys/netgraph/netflow/ng_netflow.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/netflow/ng_netflow.c b/sys/netgraph/netflow/ng_netflow.c index f0cb867..c67d90b 100644 --- a/sys/netgraph/netflow/ng_netflow.c +++ b/sys/netgraph/netflow/ng_netflow.c @@ -33,6 +33,7 @@ static const char rcs_id[] = #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> +#include <sys/limits.h> #include <sys/mbuf.h> #include <sys/socket.h> #include <sys/syslog.h> diff --git a/sys/netgraph/netflow/ng_netflow.h b/sys/netgraph/netflow/ng_netflow.h index 72b75db..bd35cf0 100644 --- a/sys/netgraph/netflow/ng_netflow.h +++ b/sys/netgraph/netflow/ng_netflow.h @@ -34,7 +34,7 @@ #define NG_NETFLOW_NODE_TYPE "netflow" #define NGM_NETFLOW_COOKIE 1137078102 -#define NG_NETFLOW_MAXIFACES 2048 +#define NG_NETFLOW_MAXIFACES USHRT_MAX /* Hook names */ |