From 137fea8de43a131ea9cd9aa58f3d7547d251bebc Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 19 May 2010 09:43:50 -0700 Subject: [PATCH] netflow: Use macro for constant instead of static const int. It's just bizarre to put a static const int in a header file, at least in C. --- ofproto/netflow.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ofproto/netflow.h b/ofproto/netflow.h index 701ffd46..f3099a18 100644 --- a/ofproto/netflow.h +++ b/ofproto/netflow.h @@ -21,7 +21,12 @@ #include "flow.h" #include "svec.h" -static const int NF_ACTIVE_TIMEOUT_DEFAULT = 600; +/* Default active timeout interval, in seconds. + * + * (The active timeout interval is the interval at which NetFlow records are + * sent for flows that do not expire, so that such flows are still + * accounted.) */ +#define NF_ACTIVE_TIMEOUT_DEFAULT 600 struct ofexpired; -- 2.30.2