Python + libnet? Link Level Networking?
Poostick
poo at stick.org
Tue Jun 13 22:33:41 EDT 2000
I am trying to learn network programming and Python together and have
a question. I am looking for the ability to do data-link layer
frame/packet construction, much like the library by route "libnet"
provides for C (and there is a Perl interface as well). I could just
use libnet but unfortunately my programming skills don't progress much
farther than compiling C or modifying makefiles/headers, and Perl is
cryptic junk AFAIC. I am able to use the excellent ip classes to make
raw IP packets and put them in a socket but sockets always come in at
least at the network layer, right? (I'm asking, don't know). But I
need to write packets (okay I'm playing with Cisco Discovery Protocol)
which are a CDP packet inside of a SNAP frame on Ethernet. Any ideas?
More information about the Python-list
mailing list