KallistiOS  2.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Fields
ip_hdr_s Struct Reference

IPv4 Packet header. More...

#include <kos/net.h>

Data Fields

uint8 version_ihl
 IP version and header length.
uint8 tos
 Type of Service.
uint16 length
 Length.
uint16 packet_id
 Packet ID.
uint16 flags_frag_offs
 Flags and fragment offset.
uint8 ttl
 Time to live.
uint8 protocol
 IP protocol.
uint16 checksum
 IP checksum.
uint32 src
 Source IP address.
uint32 dest
 Destination IP address.

Detailed Description

IPv4 Packet header.


Field Documentation

uint16 ip_hdr_s::checksum

IP checksum.

uint32 ip_hdr_s::dest

Destination IP address.

uint16 ip_hdr_s::flags_frag_offs

Flags and fragment offset.

uint16 ip_hdr_s::length

Length.

uint16 ip_hdr_s::packet_id

Packet ID.

uint8 ip_hdr_s::protocol

IP protocol.

uint32 ip_hdr_s::src

Source IP address.

uint8 ip_hdr_s::tos

Type of Service.

uint8 ip_hdr_s::ttl

Time to live.

uint8 ip_hdr_s::version_ihl

IP version and header length.


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