Python module for the libpcap packet capture library, based on the original python libpcap module by Aaron Rhodes.
It has not been updated for pcapng file format. It is missing a pcap_close() function, useful if you do offline pcap_open_offline() (or pcap_open_offline_with_tstamp_precision(), which must be implemented for pcapng). I have modified it for my own use to do both things and hope to send it to the maintainers after some more work on it, and to figure out how to give them the patch files that they can apply to the code. Modifying it is very difficult; there's tons of code in there from SWIG (whatever that is [btw, I know what it is]), and I'm sure I've done it wrong. There are not many examples about how to use the library, and it is not well documented. There are other features of libpcap that have not been included, as well. For basic functionality, it will do the job, and I do appreciate the effort, but it is a tough row to hoe to use it and it is missing some basic and necessary functionality.
Pylibpcap works excellent.