~/talk

Python and cffi Visualizing Network Traces

Talkat PyCon India 2020 · 2020-10-02..10-05· [networking, python]
links:none on file
slides:none on file

Python bindings for Wireshark and libpcap are implemented with cffi, using cffi set_source/verify to generate a compiled extension and cffi_modules for setup.py integration. The project exposes higher-level capturer and detector classes that hide C APIs, dumps decoded JSON to Elasticsearch, and handles multiple libwireshark versions by splitting src and lib code. Performance tests show the Python+ cffi pipeline is roughly 4–5× faster than calling tshark in a subprocess and is reliable for large pcaps.

AI-written summary · about

  1. 0:00Start
  2. 5:38What Is Cffi
  3. 7:48Application Programming Interface
  4. 8:42Three Stages of Development
  5. 9:16Development Stage
  6. 9:34What Ac Library Is
  7. 14:09Package Config Library
  8. 17:06Cff Modules
  9. 18:16Runtime Stage
  10. 20:19Capturer and Detector
  11. 21:53Summary
  12. 23:20Garbage Collection
  13. 25:42Use Python Functions as Callbacks
  14. 28:08Demo
  15. 29:32Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.