mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Fixed bug in EthernetII::ADDR_SIZE definition.
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Tins {
|
||||
/**
|
||||
* \brief Ethernet II hardware address size.
|
||||
*/
|
||||
static const uint32_t ADDR_SIZE = 6;
|
||||
static const unsigned ADDR_SIZE = 6;
|
||||
|
||||
/**
|
||||
* \brief Constructor for creating an ethernet PDU
|
||||
@@ -217,4 +217,5 @@ namespace Tins {
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "utils.h"
|
||||
|
||||
const uint8_t* Tins::EthernetII::BROADCAST = (const uint8_t*)"\xff\xff\xff\xff\xff\xff";
|
||||
//const uint32_t Tins::EthernetII::ADDR_SIZE = 6;
|
||||
const uint32_t Tins::EthernetII::ADDR_SIZE;
|
||||
|
||||
Tins::EthernetII::EthernetII(const std::string& iface, const uint8_t* dst_hw_addr, const uint8_t* src_hw_addr, PDU* child) throw (std::runtime_error) : PDU(ETHERTYPE_IP, child) {
|
||||
memset(&_eth, 0, sizeof(ethhdr));
|
||||
|
||||
Reference in New Issue
Block a user