logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

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/

Bugs

       For issues and feature requests please use:

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

       For question and help please use:

              admin@dns-oarc.net

dnsjit                                                1.5.0                                dnsjit.filter.copy(3)

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.

   FunctionsCopy.new()
              Create a new Copy filter.

       Copy:log()
              Return the Log object to control logging of this instance or module.

       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.

       Copy:receive()
              Return the C functions and context for receiving objects.

       Copy:receiver(o)
              Set the receiver to pass objects to.

Name

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

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)

See Also