1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Fixed invalid Loopback protocol detection on FreeBSD/OSX.

This commit is contained in:
Matias Fontanini
2014-09-20 09:52:42 -03:00
parent addf0b3d98
commit ff74f3103c

View File

@@ -159,7 +159,7 @@ PtrPacket BaseSniffer::next_packet() {
throw protocol_disabled();
#endif
}
else if(iface_type == DLT_LOOP)
else if(iface_type == DLT_NULL)
handler = &sniff_loop_handler<Tins::Loopback>;
else if(iface_type == DLT_LINUX_SLL)
handler = &sniff_loop_handler<SLL>;