1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 20:24:26 +01:00

Done some fixes on Sniffer and Dot11Data.

This commit is contained in:
Matias Fontanini
2012-10-10 21:06:06 -03:00
parent 73577c744a
commit 3139020df2
3 changed files with 15 additions and 2 deletions

View File

@@ -73,6 +73,8 @@ PDU *BaseSniffer::next_packet() {
ret = new EthernetII((const uint8_t*)content, header.caplen);
else if(iface_type == DLT_IEEE802_11_RADIO)
ret = new RadioTap((const uint8_t*)content, header.caplen);
else if(iface_type == DLT_IEEE802_11)
ret = Dot11::from_bytes((const uint8_t*)content, header.caplen);
else if(iface_type == DLT_LOOP)
ret = new Tins::Loopback((const uint8_t*)content, header.caplen);
}