From dbe6b1886ee2b860395731a77da305a01095a843 Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 7 Sep 2016 11:48:23 +0300 Subject: support for DUAL mode on small PCAPs --- scripts/external_libs/scapy-2.3.1/python2/scapy/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/external_libs/scapy-2.3.1/python2/scapy') diff --git a/scripts/external_libs/scapy-2.3.1/python2/scapy/utils.py b/scripts/external_libs/scapy-2.3.1/python2/scapy/utils.py index c5ac2520..b1efdf37 100644 --- a/scripts/external_libs/scapy-2.3.1/python2/scapy/utils.py +++ b/scripts/external_libs/scapy-2.3.1/python2/scapy/utils.py @@ -573,7 +573,8 @@ class PcapReader(RawPcapReader): try: self.LLcls = conf.l2types[self.linktype] except KeyError: - warning("PcapReader: unknown LL type [%i]/[%#x]. Using Raw packets" % (self.linktype,self.linktype)) + raise Scapy_Exception("Scapy PcapReader: unknown LL type [%i]/[%#x]" % (self.linktype,self.linktype)) + #warning("PcapReader: unknown LL type [%i]/[%#x]. Using Raw packets" % (self.linktype,self.linktype)) self.LLcls = conf.raw_layer def read_packet(self, size=MTU): rp = RawPcapReader.read_packet(self,size) -- cgit