1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Fixed some endianness bugs on ICMPv6 and PPI.

This commit is contained in:
Matias Fontanini
2014-01-19 14:40:57 -03:00
parent 853e1ce647
commit 6d7e06535a
3 changed files with 35 additions and 28 deletions

View File

@@ -85,7 +85,7 @@ public:
* \return The stored length field value.
*/
uint16_t length() const {
return _header.length;
return Endian::le_to_host(_header.length);
}
/**
@@ -93,7 +93,7 @@ public:
* \return The stored Data Link Type field value.
*/
uint32_t dlt() const {
return _header.dlt;
return Endian::le_to_host(_header.dlt);
}
/**