ip Struct Reference
[IP]


Detailed Description

Structure of an internet header.

Definition at line 132 of file ip.h.


Data Fields

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

Field Documentation

u_char ip::ip_hl

Header length.

Definition at line 138 of file ip.h.

Referenced by NutIpInput(), and NutIpOutput().

u_char ip::ip_v

Version.

Definition at line 138 of file ip.h.

Referenced by NutIpInput(), and NutIpOutput().

u_char ip::ip_tos

Type of service.

Definition at line 145 of file ip.h.

Referenced by NutIpOutput().

short ip::ip_len

Total length.

Definition at line 146 of file ip.h.

Referenced by NutIpInput(), and NutIpOutput().

u_short ip::ip_id

Identification.

Definition at line 147 of file ip.h.

Referenced by NutIpOutput().

short ip::ip_off

Fragment offset field.

Definition at line 148 of file ip.h.

Referenced by NutIpInput(), and NutIpOutput().

u_char ip::ip_ttl

Time to live.

Definition at line 149 of file ip.h.

Referenced by NutIpOutput().

u_char ip::ip_p

Protocol.

Definition at line 150 of file ip.h.

Referenced by NutIpInput(), and NutIpOutput().

u_short ip::ip_sum

Checksum.

Definition at line 151 of file ip.h.

Referenced by NutIpOutput().

u_long ip::ip_src

Source IP address.

Definition at line 152 of file ip.h.

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

u_long ip::ip_dst

Destination IP address.

Definition at line 153 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/