.\" Copyright (c) 2018-2022, OARC, Inc. .\" All rights reserved. .\" .\" This file is part of dnsjit. .\" .\" dnsjit is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" dnsjit is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with dnsjit. If not, see . .\" .TH dnsjit.output.pcap 3 "1.2.3" "dnsjit" .SH NAME dnsjit.output.pcap \- Output to a PCAP using libpcap .SH SYNOPSIS local output = require("dnsjit.output.pcap").new() output:open("file.pcap") ... output:close() .SH DESCRIPTION Output module for writing .I dnsjit.core.object.pcap objects to a PCAP, .SS Functions .TP .BR Pcap.new "()" Create a new Pcap output. .TP .BR Pcap:log "()" Return the Log object to control logging of this instance or module. .TP .BR Pcap:open "(file, linktype, snaplen)" Open the PCAP .I file to write to using the .I linktype and .IR snaplen . Uses .B pcap_dump_open() so you can pass "-" to it to open stdout, see it's man-page for more information. Returns 0 on success. .TP .BR Pcap:close "()" Close the PCAP. .TP .BR Pcap:have_errors "()" Return true if the underlying .I FILE* indicates that there's been an error. .TP .BR Pcap:receive "()" Return the C functions and context for receiving objects. .SH SEE ALSO .BR dnsjit.input.pcap (3) .SH AUTHORS and CONTRIBUTORS Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC) .LP Maintained by DNS-OARC .LP .RS .I https://www.dns-oarc.net/ .RE .LP .SH BUGS For issues and feature requests please use: .LP .RS \fIhttps://github.com/DNS-OARC/dnsjit/issues\fP .RE .LP For question and help please use: .LP .RS \fIadmin@dns-oarc.net\fP .RE .LP