diff options
author | 2016-09-07 11:48:23 +0300 | |
---|---|---|
committer | 2016-09-07 14:08:35 +0300 | |
commit | dbe6b1886ee2b860395731a77da305a01095a843 (patch) | |
tree | 1b3141bf387b1435952d138360e41e28f994d53e /scripts/external_libs/scapy-2.3.1/python3 | |
parent | 323238656f07cbb4671e1493d8274ccb532588b1 (diff) |
support for DUAL mode on small PCAPs
Diffstat (limited to 'scripts/external_libs/scapy-2.3.1/python3')
-rw-r--r-- | scripts/external_libs/scapy-2.3.1/python3/scapy/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/external_libs/scapy-2.3.1/python3/scapy/utils.py b/scripts/external_libs/scapy-2.3.1/python3/scapy/utils.py index 252109bb..9f15f2a9 100644 --- a/scripts/external_libs/scapy-2.3.1/python3/scapy/utils.py +++ b/scripts/external_libs/scapy-2.3.1/python3/scapy/utils.py @@ -750,7 +750,8 @@ class _RawPcapOldReader: try: self.LLcls = conf.l2types[self.linktype] except KeyError: - warning("RawPcapReader: 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("RawPcapReader: unknown LL type [%i]/[%#x]. Using Raw packets" % (self.linktype,self.linktype)) self.LLcls = conf.raw_layer def __iter__(self): |