1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-26 20:01:35 +01:00

Added some missing DNS record types which contain domain names to the 'contains_dname' helper function.

This commit is contained in:
Matias Fontanini
2012-11-20 18:27:59 -03:00
parent 688be1e1da
commit 7e080cf1ab

View File

@@ -37,8 +37,10 @@
namespace Tins {
bool contains_dname(uint16_t type) {
type = Endian::be_to_host(type);
return type == 15 || type == 5 ||
type == 12 || type == 2;
return type == 1 || type == 2 ||
type == 5 || type == 6 ||
type == 12 || type == 15 ||
type == 28 || type == 41;
}
DNSResourceRecord::DNSResourceRecord(DNSRRImpl *impl,