From: Ben Pfaff Date: Wed, 19 May 2010 16:43:50 +0000 (-0700) Subject: netflow: Use macro for constant instead of static const int. X-Git-Tag: v1.0.1~38 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=137fea8de43a131ea9cd9aa58f3d7547d251bebc;p=sliver-openvswitch.git 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. --- diff --git a/ofproto/netflow.h b/ofproto/netflow.h index 701ffd462..f3099a184 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;