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 |
|
Supported protocols: Ethernet, IEEE 802.1Q VLAN, and IEEE 802.1ad QinQ
Example
None
Parent topic: Packet Header Extraction Interfaces