PacketList: holds several packets and allows to do operations on them.
- class scapy.plist.PacketList(res: Optional[Union[_PacketList[_Inner], List[_Inner]]] = None, name: str = 'PacketList', stats: Optional[List[Type[Packet]]] = None)
- sr(multi: bool = False, lookahead: Optional[int] = None) Tuple[SndRcvList, PacketList]
Matches packets in the list
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
( (matched couples), (unmatched packets) )
- class scapy.plist.QueryAnswer(query, answer)