11.1. Introduction to libnetDesigned 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 protocolsAs of libnet version 1.1.2.1, you can create packets for the following protocols:
In addition, you can create other protocols within libnet due to its absolute control over packet data content. 11.1.1. Installing libnetlibnet 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/. On Unix and Unix-like systems, installing libnet is straightforward: tar zxvf libnet.tar.gz cd libnet ./configure make make install (as root) |