pypeafowl.Peafowl

class pypeafowl.Peafowl

Handle to the Peafowl library.

Peafowl.dissectFromL2(self, pkt, ts, dlt)

Dissects the packet starting from the beginning of the L2 (datalink) header.

Peafowl.dissectFromL3(self, pkt, ts)

Dissects the packet starting from the beginning of the L3 (IP) header.

Peafowl.fieldAddL7(self, field)

Enables the extraction of a specific L7 field for a given protocol.

Peafowl.fieldRemoveL7(self, arg0)

Enables the extraction of a specific L7 field for a given protocol.

Peafowl.setExpectedFlows(self, flows, strategy)

Sets the number of simultaneously active flows to be expected.

Peafowl.setFlowManager(self, flowManager)

Sets the functor object which is called when the flow terminates.

Peafowl.setTimestampUnit(self, unit)

Sets the unit of the timestamps used in the dissect* calls.