diff options
Diffstat (limited to 'scripts/external_libs/scapy-2.3.1/python2/scapy/utils.py')
-rw-r--r-- | scripts/external_libs/scapy-2.3.1/python2/scapy/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |