Rate This Document
Findability
Accuracy
Completeness
Readability

flexda_extract_hdr

Function

Extracts L2, L3, and L4 header information from a packet in sequence.

Syntax

bool flexda_extract_hdr(struct flexda_extract_ctx *ctx, struct flexda_sub_hdr *sub_hdr)

Parameters

Parameter

Type

Input/Output

Description

ctx

struct flexda_extract_ctx *

Input

Packet header information. It contains pointers to the current and end positions of the packet. The current position pointer is updated dynamically during the parsing process.

sub_hdr

struct flexda_sub_hdr *

Input

Parsed L2, L3, and L4 header information.

Return value

bool

Output

  • true: Success
  • false: Failure

The internal implementation is to call flexda_extract_hdr_l2, flexda_extract_hdr_l3, and flexda_extract_hdr_l4 in sequence. For details about the supported protocols, see flexda_extract_hdr_l2, flexda_extract_hdr_l3, and flexda_extract_hdr_l4.

Example

Refer to "Procedure 1: Developing OVS Control Plane Code" in the BeiMing 26.0.RC1 FlexDA Programming Framework Developer Guide.