scapy.plist

PacketList: holds several packets and allows to do operations on them.

class scapy.plist.PacketList(*args, **kwds)

Bases: scapy.plist._PacketList, scapy.base_classes.BasePacketList, scapy.base_classes._CanvasDumpExtended

sr(multi=False, lookahead=None)

Matches packets in the list

Parameters
  • multi – True if a packet can have multiple answers

  • lookahead – Maximum number of packets between packet and answer. If 0 or None, full remaining list is scanned for answers

Returns

( (matched couples), (unmatched packets) )

class scapy.plist.SndRcvList(*args, **kwds)

Bases: scapy.plist._PacketList, scapy.base_classes.BasePacketList, scapy.base_classes._CanvasDumpExtended