Skip to content
Snippets Groups Projects
  1. Aug 03, 2016
  2. Aug 01, 2016
    • Pierre Lalet's avatar
      Merge pull request #240 from 6WIND/lib-friendly · 9201f1cf
      Pierre Lalet authored
      Make scapy usable as a third party library
      9201f1cf
    • Robin Jarry's avatar
      Only enable console logging when running interactive session · 4d31afe7
      Robin Jarry authored
      
      By default, only a NullHandler is added to the 'scapy' logger. This
      allows third party applications that use scapy as a library to control
      the logging of scapy messages.
      
      Signed-off-by: default avatarRobin Jarry <robin.jarry@6wind.com>
      4d31afe7
    • Robin Jarry's avatar
      Prevent namespace pollution · af35135c
      Robin Jarry authored
      
      Some symbols are "internal" to modules (__all__, __file__, __doc__,
      __package__, etc.) they should *not* be replaced by the one from other
      modules.
      
      The "from xxx import *" python syntax construct takes this into account
      and only imports the "public" symbols (i.e., those whose name does not
      start with an underscore). When a __all__ symbol is defined in a module
      (it should be a list of strings), the "from xxx import *" construct only
      imports the names listed in xxx.__all__.
      
      Avoid shadowing module specific symbols when dynamically loading layers
      and other modules by only importing "public" symbols.
      
      Fix importing the "tls" layer along the way (remove erroneous __all__
      definition).
      
      Signed-off-by: default avatarRobin Jarry <robin.jarry@6wind.com>
      af35135c
    • Robin Jarry's avatar
      Fix individual modules import · 60579063
      Robin Jarry authored
      
      When using scapy as a third party library, we do not "benefit" from the
      loading routine that puts all symbols in the __builtin__ namespace. This
      implies that all modules must be "importable" without any errors for
      undefined symbols.
      
      This patch fixes importing every scapy module individually. Some
      circular imports were fixed (between inet6 and dhcp6).
      
      Most errors were detected by using pylint with the right configuration
      (scapy produces a *lot* of errors). Other errors were detected with the
      following shell script:
      
          export PYTHONPATH=".:$PYTHONPATH"
          for f in $(find scapy/ -name '*.py'); do
              f=${f%/__init__.py}
              module=$(echo ${f%.py} | sed 's,/,.,g')
              python -c "import $module; print $module"
          done
      
      Also, replace all implicit relative imports by absolute imports to avoid
      surprises with some python versions.
      
      Signed-off-by: default avatarRobin Jarry <robin.jarry@6wind.com>
      60579063
    • plorinquer's avatar
      NTP module update · 1e48e13f
      plorinquer authored
      1e48e13f
  3. Jul 30, 2016
  4. Jul 29, 2016
  5. Jul 27, 2016
  6. Jul 26, 2016
  7. Jul 23, 2016
  8. Jul 22, 2016
  9. Jul 20, 2016
    • mtury's avatar
      cert.py improvements (#175) · 4faaaac0
      mtury authored
      cert.py improvements
      
      * Improve cert.py : independence from openssl, ECDSA support, sign/verify capabilities
      
      * Make travis install python-ecdsa
      
      * Clarify ECDSA support
      
      * Cleaning up for cert.py
      4faaaac0
  10. Jul 19, 2016
  11. Jul 18, 2016
  12. Jul 11, 2016
  13. Jul 08, 2016
  14. Jul 07, 2016
  15. Jul 06, 2016
  16. Jul 03, 2016
  17. Jul 02, 2016
  18. Jun 23, 2016
  19. Jun 22, 2016
  20. Jun 21, 2016
  21. Jun 17, 2016
  22. Jun 16, 2016
Loading