Chapter 3: The Libnet Library
Overview
URL: | http://www.packetfactory.net/Projects/Libnet |
Primary author: | Mike Schiffman |
Component type: | C language library, packet creation and injection |
License: | BSD |
Version profiled: | 1.1.0 |
Dependencies: | None |
Chapter 2, most operating systems also provide non-uniform support for packet shaping (creation) and injection. Libnet is the packet creation and injection analog to libpcap. It provides a common high-level API for packet manipulation across most current operating systems. Like libpcap, libnet obscures the low-level tedium and platform idiosyncrasies from the application programmer, enabling him or her to concentrate on the task at hand.At this writing, two versions of libnet are available: 1.0.1 and 1.1.0. While this chapter makes reference to the deprecated 1.0.1 version, it only details the new 1.1.0 version of libnet. That being said, we should note that the libnids chapter 4 is built on top of the 1.0.1 version of libnet. Because the libnet interface is not exposed to the application programmer, however, it will not affect the discussion. Finally, because the author of this book is also the author of libnet, this chapter includes some additional internal information that was not available to the general public (until now).