From ff74f3103c031acd7c1f2824644912b151cda3ef Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sat, 20 Sep 2014 09:52:42 -0300 Subject: [PATCH] Fixed invalid Loopback protocol detection on FreeBSD/OSX. --- src/sniffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sniffer.cpp b/src/sniffer.cpp index 8cac7cd..40ec1fe 100644 --- a/src/sniffer.cpp +++ b/src/sniffer.cpp @@ -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; else if(iface_type == DLT_LINUX_SLL) handler = &sniff_loop_handler;