diff options
-rw-r--r-- | include/modules/dns.h | 6 | ||||
-rw-r--r-- | 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 |