1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 04:34:27 +01:00

Added PKTAP header.

This commit is contained in:
Matias Fontanini
2014-12-21 10:18:59 -08:00
parent ccbeca269a
commit a4c67e5acd
5 changed files with 188 additions and 0 deletions

View File

@@ -42,6 +42,7 @@
#include "loopback.h"
#include "rawpdu.h"
#include "dot3.h"
#include "pktap.h"
#include "sll.h"
#include "ppi.h"
@@ -159,6 +160,11 @@ PtrPacket BaseSniffer::next_packet() {
throw protocol_disabled();
#endif
}
#ifdef DLT_PKTAP
else if (iface_type == DLT_PKTAP) {
handler = &sniff_loop_handler<PKTAP>();
}
#endif // DLT_PKTAP
else if(iface_type == DLT_NULL)
handler = &sniff_loop_handler<Tins::Loopback>;
else if(iface_type == DLT_LINUX_SLL)