pcapy

May 21, 2009 at 09:21 AM | categories: python, psa | View Comments

So, pcapy is a great, simple library to interface with libpcap. It works well for reading live packets and dump files. There's only one problem: there is no way to modify or create a struct pcap_header from Python code. So there's really no way to add data to the packets and add them to a dump file.