diff --git a/include/ieee802-11.h b/include/ieee802-11.h index 4088535..88cd27f 100644 --- a/include/ieee802-11.h +++ b/include/ieee802-11.h @@ -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. * diff --git a/src/ieee802-11.cpp b/src/ieee802-11.cpp index 29e207a..e14f198 100644 --- a/src/ieee802-11.cpp +++ b/src/ieee802-11.cpp @@ -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)