DPDK 22.11.6
Data Fields
rte_ipv4_hdr Struct Reference

#include <rte_ip.h>

Data Fields

uint8_t type_of_service
 
rte_be16_t total_length
 
rte_be16_t packet_id
 
rte_be16_t fragment_offset
 
uint8_t time_to_live
 
uint8_t next_proto_id
 
rte_be16_t hdr_checksum
 
rte_be32_t src_addr
 
rte_be32_t dst_addr
 
uint8_t version_ihl
 
uint8_t ihl:4
 
uint8_t version:4
 

Detailed Description

IPv4 Header

Examples
examples/bond/main.c, examples/flow_classify/flow_classify.c, examples/ip_fragmentation/main.c, examples/ip_pipeline/pipeline.c, examples/ip_reassembly/main.c, examples/ipsec-secgw/flow.c, examples/ipsec-secgw/ipsec-secgw.c, examples/ipsec-secgw/ipsec_worker.c, examples/ipsec-secgw/sa.c, examples/ipv4_multicast/main.c, examples/l2fwd-crypto/main.c, examples/l3fwd-power/main.c, examples/l3fwd/l3fwd_acl.c, examples/l3fwd/l3fwd_em.c, examples/l3fwd/l3fwd_fib.c, examples/l3fwd/l3fwd_lpm.c, examples/server_node_efd/node/node.c, examples/server_node_efd/server/main.c, and examples/vhost/main.c.

Definition at line 42 of file rte_ip.h.

Field Documentation

◆ version_ihl

uint8_t version_ihl

◆ ihl

uint8_t ihl

header length

Examples
examples/ipsec-secgw/ipsec_worker.c.

Definition at line 48 of file rte_ip.h.

◆ version

uint8_t version

version

Definition at line 49 of file rte_ip.h.

◆ type_of_service

uint8_t type_of_service

type of service

Definition at line 56 of file rte_ip.h.

◆ total_length

rte_be16_t total_length

length of packet

Examples
examples/l2fwd-crypto/main.c, and examples/l3fwd-power/main.c.

Definition at line 57 of file rte_ip.h.

◆ packet_id

rte_be16_t packet_id

packet ID

Definition at line 58 of file rte_ip.h.

◆ fragment_offset

rte_be16_t fragment_offset

fragmentation offset

Definition at line 59 of file rte_ip.h.

◆ time_to_live

uint8_t time_to_live

time to live

Examples
examples/ipsec-secgw/sa.c, and examples/l3fwd-power/main.c.

Definition at line 60 of file rte_ip.h.

◆ next_proto_id

uint8_t next_proto_id

◆ hdr_checksum

rte_be16_t hdr_checksum

header checksum

Examples
examples/ipsec-secgw/ipsec-secgw.c, examples/l3fwd-power/main.c, and examples/vhost/main.c.

Definition at line 62 of file rte_ip.h.

◆ src_addr

rte_be32_t src_addr

◆ dst_addr

rte_be32_t dst_addr

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