summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-05-13 00:39:54 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-05-13 00:39:54 +0200
commitd1f028db2be42a272b142511bc006a42bb27af8d (patch)
tree1fba64ad6bc1e31a168faf7bf0e7f3d444481fc8 /src/coremods
parent0982b2a58259ec1653e2af93ec612ec98378a087 (diff)
core_dns Make MAX_REQUEST_ID unsigned, move it to core_dns from header
Diffstat (limited to 'src/coremods')
-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