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

Function _cb

scapy/sendrecv.py:1561–1564  ·  view source on GitHub ↗
(pkt)

Source from the content-addressed store, hash-verified

1559 i = [0]
1560
1561 def _cb(pkt):
1562 # type: (Packet) -> None
1563 print("%5d\t%s" % (i[0], pkt.summary()))
1564 i[0] += 1
1565
1566 sniff(prn=_cb, store=False, *args, **kargs)
1567 print("\n%d packet%s captured" % (i[0], 's' if i[0] > 1 else ''))

Callers

nothing calls this directly

Calls 1

summaryMethod · 0.45

Tested by

no test coverage detected