DOKK / manpages / debian 12 / dnsjit / dnsjit.input.pcap.3.en
dnsjit.input.pcap(3) Library Functions Manual dnsjit.input.pcap(3)

dnsjit.input.pcap - Read input from an interface or PCAP file using libpcap


local input = require("dnsjit.input.pcap").new()
input:open_offline("file.pcap")
input:receiver(filter_or_output)
input:run()

Input module for reading packets from interfaces and PCAP files.

Create a new Pcap input.
Return the Log object to control logging of this instance or module.
Set the receiver to pass objects to.
Return the C functions and context for producing objects.
Open a live packet capture on source, which is an interface name or "any" (Linux) / "all" (BSD). Must be activated before use.
Activate a live packet capture, see pcap_activate(3pcap) for more information and possible return values.
Open a PCAP file for processing, see pcap_open_offline(3pcap) for more information. Returns 0 on success.
Process packets from a live capture or savefile until cnt packets are processed, see pcap_loop(3pcap) for more information and possible return values.
Process packets from a live capture or savefile until cnt packets are processed, see pcap_dispatch(3pcap) for more information and possible return values.
Return the number of packets seen.
Return the linktype of the opened PCAP.
Return the snaplen of the opened PCAP.

dnsjit.output.pcap(3)

Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)

Maintained by DNS-OARC

https://www.dns-oarc.net/

For issues and feature requests please use:

https://github.com/DNS-OARC/dnsjit/issues

For question and help please use:

admin@dns-oarc.net
1.2.3 dnsjit