summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2007-03-28 13:59:13 +0000
committerglebius <glebius@FreeBSD.org>2007-03-28 13:59:13 +0000
commite0b48c67ff458843054aff871ed5ef1ad6626999 (patch)
treee31e2b6a39a90c2ac8c649442de907e620311253 /sys/netgraph
parentb1c6fabadd4d3f1741ad3d643e6bf40609a6a0ab (diff)
downloadFreeBSD-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')
-rw-r--r--sys/netgraph/netflow/ng_netflow.c1
-rw-r--r--sys/netgraph/netflow/ng_netflow.h2
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 */
OpenPOWER on IntegriCloud