MCPcopy Index your code
hub / github.com/secdev/scapy / recv

Method recv

scapy/arch/linux/__init__.py:339–345  ·  view source on GitHub ↗
(self, x=MTU, **kwargs)

Source from the content-addressed store, hash-verified

337 self.send_socks = {network_name(self.iface): self}
338
339 def recv(self, x=MTU, **kwargs):
340 # type: (int, **Any) -> Optional[Packet]
341 pkt = SuperSocket.recv(self, x, **kwargs)
342 if pkt and self.lvl == 2:
343 pkt.payload.time = pkt.time
344 return pkt.payload
345 return pkt
346
347 def send(self, x):
348 # type: (Packet) -> int

Callers 1

_sr1_rtrequestFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected