Retro Rocket Kernel BASIC-Powered Operating System

Data Fields
ip_packet Struct Reference

Structure for an IP packet. More...

`#include <ip.h>`

Collaboration diagram for ip_packet:
[legend]

## Data Fields
char | version_ihl_ptr [0]
uint8_t | version:4
uint8_t | ihl:4
tos_flags_t | tos
uint16_t | length
uint16_t | id
char | flags_fragment_ptr [0]
ip_frag_t | frag
uint8_t | ttl
uint8_t | protocol
uint16_t | header_checksum
uint8_t | src_ip [4]
uint8_t | dst_ip [4]
uint8_t | options [0]
uint8_t | data []

## Detailed Description

Structure for an IP packet.

## Field Documentation

## ◆ data

uint8_t ip_packet::data[]

## ◆ dst_ip

uint8_t ip_packet::dst_ip[4]

## ◆ flags_fragment_ptr

char ip_packet::flags_fragment_ptr[0]

## ◆ frag

ip_frag_t ip_packet::frag

## ◆ header_checksum

uint16_t ip_packet::header_checksum

## ◆ id

uint16_t ip_packet::id

## ◆ ihl

uint8_t ip_packet::ihl

## ◆ length

uint16_t ip_packet::length

## ◆ options

uint8_t ip_packet::options[0]

## ◆ protocol

uint8_t ip_packet::protocol

## ◆ src_ip

uint8_t ip_packet::src_ip[4]

## ◆ tos

tos_flags_t ip_packet::tos

## ◆ ttl

uint8_t ip_packet::ttl

## ◆ version

uint8_t ip_packet::version

## ◆ version_ihl_ptr

char ip_packet::version_ihl_ptr[0]