AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
ipv4_hdr Struct Reference

An IPv4 packet's header. More...

#include <inet.h>

Data Fields

uint8_t ver_ihl
uint8_t tos
uint16_t len
uint16_t id
uint16_t frag
uint8_t ttl
uint8_t proto
uint16_t checksum
uint32_t src
uint32_t dst

Detailed Description

An IPv4 packet's header.

Definition at line 46 of file inet.h.

Field Documentation

◆ checksum

uint16_t ipv4_hdr::checksum

Definition at line 54 of file inet.h.

Referenced by ipv4_output().

◆ dst

uint32_t ipv4_hdr::dst

◆ frag

uint16_t ipv4_hdr::frag

Definition at line 51 of file inet.h.

Referenced by ipv4_input(), and ipv4_output().

◆ id

uint16_t ipv4_hdr::id

Definition at line 50 of file inet.h.

Referenced by ipv4_output().

◆ len

uint16_t ipv4_hdr::len

Definition at line 49 of file inet.h.

Referenced by icmp_unreachable(), icmp_unreachable_input(), ipv4_input(), and ipv4_output().

◆ proto

uint8_t ipv4_hdr::proto

Definition at line 53 of file inet.h.

Referenced by icmp_unreachable_input(), ipv4_input(), and ipv4_output().

◆ src

◆ tos

uint8_t ipv4_hdr::tos

Definition at line 48 of file inet.h.

Referenced by ipv4_output().

◆ ttl

uint8_t ipv4_hdr::ttl

Definition at line 52 of file inet.h.

Referenced by ipv4_output().

◆ ver_ihl

uint8_t ipv4_hdr::ver_ihl

Definition at line 47 of file inet.h.

Referenced by icmp_unreachable(), icmp_unreachable_input(), ipv4_input(), and ipv4_output().


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