Skip to content
Automatically exported from code.google.com/p/pypcap
Python C Makefile
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AUTHORS add myself to the AUTHORS file Jul 13, 2010
CHANGES honor 'immediate' flag to disable buffering under Windows Jul 16, 2010
INSTALL
LICENSE reformat Oct 17, 2005
Makefile Makefile: fix make install under mingw32-make Jul 17, 2010
README add INSTALL file (build instructions for Linux and Win32) Jul 15, 2010
pcap.pyx honor 'immediate' flag to disable buffering under Windows Jul 16, 2010
pcap_ex.c honor 'immediate' flag to disable buffering under Windows Jul 16, 2010
pcap_ex.h add pcap_{get,set}nonblock, to work around BPF b0rkage on OS X, FreeB… Aug 29, 2005
setup.py fix exception raising Jul 13, 2010
test.pcap add test savefile Jan 26, 2005
test.py sync Sep 12, 2005
testsniff.py add loopback support Jan 26, 2005

README

Python pcap module
------------------

This is a simplified object-oriented Python wrapper for libpcap -
the current tcpdump.org version, and the WinPcap port for Windows.

example use:

>>> import pcap
>>> for ts, pkt in pcap.pcap():
...     print ts, `pkt`
... 

Building
--------

Just try 'make', and then 'make install'

If your libpcap installation is missing the pcap-int.h header, you
will need to build against a libpcap build directory. Modify the
CONFIG_ARGS in the Makefile to point to the location of your built
libpcap distribution, and try again.

See INSTALL file for more detailed build instructions.

Support
-------

Visit http://code.google.com/p/pypcap for help!

You can’t perform that action at this time.