1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 12:14:26 +01:00

Added some fixes to the build system. Fixed bugs in DNS and ICMPv6 triggered in big-endian architectures.

This commit is contained in:
Matias Fontanini
2013-01-24 23:55:01 -03:00
parent 0dc762f15d
commit 5ee0ebb264
14 changed files with 843 additions and 1454 deletions

View File

@@ -174,7 +174,7 @@ bool DNSResourceRecord::matches(const std::string &dname) const {
// OffsetedRecord
OffsetedDNSRRImpl::OffsetedDNSRRImpl(uint16_t off)
: offset_(off | 0xc0)
: offset_(off | Endian::host_to_be<uint16_t>(0xc000))
{
}