Wireshark-dev: Re: [Wireshark-dev] Python wrappers for pcapio.[ch]

From: Shehjar Tikoo <shehjart@xxxxxxxxxxxxxxx>
Date: Thu, 12 Jul 2007 11:24:04 +1000
Anders Waldenborg wrote:
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
That looks like what I need. Thanks.

Shehjar