1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-26 03:51:35 +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

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