next up previous contents
Next: IPv4 header Up: Include files Previous: Include files   Contents

Packet construction

packet.def (actually packet4.def and packet6.def, see above) defines headers for IPv4, IPv6, TCP, UDP, ICMP, and IGMP, and it also provides macros for constructing entire packets.

The following sections describe the header structures, the variables used to populate header fields, and their default values. Values which are only set globally, and which retain their value after each change (see section 6.3.2) are marked with global.

The variable names in packet.def are the same used in Section 2.13.1 describes in more detail.

Note that packet.def includes, described in section 2.13.3.


Martin A. Brown 2003-11-06