dnsjit.output.pcap(3)

πŸ“¦
version 1.5.1 Β· 5 versions
, in epel 10, epel 9, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

πŸ’– 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 the Log object 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 the linktype and snaplen you pass in. it's built on pcap_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. πŸ‘‘ returns 0 on success.
  • Pcap:close() β€” closes the PCAP. bye boo πŸ‘‹
  • Pcap:have_errors() β€” returns true if the underlying FILE* 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 πŸ’œ


πŸ‘‘ 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 πŸ’–βœ¨πŸŒΈπŸ¦‹