flexda_extract_hdr_l4
Function
Extracts L4 header information from a packet.
Syntax
bool flexda_extract_hdr_l4(struct flexda_extract_ctx *ctx, struct flexda_l4_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_l4_hdr * |
Input |
Parsed L4 header information. |
Return value |
bool |
Output |
|
Supported protocols: TCP, UDP, ICMP, and ICMPv6
Example
None
Parent topic: Packet Header Extraction Interfaces