Wireshark-dev: Re: [Wireshark-dev] Python wrappers for pcapio.[ch]
From: Anders Waldenborg <andersg@xxxxxxx>
Date: Wed, 11 Jul 2007 12:21:58 +0200
Shehjar Tikoo wrote:
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.

PS: I ask because I intend to use pcapio.c to create a wrapper.
PS2: I've looked at both pcap, pylibpcap and pcapy modules for this functionality.

Hi Shehjar,

I also had this problem a while ago, and wrote this minimal module wrapping libpcap using pyrex: http://people.0x63.nu/~andersg/pcapdump.pyx

 anders