1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-26 03:51:35 +01:00

Parsing sniffed RadioTAP + 802.11 beacon packets is working.

This commit is contained in:
Matias Fontanini
2011-08-25 00:35:34 -03:00
parent 9d063b6f1b
commit c752fa36f5
3 changed files with 108 additions and 16 deletions

View File

@@ -106,6 +106,8 @@ Tins::RadioTap::RadioTap(const uint8_t *buffer, uint32_t total_sz) : PDU(0xff) {
buffer += sizeof(_rx_flags);
total_sz -= sizeof(_rx_flags);
}
if(total_sz)
inner_pdu(IEEE802_11::from_bytes(buffer, total_sz));
}
void Tins::RadioTap::version(uint8_t new_version) {