Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

ip Struct Reference
[IP (Internet Protocol) layer]

The IP packet structure. More...

#include <ip.h>


Data Fields

uint8_t ip_hdr_len:4
 The header length.

uint8_t ip_version:4
 The IP version.

uint8_t ip_tos
 Type of Service.

uint16_t ip_len
 IP packet length (both data and header).

uint16_t ip_id
 Identification.

uint16_t ip_off
 Fragment offset.

uint8_t ip_ttl
 Time To Live.

uint8_t ip_proto
 The type of the upper-level protocol.

uint16_t ip_chk
 IP header checksum.

uint32_t ip_src
 IP source address (in network format).

uint32_t ip_dst
 IP destination address (in network format).


Detailed Description

The IP packet structure.

Definition at line 80 of file ip.h.


Field Documentation

uint16_t ip::ip_chk
 

IP header checksum.

Definition at line 104 of file ip.h.

uint32_t ip::ip_dst
 

IP destination address (in network format).

Definition at line 109 of file ip.h.

uint8_t ip::ip_hdr_len
 

The header length.

Definition at line 83 of file ip.h.

uint16_t ip::ip_id
 

Identification.

Definition at line 95 of file ip.h.

uint16_t ip::ip_len
 

IP packet length (both data and header).

Definition at line 92 of file ip.h.

uint16_t ip::ip_off
 

Fragment offset.

Definition at line 97 of file ip.h.

uint8_t ip::ip_proto
 

The type of the upper-level protocol.

Definition at line 102 of file ip.h.

uint32_t ip::ip_src
 

IP source address (in network format).

Definition at line 107 of file ip.h.

uint8_t ip::ip_tos
 

Type of Service.

Definition at line 90 of file ip.h.

uint8_t ip::ip_ttl
 

Time To Live.

Definition at line 100 of file ip.h.

uint8_t ip::ip_version
 

The IP version.

Definition at line 84 of file ip.h.


The documentation for this struct was generated from the following file:
Generated on Fri Feb 20 15:32:21 2004 for Minirighi by doxygen1.2.18