Function pfwl_dissect_L3

Function Documentation

pfwl_status_t pfwl_dissect_L3(pfwl_state_t *state, const unsigned char *pkt, size_t length, double timestamp, pfwl_dissection_info_t *dissection_info)

Extracts from the packet the L3 information.

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 about L3 headers will be filled in by this call.