Nut/OS  5.0.5
API Reference
ip Struct Reference

Structure of an internet header. More...

#include <ip.h>

Collaboration diagram for ip:
[legend]

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:

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


Field Documentation

Header length.

Referenced by NutIpInput().

Version.

Referenced by NutIpInput().

Type of service.

short ip::ip_len

Total length.

Referenced by NutIpInput().

Identification.

short ip::ip_off

Fragment offset field.

Referenced by NutIpInput().

Time to live.

Protocol.

Referenced by NutIpInput().

Checksum.

Destination IP address.

Referenced by NutIpInput(), and NutTcpReject().


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