On Jul 10, 2007, at 6:08 PM, Shehjar Tikoo wrote:
Does anyone know of Python bindings for the pcapio.[ch] code in
Wireshark source root?
I am looking for Python wrappers for writing pcap files and I havent
been able to find a library that does it or does it cleanly.
Shehjar
PS: I ask because I intend to use pcapio.c to create a wrapper.
Why don't you use libpcap to create the wrapper, instead? (I.e., if
you don't like the libpcap wrappers for Python that are out there, why
not just do a better one?)
PS2: I've looked at both pcap, pylibpcap and pcapy modules for this
functionality.
pylibpcap and pcapy both appear to support writing pcap files, so
presumably, if you haven't been able to find a library that does that
or does it cleanly, neither of them do it cleanly. What's unclean
about how they do it?