ip Struct Reference
[IP]

Structure of an internet header. More...


Data Fields

uint8_t ip_hl:4
 Header length.
uint8_t ip_v:4
 Version.
uint8_t ip_tos
 Type of service.
short ip_len
 Total length.
uint16_t ip_id
 Identification.
short ip_off
 Fragment offset field.
uint8_t ip_ttl
 Time to live.
uint8_t ip_p
 Protocol.
uint16_t ip_sum
 Checksum.
uint32_t ip_src
 Source IP address.
uint32_t ip_dst
 Destination IP address.


Detailed Description

Structure of an internet header.

Definition at line 141 of file ip.h.


Field Documentation

uint8_t ip::ip_hl

Header length.

Definition at line 147 of file ip.h.

Referenced by NutIpInput(), and NutIpOutput().

uint8_t ip::ip_v

Version.

Definition at line 147 of file ip.h.

Referenced by NutIpInput(), and NutIpOutput().

uint8_t ip::ip_tos

Type of service.

Definition at line 154 of file ip.h.

Referenced by NutIpOutput().

short ip::ip_len

Total length.

Definition at line 155 of file ip.h.

Referenced by NutIpInput(), and NutIpOutput().

uint16_t ip::ip_id

Identification.

Definition at line 156 of file ip.h.

Referenced by NutIpOutput().

short ip::ip_off

Fragment offset field.

Definition at line 157 of file ip.h.

Referenced by NutIpInput(), and NutIpOutput().

uint8_t ip::ip_ttl

Time to live.

Definition at line 158 of file ip.h.

Referenced by NutIpOutput().

uint8_t ip::ip_p

Protocol.

Definition at line 159 of file ip.h.

Referenced by NutIpInput(), and NutIpOutput().

uint16_t ip::ip_sum

Checksum.

Definition at line 160 of file ip.h.

Referenced by NutIpOutput().

uint32_t ip::ip_src

Source IP address.

Definition at line 161 of file ip.h.

Referenced by NutIcmpResponse(), NutIpInput(), NutIpOutput(), NutTcpReject(), NutTcpSm(), and NutUdpReceiveFrom().

uint32_t ip::ip_dst

Destination IP address.

Definition at line 162 of file ip.h.

Referenced by NutIpInput(), NutIpOutput(), and NutTcpReject().


The documentation for this struct was generated from the following file:
© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/