diff options
| author | Thomas Winget <tewinget@gmail.com> | 2014-09-24 17:15:49 -0400 |
|---|---|---|
| committer | Thomas Winget <tewinget@gmail.com> | 2014-09-24 22:45:17 -0400 |
| commit | 22481244535e05bb308eedf9c2d2a5abe2d79a9d (patch) | |
| tree | e28b2d0c4b15a3fbc597beeda0ef74ca488f1aa0 /src/common/dns_utils.h | |
| parent | 4e2b2b942daa4206ec44c66e59863670dfe3fde4 (diff) | |
| download | monzero-core-22481244535e05bb308eedf9c2d2a5abe2d79a9d.tar.gz monzero-core-22481244535e05bb308eedf9c2d2a5abe2d79a9d.tar.xz monzero-core-22481244535e05bb308eedf9c2d2a5abe2d79a9d.zip | |
Removed ldns dependency
ldns dependency was only still around for constants defined in ldns/rr.h,
but those constants are RFC specified DNS constants, and to reduce deps
have been replicated in dns_utils.h instead of including ldns/rr.h.
Diffstat (limited to 'src/common/dns_utils.h')
| -rw-r--r-- | src/common/dns_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/dns_utils.h b/src/common/dns_utils.h index 375f6ba30..d22e3fb1f 100644 --- a/src/common/dns_utils.h +++ b/src/common/dns_utils.h @@ -32,6 +32,12 @@ namespace tools { +// RFC defines for record types and classes for DNS, gleaned from ldns source +const static int DNS_CLASS_IN = 1; +const static int DNS_TYPE_A = 1; +const static int DNS_TYPE_TXT = 6; +const static int DNS_TYPE_AAAA = 8; + struct DNSResolverData; /** |
