.\" Copyright (c) 2018-2023, OARC, Inc. .\" All rights reserved. .\" .\" This file is part of dnsjit. .\" .\" dnsjit is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" dnsjit is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with dnsjit. If not, see . .\" .TH dnsjit.filter.copy 3 "1.3.0" "dnsjit" .SH NAME dnsjit.filter.copy \- Creates a copy of an object chain with selected object types. .SH SYNOPSIS 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) .SH DESCRIPTION Filter to create a copy of the object chain with selected object types. The user is responsible for manually freeing the created object chain. .SS Functions .TP .BR Copy.new "()" Create a new Copy filter. .TP .BR Copy:log "()" Return the Log object to control logging of this instance or module. .TP .BR Copy:obj_type "(obj_type)" Set the object type to be copied. Can be called multiple times to copy multiple object types from the object chain. .TP .BR Copy:receive "()" Return the C functions and context for receiving objects. .TP .BR Copy:receiver "(o)" Set the receiver to pass objects to. .SH AUTHORS and CONTRIBUTORS Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC) .LP Maintained by DNS-OARC .LP .RS .I https://www.dns-oarc.net/ .RE .LP .SH BUGS For issues and feature requests please use: .LP .RS \fIhttps://github.com/DNS-OARC/dnsjit/issues\fP .RE .LP For question and help please use: .LP .RS \fIadmin@dns-oarc.net\fP .RE .LP