11.1. Introduction to libnet
Designed by Mike Schiffman, libnet is a portable, open source, C-language library for creating and injecting network packets. libnet supports packet creation at all network levels with the TCP/IP network model, as demonstrated in Figure 11-1.
Figure 11-1. TCP/IP model and example of supported protocols
In addition, you can create other protocols within libnet due to its absolute control over packet data content.
11.1.1. Installing libnet
libnet is distributed in source code form. You can download the source code for the latest version of libnet from the project home page at http://www.packetfactory.net/projects/libnet/.
tar zxvf libnet.tar.gz cd libnet ./configure make make install (as root)