dnsjit.core.object.pcap(3)
π dnsjit.core.object.pcap(3) β Library Functions Manual π
okay bestie, pull up a chair, we're talking about dnsjit.core.object.pcap from the dnsjit manual, section 3 (library functions, iykyk). this one is literally just a lil container, but she's important. π«Ά
β¨ NAME β¨
dnsjit.core.object.pcap β a container holding one single packet that got found inside a PCAP. that's her. that's the whole job. π
πΈ DESCRIPTION πΈ
so like. this object is the container of a PCAP packet, and she's carrying info from two places at once: stuff that came from the PCAP itself, and stuff from the pcap_pkthdr object that gets received for every single packet in the PCAP. two sources, one iconic little struct. main character energy fr fr. π
π Attributes π
these are her fields, her little personality traits:
snaplenβ max length of the saved portion of each packet.linktypeβ the data link type for the PCAP.tsβ time stamp of this packet.caplenβ length of the portion that's actually present.lenβ length of this packet (off wire, so the real full thing).bytesβ a pointer to the packet.is_swappedβ tells you if the byte order of the PCAP is different than the host's. this one is used in, for example, the Layer filter, so it can correctly parse null objects β because those get stored in the capturer's host byte order. so yeah, do not sleep onis_swapped, she matters. π§
π¦ Functions π¦
the methods, the moves, the choreography:
Pcap:type()β returns the textual type of the object.Pcap:prev()β returns the previous object.Pcap:cast()β casts the object to the underlining object module and returns it.Pcap:uncast()β casts the object to the generic object module and returns it.Pcap:copy()β makes a copy of the object and returns it.Pcap:free()β frees the object. β οΈ should only be used on copies or on something that was otherwise allocated. do not be out here freeing things you don't own, bestie, that's a one-way ticket to chaos city. π
π SEE ALSO π
go read these next, they're all in the family:
dnsjit.core.object(3)dnsjit.input.pcap(3)dnsjit.input.fpcap(3)dnsjit.input.mmpcap(3)dnsjit.filter.layer(3)dnsjit.output.pcap(3)
π AUTHORS and CONTRIBUTORS π
the legends who made this happen:
- Jerry LundstrΓΆm (DNS-OARC)
- TomΓ‘Ε‘ KΕΓΕΎek (CZ.NIC)
- Petr Ε paΔek (ISC)
maintained by DNS-OARC π
https://www.dns-oarc.net/
π BUGS π
found something cursed? want a feature? don't suffer in silence, go file it:
https://codeberg.org/DNS-OARC/dnsjit/issues
got questions or need a human? slide into the inbox:
admin@dns-oarc.net
and that's the whole page, bestie. this one's from dnsjit version 1.5.1, and it's the dnsjit.core.object.pcap(3) page β no cap. now go parse some packets responsibly. β¨ππ¦π
π¦ 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