From d1f028db2be42a272b142511bc006a42bb27af8d Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 13 May 2015 00:39:54 +0200 Subject: core_dns Make MAX_REQUEST_ID unsigned, move it to core_dns from header --- src/coremods/core_dns.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/coremods') 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 -- cgit v1.2.3