Packets

Packets are represented as instances of type LND_Packet. When requested, libnetdude initializes packets so that they contain detailed information about the nesting of the protocols contained in them. This depends on the number of protocols available to the library. It comes with support for the most common plugins (see below) and can be extended to support arbitrary plugins through protocol plugins. libnetdude's packets also contain the packet data and packet header as provided by libpcap

Initialized packets make it easy to access protocol information of a certain type of nesting.

Similarly to traces, applications can register observers to be informed when certain operations are performed on a packet.