dnsjit.core.object(3)
π dnsjit.core.object β the manual page, but make it cute π
okay bestie, this is dnsjit.core.object, from the dnsjit library functions manual (section 3, for all you nerds keeping score π). it's the base object, the blueprint, the main character that every other object in the chain is secretly built on top of. let's get into it β¨
πΈ NAME πΈ
dnsjit.core.object β the base object that gets passed between receiver and receivee. it's the vibe that travels down the pipeline, no cap π¦
β¨ SYNOPSIS β¨
require("dnsjit.core.object")
print(object:type())
packet = object:cast()
like, that's it. that's the whole mood. you require it, you ask it what it is, you cast it into whatever it actually is π
π DESCRIPTION π
so this is the base object, right? and the way that it works is: it can be casted to other objects that describe a DNS message, how it was captured, or how it was generated. it's giving "shape-shifter but make it structured" π§
and here's the iconic part β objects can be chained together. for example, a DNS message is created ontop of a packet. so it's like a little stack of objects, each one sitting on the one below it, and you can walk the chain to find what you need. obsessed ππ
π Attributes π
obj_typeβ the enum of the object type. basically its little name tag telling you what kind of object it is πobj_prevβ the previous object in the object chain. so you can go back up the stack and see where you came from, iykyk π«
π¦ Functions π¦
Object:type()β return the textual type of the object. it tells you what it is, in words πΈObject:prev()β return the previous object. walk backwards in the chain, bestie π«ΆObject:cast()β cast the object to the underlining object module and return it. yes, the original says "underlining", and we respect the original, so it stays πObject:cast_to(obj_type)β cast the object to the specified object module and return it. returnsnilif the object chain doesn't contained the specified object type (again, that's the original wording β we keep it fr fr). so like, if you're asking for a type that isn't in your chain, you get nothing back. rude, but fair πObject:uncast()β cast the object to the generic object module and return it. back to basics, back to the base object π«Object:copy()β make a copy of the object and return it. a lil clone, a twin, a duplicate β¨Object:free()β free the object. should only be used on copies or otherwise allocated. okay this one matters β do NOT go freeing objects you didn't create, that's how you get chaos π
π SEE ALSO π
the whole friend group, the entire squad, every single one of these cuties:
dnsjit.core.object.pcap(3)dnsjit.core.object.ether(3)dnsjit.core.object.null(3)dnsjit.core.object.loop(3)dnsjit.core.object.linuxsll(3)dnsjit.core.object.linuxsll2(3)dnsjit.core.object.ieee802(3)dnsjit.core.object.gre(3)dnsjit.core.object.ip(3)dnsjit.core.object.ip6(3)dnsjit.core.object.icmp(3)dnsjit.core.object.icmp6(3)dnsjit.core.object.udp(3)dnsjit.core.object.tcp(3)dnsjit.core.object.payload(3)dnsjit.core.object.dns(3)
π AUTHORS and CONTRIBUTORS π
the icons who made this happen, we stan:
- Jerry LundstrΓΆm (DNS-OARC)
- TomΓ‘Ε‘ KΕΓΕΎek (CZ.NIC)
- Petr Ε paΔek (ISC)
Maintained by DNS-OARC π
https://www.dns-oarc.net/
π BUGS π
got a problem? found a bug? want a feature? don't suffer in silence bestie, go tell them:
for issues and feature requests, please use:
https://codeberg.org/DNS-OARC/dnsjit/issues
for questions and help, please use:
admin@dns-oarc.net
ngl, the base object is lowkey the most important one here β everything else is just a glow-up of this π
and that's a wrap, bestie π this was dnsjit.core.object(3), from dnsjit version 1.5.1. go forth, cast responsibly, and never free() something you don't own. mwah πβ¨
π¦ 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