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 --- include/modules/dns.h | 6 ------ src/coremods/core_dns.cpp | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/include/modules/dns.h b/include/modules/dns.h index cfa048184..ea443e343 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -72,12 +72,6 @@ namespace DNS const int PORT = 53; - /** - * The maximum value of a dns request id, - * 16 bits wide, 0xFFFF. - */ - const int MAX_REQUEST_ID = 0xFFFF; - class Exception : public ModuleException { public: 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.3.1-10-gc9f91