CNDP  22.08.0
cne_ipv4_hdr Struct Reference

#include <cne_ip.h>

Data Fields

uint8_t version_ihl
 
uint8_t type_of_service
 
cne_be16_t total_length
 
cne_be16_t packet_id
 
cne_be16_t fragment_offset
 
uint8_t time_to_live
 
uint8_t next_proto_id
 
cne_be16_t hdr_checksum
 
cne_be32_t src_addr
 
cne_be32_t dst_addr
 

Detailed Description

IPv4 Header

Examples
examples/cndpfwd/acl-func.c.

Definition at line 33 of file cne_ip.h.

Field Documentation

◆ version_ihl

uint8_t version_ihl

version and header length

Examples
examples/cndpfwd/acl-func.c.

Definition at line 34 of file cne_ip.h.

◆ type_of_service

uint8_t type_of_service

type of service

Definition at line 35 of file cne_ip.h.

◆ total_length

cne_be16_t total_length

length of packet

Examples
examples/cndpfwd/acl-func.c.

Definition at line 36 of file cne_ip.h.

◆ packet_id

cne_be16_t packet_id

packet ID

Definition at line 37 of file cne_ip.h.

◆ fragment_offset

cne_be16_t fragment_offset

fragmentation offset

Definition at line 38 of file cne_ip.h.

◆ time_to_live

uint8_t time_to_live

time to live

Definition at line 39 of file cne_ip.h.

◆ next_proto_id

uint8_t next_proto_id

protocol ID

Definition at line 40 of file cne_ip.h.

◆ hdr_checksum

cne_be16_t hdr_checksum

header checksum

Definition at line 41 of file cne_ip.h.

◆ src_addr

cne_be32_t src_addr

source address

Definition at line 42 of file cne_ip.h.

◆ dst_addr

cne_be32_t dst_addr

destination address

Definition at line 43 of file cne_ip.h.


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