aboutsummaryrefslogtreecommitdiffstats
path: root/netlink
diff options
context:
space:
mode:
authorJeff Shaw <jeffrey.b.shaw@intel.com>2016-06-17 13:18:19 -0700
committerJeff Shaw <jeffrey.b.shaw@intel.com>2016-06-17 13:38:46 -0700
commit6a9d37dfe692b82af2417f80af35fa24a26df0d8 (patch)
tree2efa8320019818e0b94f8b3701e098818c49e681 /netlink
parent9f07da4aea0683dec4fdcd270c80e68b4acd057a (diff)
netlink: re-define DBL_MAX to be smaller than usual.
Without this modification I see a timing wheel assertion failure. Change-Id: I20435b36e06d8978771809857cd1a1121f785bc0 Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
Diffstat (limited to 'netlink')
-rw-r--r--netlink/librtnl/rtnl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/netlink/librtnl/rtnl.c b/netlink/librtnl/rtnl.c
index c0b2327..d66c2ee 100644
--- a/netlink/librtnl/rtnl.c
+++ b/netlink/librtnl/rtnl.c
@@ -32,6 +32,9 @@
#include <sys/types.h>
#include <sys/wait.h>
+#undef DBL_MAX
+#define DBL_MAX 1000000000.0
+
typedef enum {
RTNL_E_OPEN,
RTNL_E_CLOSE,