1
0
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:
Matias Fontanini
2011-09-19 01:00:59 -03:00
parent e2c643f698
commit 9c2293b2aa
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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));