From dc7359b8dd06ae28eca54d6049a3a9830db054e2 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Wed, 28 Mar 2007 13:59:13 +0000 Subject: [PATCH] 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 --- sys/netgraph/netflow/ng_netflow.c | 1 + sys/netgraph/netflow/ng_netflow.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netgraph/netflow/ng_netflow.c b/sys/netgraph/netflow/ng_netflow.c index f0cb8679269..c67d90b098e 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 #include #include +#include #include #include #include diff --git a/sys/netgraph/netflow/ng_netflow.h b/sys/netgraph/netflow/ng_netflow.h index 72b75db085b..bd35cf09281 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 */