MCPcopy Create free account
hub / github.com/secdev/scapy / SndRcvList

Class SndRcvList

scapy/plist.py:790–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788
789
790class SndRcvList(_PacketList[QueryAnswer],
791 BasePacketList[QueryAnswer],
792 _CanvasDumpExtended):
793 __slots__ = [] # type: List[str]
794
795 def __init__(self,
796 res=None, # type: Optional[Union[_PacketList[QueryAnswer], List[QueryAnswer]]] # noqa: E501
797 name="Results", # type: str
798 stats=None # type: Optional[List[Type[Packet]]]
799 ):
800 # type: (...) -> None
801 super(SndRcvList, self).__init__(res, name, stats)
802
803 def _elt2pkt(self, elt):
804 # type: (QueryAnswer) -> Packet
805 return elt[1]
806
807 def _elt2sum(self, elt):
808 # type: (QueryAnswer) -> str
809 return "%s ==> %s" % (elt[0].summary(), elt[1].summary())

Callers 5

debugClass · 0.90
__init__Method · 0.90
__sr_loopFunction · 0.90
arpleakFunction · 0.90
srMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…