summaryrefslogtreecommitdiff
path: root/netdissect.h
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2020-07-28 16:02:07 +0100
committerDenis Ovsienko <denis@ovsienko.info>2020-07-28 16:02:07 +0100
commit4806d509852dd162efd0669e6d3f75f174f2cb1b (patch)
tree4cae7e1918011bfab2ab14d51d2d2b860731725e /netdissect.h
parentcaa364c8ca97f9a338dd7edba4c45b0d65bd90e8 (diff)
downloadtcpdump-4806d509852dd162efd0669e6d3f75f174f2cb1b.tar.gz
Define FMAXINT only once and use it properly.
[skip ci]
Diffstat (limited to 'netdissect.h')
-rw-r--r--netdissect.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/netdissect.h b/netdissect.h
index bb1483a4..6c384439 100644
--- a/netdissect.h
+++ b/netdissect.h
@@ -61,6 +61,8 @@ typedef signed char nd_int8_t[1];
typedef unsigned char nd_int32_t[4];
typedef unsigned char nd_int64_t[8];
+#define FMAXINT (4294967296.0) /* floating point rep. of MAXINT */
+
/*
* Use this for IPv4 addresses and netmasks.
*