netflow: Use macro for constant instead of static const int.
authorBen Pfaff <blp@nicira.com>
Wed, 19 May 2010 16:43:50 +0000 (09:43 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 19 May 2010 20:23:01 +0000 (13:23 -0700)
It's just bizarre to put a static const int in a header file, at least in
C.

ofproto/netflow.h

index 701ffd4..f3099a1 100644 (file)
 #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;