mirror of
https://github.com/mfontanini/libtins
synced 2026-01-28 04:34:27 +01:00
Added PKTAP header.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user