dnsjit.output.pcap(3)
π dnsjit.output.pcap β output to a PCAP using libpcap π
okay bestie, so this is a page from the Library Functions Manual (section 3, the library functions girlies π), and it's all about writing your dnsjit.core.object.pcap objects out to a PCAP file. libpcap is doing the heavy lifting here, and honestly? she ate. π
β¨ SYNOPSIS β¨
local output = require("dnsjit.output.pcap").new()
output:open("file.pcap")
...
output:close()
look at that. so clean. so demure. π¦
πΈ DESCRIPTION πΈ
So basically this is the output module for writing dnsjit.core.object.pcap objects to a PCAP. That's it, that's the vibe. π«Ά
π Functions π
Pcap.new()β bestie this literally just creates a brand new Pcap output for you. new instance, new me. β¨Pcap:log()β hands you back theLogobject so you can control the logging for this specific instance or module. you want receipts? here's your receipts. πPcap:open(file, linktype, snaplen)β opens up the PCAP file you want to write to, using thelinktypeandsnaplenyou pass in. it's built onpcap_dump_open(), so you can pass"-"as the file and it'll open stdout instead β go check that function's own man-page if you want the full tea, iykyk. π returns0on success.Pcap:close()β closes the PCAP. bye boo πPcap:have_errors()β returnstrueif the underlyingFILE*is telling you something went wrong. like a vibe check but for file errors. πPcap:receive()β returns the C functions and context you need for receiving objects. the whole toolkit, no cap. π₯
π SEE ALSO π
dnsjit.input.pcap(3)β the other half of the story, go read her too π
π AUTHORS and CONTRIBUTORS π
Shoutout to the icons who built this: Jerry LundstrΓΆm (DNS-OARC), TomΓ‘Ε‘ KΕΓΕΎek (CZ.NIC), and Petr Ε paΔek (ISC). absolute main character energy from all three. β
Maintained by DNS-OARC
https://www.dns-oarc.net/
π BUGS π
Found a bug? Got a feature request? Don't be shy, tell them:
https://codeberg.org/DNS-OARC/dnsjit/issues
Questions? Need help? Just wanna chat?
admin@dns-oarc.net
and that's the whole page, bestie!! this was dnsjit version 1.5.1, living in the dnsjit.output.pcap(3) era β mwah, go write some pcaps, you're gonna slay πβ¨πΈπ¦
π¦ where this page comes from
- epel 10: dnsjit 1.5.1-2.el10_2 Β· GPL-3.0-or-later
- epel 9: dnsjit 1.5.1-2.el9 Β· GPL-3.0-or-later
- fedora 43: dnsjit 1.5.1-2.fc43 Β· GPL-3.0-or-later
- fedora 43: dnsjit 1.5.1-2.fc43 Β· GPL-3.0-or-later
- fedora 44: dnsjit 1.5.1-2.fc44 Β· GPL-3.0-or-later
- fedora 44: dnsjit 1.5.1-2.fc44 Β· GPL-3.0-or-later
- ubuntu resolute: dnsjit 1.5.1-2 Β· GPL-3.0-or-later
- ubuntu stonking: dnsjit-dev 1.5.1-6 Β· GPL-3.0-or-later
- Copyright (c) 2018-2026 OARC, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms