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

Method send

scapy/arch/libpcap.py:622–629  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

620 self.pcap_fd.setfilter(filter)
621
622 def send(self, x):
623 # type: (Packet) -> int
624 sx = raw(x)
625 try:
626 x.sent_time = time.time()
627 except AttributeError:
628 pass
629 return self.pcap_fd.send(sx)
630
631 class L3pcapSocket(L2pcapSocket):
632 desc = "read/write packets at layer 3 using only libpcap"

Callers 1

sendMethod · 0.45

Calls 1

rawFunction · 0.90

Tested by

no test coverage detected