diff options
| author | 2015-04-21 15:08:10 +0200 | |
|---|---|---|
| committer | 2015-04-21 15:08:10 +0200 | |
| commit | 4e58282058fe9d57f0ef1d557e88ffdbdbf01166 (patch) | |
| tree | 4461481cd3c800c7111e4e6354279995143361fb /include | |
| parent | core_dns Allow usage of id 65535 (diff) | |
core_dns Add typedef for request id, change it to uint16_t
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules/dns.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/modules/dns.h b/include/modules/dns.h index 400d2085d..04e3df16c 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -68,6 +68,8 @@ namespace DNS ERROR_INVALIDTYPE }; + typedef uint16_t RequestId; + const int PORT = 53; /** @@ -147,7 +149,7 @@ namespace DNS /* Use result cache if available */ bool use_cache; /* Request id */ - unsigned short id; + RequestId id; /* Creator of this request */ Module* const creator; |
