mirror of
https://github.com/mfontanini/libtins
synced 2026-01-28 12:44:25 +01:00
Removed the useless PDU::flag member. Added a PDU concatenation operator.
This commit is contained in:
@@ -33,14 +33,13 @@
|
||||
|
||||
|
||||
Tins::RadioTap::RadioTap(const NetworkInterface &iface, PDU *child)
|
||||
: PDU(0xff, child), _iface(iface), _options_size(0)
|
||||
: PDU(child), _iface(iface), _options_size(0)
|
||||
{
|
||||
std::memset(&_radio, 0, sizeof(_radio));
|
||||
init();
|
||||
}
|
||||
|
||||
Tins::RadioTap::RadioTap(const uint8_t *buffer, uint32_t total_sz)
|
||||
: PDU(0xff)
|
||||
{
|
||||
static const std::string msg("Not enough size for an RadioTap header in the buffer.");
|
||||
if(total_sz < sizeof(_radio))
|
||||
|
||||
Reference in New Issue
Block a user