Rate This Document
Findability
Accuracy
Completeness
Readability

flexda_extract_hdr_l2

Function

Extracts L2 header information from a packet.

Syntax

bool flexda_extract_hdr_l2(struct flexda_extract_ctx *ctx, struct flexda_l2_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_l2_hdr *

Input

Parsed L2 header information.

Return value

bool

Output

  • true: Success
  • false: Failure

Supported protocols: Ethernet, IEEE 802.1Q VLAN, and IEEE 802.1ad QinQ

Example

None