KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
ip_hdr_t Struct Reference

IPv4 Packet header. More...

#include <kos/net.h>

Data Fields

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

Detailed Description

IPv4 Packet header.

Field Documentation

◆ checksum

uint16_t ip_hdr_t::checksum

IP checksum.

◆ dest

uint32_t ip_hdr_t::dest

Destination IP address.

◆ flags_frag_offs

uint16_t ip_hdr_t::flags_frag_offs

Flags and fragment offset.

◆ length

uint16_t ip_hdr_t::length

Length.

◆ packet_id

uint16_t ip_hdr_t::packet_id

Packet ID.

◆ protocol

uint8_t ip_hdr_t::protocol

IP protocol.

◆ src

uint32_t ip_hdr_t::src

Source IP address.

◆ tos

uint8_t ip_hdr_t::tos

Type of Service.

◆ ttl

uint8_t ip_hdr_t::ttl

Time to live.

◆ version_ihl

uint8_t ip_hdr_t::version_ihl

IP version and header length.


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