pypeafowl.convertPcapDlt

pypeafowl.convertPcapDlt(arg0: int)pypeafowl.ProtocolL2

Converts a pcap datalink type (which can be obtained with the pcap_datalink(…) call), to a pfwl_datalink_type_t.

Args:
dlt

The pcap datalink type.

Returns:

The peafowl datalink type. PFWL_DLT_NOT_SUPPORTED is returned if the specified datalink type is not supported by peafowl.