Skip to content
Snippets Groups Projects
  1. Aug 04, 2016
  2. Aug 01, 2016
    • 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 22, 2016
  4. Jul 06, 2016
  5. May 20, 2016
  6. May 06, 2016
  7. May 05, 2016
  8. Apr 27, 2016
  9. Apr 13, 2016
  10. Apr 05, 2016
  11. Mar 28, 2016
  12. Mar 13, 2016
  13. Feb 26, 2016
  14. Feb 24, 2016
  15. Feb 10, 2016
  16. Feb 09, 2016
  17. Feb 06, 2016
  18. Jan 30, 2016
  19. Jan 23, 2016
  20. Jan 17, 2016
  21. Jan 15, 2016
  22. Nov 30, 2015
  23. Nov 29, 2015
  24. Oct 06, 2015
  25. Jan 06, 2015
  26. Dec 22, 2014
  27. Aug 01, 2013
  28. Dec 15, 2010
  29. Dec 14, 2010
  30. Apr 21, 2010
    • Phil's avatar
      Simplified the build mecanism · 1e59ef63
      Phil authored
      Packet.build() is called only on the first layer. It will call
      Packet.do_build() which will recurse through all layers. For each layer,
      it will call Packet.self_build() which will do the job for each layer.
      Packet.do_build() will call Packet.post_build() and transform on them,
      and concatenate them. Then Packet.build() will call Packet.build_padding()
      and Packet.build_done().
      
      Note that this undetermined case will have a different behavior:
      Raw("ABC")/Padding("abc")/Raw("DEF")/Padding("def")
      
      It was "ABCabcDEFdef"
      Now it is "ABCDEFabcdef"
      1e59ef63
  31. May 04, 2009
Loading