Nut/OS  4.10.3
API Reference
ip Struct Reference

Structure of an internet header. More...

#include <ip.h>

Collaboration diagram for ip:

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.

Examples:

pppc/pppc.c, and tcps/tcps.c.

Definition at line 145 of file ip.h.


Field Documentation

Header length.

Definition at line 151 of file ip.h.

Referenced by NutIpInput().

Version.

Definition at line 151 of file ip.h.

Referenced by NutIpInput().

Type of service.

Definition at line 158 of file ip.h.

short ip::ip_len

Total length.

Definition at line 159 of file ip.h.

Referenced by NutIpInput().

Identification.

Definition at line 160 of file ip.h.

short ip::ip_off

Fragment offset field.

Definition at line 161 of file ip.h.

Referenced by NutIpInput().

Time to live.

Definition at line 162 of file ip.h.

Protocol.

Definition at line 163 of file ip.h.

Referenced by NutIpInput().

Checksum.

Definition at line 164 of file ip.h.

Source IP address.

Definition at line 165 of file ip.h.

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

Destination IP address.

Definition at line 166 of file ip.h.

Referenced by NutIpInput(), and NutTcpReject().


The documentation for this struct was generated from the following file: