dnsjit.core.object(3)

dnsjit.core.object3

Base object that is passed between receiver and receivee

Usage

require("dnsjit.core.object")
print(object:type())
packet = object:cast()

Overview

This is the base object that can be casted to other objects that to describe a DNS message, how it was captured or generated. Objects can be chained together, for example a DNS message is created ontop of a packet.

Attributes

obj_type

The enum of the object type.

obj_prev

The previous object in the object chain.

Functions

Object:type()

Return the textual type of the object.

Object:prev()

Return the previous object.

Object:cast()

Cast the object to the underlining object module and return it.

Object:cast_to(obj_type)

Cast the object to the specified object module and return it. Returns nil if the object chain doesn't contained the specified object type.

Object:uncast()

Cast the object to the generic object module and return it.

Object:copy()

Make a copy of the object and return it.

Object:free()

Free the object, should only be used on copies or otherwise allocated.

AUTHORS and CONTRIBUTORS

Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)

Maintained by DNS-OARC

https://www.dns-oarc.net/

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Bugs

For issues and feature requests please use:

https://github.com/DNS-OARC/dnsjit/issues

For question and help please use:

From dnsjit 1.5.0-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.