Scroll to navigation

dnsjit.input.pcap(3) Library Functions Manual dnsjit.input.pcap(3)

NAME

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

SYNOPSIS


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

DESCRIPTION

Input module for reading packets from interfaces and PCAP files.

Functions

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.

SEE ALSO

dnsjit.output.pcap(3)

AUTHORS and CONTRIBUTORS

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

Maintained by DNS-OARC

BUGS

For issues and feature requests please use:

For question and help please use:

admin@dns-oarc.net
1.3.0 dnsjit