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

Added IEEE802_11::BROADCAST.

This commit is contained in:
Matias Fontanini
2011-08-23 12:03:49 -03:00
parent 730dcdea44
commit e323be12e6
2 changed files with 7 additions and 0 deletions

View File

@@ -38,6 +38,11 @@ namespace Tins {
public:
/**
* \brief Broadcast hardware address.
*/
static const uint8_t *BROADCAST;
/**
* \brief Enum for the different types of 802.11 frames.
*

View File

@@ -33,6 +33,8 @@
using namespace std;
const uint8_t *Tins::IEEE802_11::BROADCAST = (const uint8_t*)"\xff\xff\xff\xff\xff\xff";
Tins::IEEE802_11::IEEE802_11(const uint8_t* dst_hw_addr, const uint8_t* src_hw_addr, PDU* child) : PDU(ETHERTYPE_IP, child), _options_size(0) {
memset(&this->_header, 0, sizeof(ieee80211_header));
if(dst_hw_addr)