Function pfwl_dissect_from_L3¶
Defined in File peafowl.h
Function Documentation¶
-
pfwl_status_t
pfwl_dissect_from_L3(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 L3 (IP) header.
- Return
The status of the identification process.
- Parameters
state: The state of the library.pkt: The pointer to the beginning of IP header.length: Length of the packet (from the beginning of the IP 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.l3, dissection_info.l4, dissection_info.l7 must be set to 0 before calling this call. Dissection information from L3 to L7 will be filled in by this call.