Function pfwl_dissect_from_L4¶
Defined in File peafowl.h
Function Documentation¶
-
pfwl_status_t
pfwl_dissect_from_L4(pfwl_state_t *state, const unsigned char *pkt, size_t length, double timestamp, pfwl_dissection_info_t *dissection_info)¶ Dissects the packet starting from the beginning of the L4 (UDP or TCP) header.
- Return
The status of the identification process.
- Parameters
state: The state of the library.pkt: The pointer to the beginning of UDP or TCP header.length: Length of the packet (from the beginning of the UDP or TCP header).timestamp: The current time. The time unit depends on the timers used by the caller and can be set through the pfwl_set_timestamp_unit call. By default it is assumed that the timestamps unit is ‘seconds’.dissection_info: The result of the dissection. Bytes of dissection_info.l4, dissection_info.l7 must be set to 0 before calling this call. Dissection information about L3 header must be filled in by the caller. Dissection information from L4 to L7 will be filled in by this call.