Skip to content

v0.4.0

Compare
Choose a tag to compare
@segevfiner segevfiner released this 14 Jan 15:26

Added

  • BpfProgram now has __getitem__, __len__, __init__, __iter__, and can be turned
    into a list.
  • dumps can now dump the formats that debug_dump used to output and return them as a string
    instead of printing to stdout.
  • Platform specific functions Pcap.set_protocol_linux, Pcap.get_selectable_fd,
    Pcap.get_required_select_timeout, and Pcap.getevent.
  • cypcap.bpf module with constants and utility functions for manually written BPF.

Changed

  • Classes which should not be instantiated from Python directly should now raise
    (Pcap & Dumper).
  • cypcap is now a package rather than a single file module, API remains the same.

Removed

  • debug_dump is merged into dumps by a new type parameter.

Fixed

  • set_config, set_pre_config had wrong typing. (Although those are not exported to an
    interface file yet).