EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
Data Fields
ip4_schema Struct Reference

IP4 protocol schema definition. More...

#include <packet_decoder.h>

Data Fields

char id [MAX_RANDOM_UUID_LEN]
 
char ip_src [OS_INET_ADDRSTRLEN]
 
char ip_dst [OS_INET_ADDRSTRLEN]
 
uint8_t ip_hl
 
uint8_t ip_v
 
uint8_t ip_tos
 
uint16_t ip_len
 
uint16_t ip_id
 
uint16_t ip_off
 
uint8_t ip_ttl
 
uint8_t ip_p
 
uint16_t ip_sum
 

Detailed Description

IP4 protocol schema definition.

Field Documentation

◆ id

char ip4_schema::id[MAX_RANDOM_UUID_LEN]

Packet id

◆ ip_dst

char ip4_schema::ip_dst[OS_INET_ADDRSTRLEN]

Packet dest address

◆ ip_hl

uint8_t ip4_schema::ip_hl

Packet header length

◆ ip_id

uint16_t ip4_schema::ip_id

Packet identification

◆ ip_len

uint16_t ip4_schema::ip_len

Packet total length

◆ ip_off

uint16_t ip4_schema::ip_off

Packet fragment offset field

◆ ip_p

uint8_t ip4_schema::ip_p

Packet protocol

◆ ip_src

char ip4_schema::ip_src[OS_INET_ADDRSTRLEN]

Packet source address

◆ ip_sum

uint16_t ip4_schema::ip_sum

Packet checksum

◆ ip_tos

uint8_t ip4_schema::ip_tos

Packet type of service

◆ ip_ttl

uint8_t ip4_schema::ip_ttl

Packet time to live

◆ ip_v

uint8_t ip4_schema::ip_v

Packet version


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