Skip to content
Snippets Groups Projects
  1. Jun 04, 2021
    • Petr Špaček's avatar
      cut-pcap.lua script to effectively trim already sorted PCAPs · 1cbc93f0
      Petr Špaček authored
      Intended use is together with merge_chunks.py like this:
      merge_chunks.py ... | cut-pcap.lua - /tmp/short.pcap 60
      
      Stock editcap is designed to handle unsorted PCAPs and thus cannot stop
      on encountering first packet with timestamp over limit.
      This is very ineffective for processing large PCAPs generated by
      extract-clients.lua because the mergecap + editcap pipeline keeps
      processing all the "trailing" data, which can take really large time for
      no benefit.
      1cbc93f0
  2. May 13, 2021
  3. May 12, 2021
  4. May 11, 2021
  5. Apr 28, 2021
  6. Apr 27, 2021
  7. Apr 23, 2021
  8. Apr 22, 2021
  9. Apr 14, 2021
  10. Mar 31, 2021
  11. Mar 29, 2021
  12. Mar 25, 2021
  13. Feb 24, 2021
  14. Feb 23, 2021
    • Petr Špaček's avatar
      merge_chunks: utility to merge chunks on-the-fly · c378de50
      Petr Špaček authored
      Intended usage is to avoid generating PCAPs which are simple combination
      of "base chunks".
      
      Example:
      When original PCAP is split into 100 chunks with 1 kQPS on average,
      testing full range of 1k to 100k QPS formerly required generating 100
      distincts PCAPs, wasting time and storage.
      With this utility it is enough to generate "base chunks" and create
      arbitrary multiplication on-the-fly.
      
      Why Python?
      - Lua cannot list content of directory, FFI solution would be
        unportable, and adding depedency just for that seems too much.
      - BASH version of this script made me cry when I finished it.
      - Python is already depedency of replay.py and it is used only to
        process mergecap arguments and python process terminates/replaces
        itself once its job is done.
      c378de50
  15. Feb 18, 2021
  16. Feb 15, 2021
Loading