python libpcap equivalent

Juergen Kareta kareta at
Wed Feb 4 07:12:51 EST 2009

Gabriel schrieb:
> Hello
> I need to write a software router [yes, software equivalent to a 
> hardware box that is routing packets .)]. It's a school
> work..
> Question is: is possible write this kind of application in python? and 
> if it's, what module should i use?
> I tried search for some libpcap equivalent in python and found 
> pylibpcap, but can't find documentation and tutorial.

Hello Gabriel,

you might look into scapy:

which easily allows you to fetch, manipulate and send network packages.


More information about the Python-list mailing list