Function pfwl_dissect_L2¶
Defined in File peafowl.h
Function Documentation¶
-
pfwl_status_t
pfwl_dissect_L2(const unsigned char *packet, pfwl_protocol_l2_t datalink_type, pfwl_dissection_info_t *dissection_info)¶ Extracts from the packet the L2 information.
- Return
The status of the identification process.
- Parameters
packet: A pointer to the packet.datalink_type: The datalink type. You can convert a PCAP datalink type to a Peafowl datalink type by calling the function ‘pfwl_convert_pcap_dlt’.dissection_info: The result of the dissection. Dissection information about L2 headers will be filled in by this call.