Releases: segevfiner/cypcap
Releases · segevfiner/cypcap
v0.6.2
v0.6.1
Added
- Python 3.13 wheels
v0.6.0
Added
Dumper.flush.
Changed
ts_utcdatetimeis now a tz aware datetime.ts_datetimeis still naive as getting the local
timezone and its availability is still problematic in Python's standard library.
Fixed
- Don't crash if Npcap is not installed or fails to load.
v0.5.0
Added
- Python 3.12 wheels.
Changed
- Now using Cython 3.
v0.4.2
Added
- Python 3.11 wheels.
Fixed
- A
constcompiler warning.
v0.4.1
Fixed
dumps(..., cypcap.BpfDumpType.C_ARRAY)outputted wrong syntax.
v0.4.0
Added
BpfProgramnow has__getitem__,__len__,__init__,__iter__, and can be turned
into a list.dumpscan now dump the formats thatdebug_dumpused 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, andPcap.getevent. cypcap.bpfmodule with constants and utility functions for manually written BPF.
Changed
- Classes which should not be instantiated from Python directly should now raise
(Pcap&Dumper). cypcapis now a package rather than a single file module, API remains the same.
Removed
debug_dumpis merged intodumpsby a new type parameter.
Fixed
set_config,set_pre_confighad wrong typing. (Although those are not exported to an
interface file yet).
v0.3.0
Changed
- The
optimizeparameter toPcap.compilenow defaults toTrue. - Can now call
Pcap.setfilterwith astrwhich will be compiled by callingPcap.compile.
v0.2.0
Added
- Wheels for Windows, Linux & macOS.
Pkthdrcan be created from Python and is mutable (Useful forbpf.offline_filter).- Add
BpfProgram.dumps/BpfProgram.loadsto dump and load the filter in the format used by
iptables, tc-bpf, etc. Pcapnow has a__repr__.Pcapnow has atypeandsourceattributes.- Add
PcapTypefor indicating the type of aPcap. Pkthdr.ts_datetime&Pkthdr.ts_utcdatetimethat returnPkthdr.tsas a naive
datetime.Pcap.set_pre_config&Pcap.set_configshortcuts to setPcapconfiguration via keyword
arguments.
Changed
- Change
findalldevsinterface address parsing to use the same format as thesocket
module and add support forAF_PACKETsockaddr_llused in Linux. - Addresses in
PcapIf.addresses/PcapAddrwill now be in the format
Tuple[socket.AddressFamily, <sockaddr tuple>]. BpfProgram.dumprenamed toBpfProgram.debug_dump.set_timeout&open_livenow accept Python style float seconds instead of milliseconds.- The
netmaskargument toPcap.compileis now optional, the package will try to figure out
the correct value by itself.
v0.1.1
Fixed
cypcap.pyxwas missing from sdist due tocythonize. (Bug in Cython?)