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

Function sndrcv

scapy/sendrecv.py:362–369  ·  view source on GitHub ↗

Scapy raw function to send a packet and receive its answer. WARNING: This is an internal function. Using sr/srp/sr1/srp is more appropriate in many cases.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

360
361
362def sndrcv(*args, **kwargs):
363 # type: (*Any, **Any) -> Tuple[SndRcvList, PacketList]
364 """Scapy raw function to send a packet and receive its answer.
365 WARNING: This is an internal function. Using sr/srp/sr1/srp is
366 more appropriate in many cases.
367 """
368 sndrcver = SndRcvHandler(*args, **kwargs)
369 return sndrcver.results()
370
371
372def __gen_send(s, # type: SuperSocket

Callers 4

srbtFunction · 0.90
srFunction · 0.85
srpFunction · 0.85
sndrcvfloodFunction · 0.85

Calls 2

resultsMethod · 0.95
SndRcvHandlerClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…