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

dnsjit.filter.timing - Filter to pass objects to the next receiver based on timing between packets


local filter = require("dnsjit.filter.timing").new()
...
filter:receiver(...)

Filter to manipulate processing so it simulates the actual timing when packets arrived or to delay processing.

Create a new Timing filter.
Return the Log object to control logging of this instance or module.
Set the timing mode to keep the timing between packets.
Set the timing mode to increase the timing between packets by the given number of nanoseconds.
Set the timing mode to reduce the timing between packets by the given number of nanoseconds.
Set the timing mode to multiply the timing between packets by the given factor (float/double).
Set the timing mode to a fixed number of nanoseconds between packets.
Set the timing mode to simulate the timing of packets in realtime. Packets are processed in batches of given size (default 128) before adjusting time. Aborts if real time drifts ahead more than given number of seconds (default 1.0s).
Return the C functions and context for receiving objects.
Set the receiver to pass objects to.
Return the C functions and context for producing objects.
Set the producer to get objects from.

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