summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs/scapy-2.3.1/python3/scapy/utils.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-09-07 11:48:23 +0300
committerimarom <imarom@cisco.com>2016-09-07 14:08:35 +0300
commitdbe6b1886ee2b860395731a77da305a01095a843 (patch)
tree1b3141bf387b1435952d138360e41e28f994d53e /scripts/external_libs/scapy-2.3.1/python3/scapy/utils.py
parent323238656f07cbb4671e1493d8274ccb532588b1 (diff)
support for DUAL mode on small PCAPs
Diffstat (limited to 'scripts/external_libs/scapy-2.3.1/python3/scapy/utils.py')
-rw-r--r--scripts/external_libs/scapy-2.3.1/python3/scapy/utils.py3
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):