pypeafowl.Peafowl.dissectFromL2¶
-
Peafowl.dissectFromL2(self: pypeafowl.Peafowl, pkt: str, ts: float, dlt: pypeafowl.ProtocolL2) → pypeafowl.DissectionInfo¶ Dissects the packet starting from the beginning of the L2 (datalink) header.
- Args:
- pkt
A string containing the packet.
- ts
The current time. The time unit depends on the timers used by the caller and can be set through the setTimestampUnit call. By default it is assumed that the timestamps unit is ‘seconds’.
- dlt
The datalink type. You can convert a PCAP datalink type to a Peafowl datalink type by calling the function ‘convertPcapDlt’.
- Returns:
The result of the dissection from L2 to L7.