aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Attila Molnar2015-05-13 00:39:54 +0200
committerGravatar Attila Molnar2015-05-13 00:39:54 +0200
commitd1f028db2be42a272b142511bc006a42bb27af8d (patch)
tree1fba64ad6bc1e31a168faf7bf0e7f3d444481fc8 /src
parentm_spanningtree Use uint64_t for the burst start time to avoid overflows (diff)
core_dns Make MAX_REQUEST_ID unsigned, move it to core_dns from header
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_dns.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/coremods/core_dns.cpp b/src/coremods/core_dns.cpp
index 829351f04..91bd45b54 100644
--- a/src/coremods/core_dns.cpp
+++ b/src/coremods/core_dns.cpp
@@ -27,6 +27,13 @@
#pragma comment(lib, "Iphlpapi.lib")
#endif
+namespace DNS
+{
+ /** Maximum value of a dns request id, 16 bits wide, 0xFFFF.
+ */
+ const unsigned int MAX_REQUEST_ID = 0xFFFF;
+}
+
using namespace DNS;
/** A full packet sent or recieved to/from the nameserver