Libnet is a simple C library. It is designed to be small, efficient and easy to use. Libnet's main goal is portable packet creation and injection. At the time this manual was written, Libnet was in version 1.0.0 and had 15 different packet assemblers and two types of packet injection, IP-layer and link-layer (more on those below).
By itself, libnet is moderately useful. It can build and inject packets to the network. Libnet, however, has no provisions for packet capture. For this, one must look to libpcap [1]. Together, libnet and libpcap are powerful tools available to the network programmer.
Libnet 1.0.0 consists of about:
This manual attempts to document as much of libnet
as possible, but is probably not complete. It assumes you have a
good working knowledge of C and the TCP/IP protocol suite, but since you're
already here, you probably have all of those tools.
Libnet has been compiled and tested successfully on the following platforms:
Libnet is not as yet portable to Microsoft operating systems.
Go get the library: http://packetfactory.openwall.net/libnet.
Even if your operating system includes it, you might want to check and
make sure you have the most recent version of libnet. Libnet uses
GNU autoconf for precompilation configuration, to start it on its way,
simply type ./configure. From there, you'll want to build
the library by running `make` in the same directory. If
there are any errors or warnings, please send them to mike@infonexus.com.