GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
dnsjit.input.pcap(3) FreeBSD 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.4.0 dnsjit

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.