flexda_extract_hdr_l3
Function
Extracts L3 header information from a packet.
Syntax
bool flexda_extract_hdr_l3(struct flexda_extract_ctx *ctx, struct flexda_l3_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_l3_hdr * |
Input |
Parsed L3 header information. |
Return value |
bool |
Output |
|
Supported protocols: IP and IPv6
Example
None
Parent topic: Packet Header Extraction Interfaces