mirror of
https://github.com/mfontanini/libtins
synced 2026-01-27 04:11:35 +01:00
Added some missing DNS record types which contain domain names to the 'contains_dname' helper function.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user