API Reference Manual  1.45.0
odp_packet_parse_param_t Struct Reference

Packet parse parameters. More...

#include <packet_types.h>

Collaboration diagram for odp_packet_parse_param_t:
[legend]

Data Fields

odp_proto_t proto
 Protocol header at parse starting point. More...
 
odp_proto_layer_t last_layer
 Continue parsing until this layer. More...
 
odp_proto_chksums_t chksums
 Flags to control payload data checksums checks up to the selected parse layer. More...
 

Detailed Description

Packet parse parameters.

Examples
odp_bench_packet.c, and odp_cpu_bench.c.

Definition at line 333 of file api/spec/packet_types.h.

Field Documentation

◆ proto

odp_proto_t odp_packet_parse_param_t::proto

Protocol header at parse starting point.

Valid values for this field are: ODP_PROTO_ETH, ODP_PROTO_IPV4, ODP_PROTO_IPV6.

Examples
odp_bench_packet.c, and odp_cpu_bench.c.

Definition at line 336 of file api/spec/packet_types.h.

◆ last_layer

odp_proto_layer_t odp_packet_parse_param_t::last_layer

Continue parsing until this layer.

Must be the same or higher layer than the layer of 'proto'.

Examples
odp_bench_packet.c, and odp_cpu_bench.c.

Definition at line 340 of file api/spec/packet_types.h.

◆ chksums

odp_proto_chksums_t odp_packet_parse_param_t::chksums

Flags to control payload data checksums checks up to the selected parse layer.

Checksum checking status can be queried for each packet with odp_packet_l3_chksum_status() and odp_packet_l4_chksum_status().

Examples
odp_bench_packet.c, and odp_cpu_bench.c.

Definition at line 347 of file api/spec/packet_types.h.


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