DOKK / manpages / debian 12 / dnsjit / dnsjit.filter.copy.3.en
dnsjit.filter.copy(3) Library Functions Manual dnsjit.filter.copy(3)

dnsjit.filter.copy - Creates a copy of an object chain with selected object types.


local copy = require("dnsjit.filter.copy").new()
local object = require("dnsjit.core.objects")
copy:obj_type(object.PAYLOAD)
copy:obj_type(object.IP6)
channel:receiver(copy)

Filter to create a copy of the object chain with selected object types. The user is responsible for manually freeing the created object chain.

Create a new Copy filter.
Return the Log object to control logging of this instance or module.
Set the object type to be copied. Can be called multiple times to copy multiple object types from the object chain.
Return the C functions and context for receiving objects.
Set the receiver to pass objects to.

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

Maintained by DNS-OARC

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

For issues and feature requests please use:

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

For question and help please use:

admin@dns-oarc.net
1.2.3 dnsjit