diff options
author | 2016-03-21 16:03:47 +0200 | |
---|---|---|
committer | 2016-03-21 16:03:47 +0200 | |
commit | b89efa188810bf95a9d245e69e2961b5721c3b0f (patch) | |
tree | 454273ac6c4ae972ebb8a2c86b893296970b4fa9 /scripts/external_libs/scapy-python3-0.18/scapy/layers/all.py | |
parent | f72c6df9d2e9998ae1f3529d729ab7930b35785a (diff) |
scapy python 2/3
Diffstat (limited to 'scripts/external_libs/scapy-python3-0.18/scapy/layers/all.py')
-rw-r--r-- | scripts/external_libs/scapy-python3-0.18/scapy/layers/all.py | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/scripts/external_libs/scapy-python3-0.18/scapy/layers/all.py b/scripts/external_libs/scapy-python3-0.18/scapy/layers/all.py deleted file mode 100644 index 8104b6a2..00000000 --- a/scripts/external_libs/scapy-python3-0.18/scapy/layers/all.py +++ /dev/null @@ -1,45 +0,0 @@ -## This file is part of Scapy -## See http://www.secdev.org/projects/scapy for more informations -## Copyright (C) Philippe Biondi <phil@secdev.org> -## This program is published under a GPLv2 license - -""" -All layers. Configurable with conf.load_layers. -""" - -import importlib -from scapy.config import conf -from scapy.error import log_loading -import logging -log = logging.getLogger("scapy.loading") - -#log_loading.info("Please, report issues to https://github.com/phaethon/scapy") - -def _import_star(m): - #mod = __import__("." + m, globals(), locals()) - mod = importlib.import_module("scapy.layers." + m) - for k,v in mod.__dict__.items(): - globals()[k] = v - - -for _l in ['l2','inet','inet6']: - log_loading.debug("Loading layer %s" % _l) - #print "load ",_l - _import_star(_l) - -#def _import_star(m): - #mod = __import__("." + m, globals(), locals()) -# mod = importlib.import_module("scapy.layers." + m) -# for k,v in mod.__dict__.items(): -# globals()[k] = v - -#for _l in conf.load_layers: -# log_loading.debug("Loading layer %s" % _l) -# try: -# _import_star(_l) -# except Exception as e: -# log.warning("can't import layer %s: %s" % (_l,e)) - - - - |