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

Moved endianness change functions to endianness.h.

This commit is contained in:
Matias Fontanini
2012-09-03 23:58:43 -03:00
parent 279940c398
commit 832a79a1e1
39 changed files with 482 additions and 557 deletions

View File

@@ -26,7 +26,7 @@
#include <stdexcept>
#include "pdu.h"
#include "utils.h"
#include "endianness.h"
#include "hwaddress.h"
#include "network_interface.h"
@@ -102,7 +102,7 @@ namespace Tins {
* \brief Getter for the length field.
* \return The length field value.
*/
uint16_t length() const { return Utils::be_to_host(_eth.length); };
uint16_t length() const { return Endian::be_to_host(_eth.length); };
/* Setters */