Meant for TMP easier development - you need to symlink daemon/rrl/knot
to knot-dns source, as the KRU source files will be taken from there.
subdir('lua')
+subdir('rrl')
kresd = executable(
--- /dev/null
+knot/src/knot/modules/rrl/kru-avx2.c
\ No newline at end of file
--- /dev/null
+knot/src/knot/modules/rrl/kru-decay.inc.c
\ No newline at end of file
--- /dev/null
+knot/src/knot/modules/rrl/kru-generic.c
\ No newline at end of file
--- /dev/null
+knot/src/knot/modules/rrl/kru.h
\ No newline at end of file
--- /dev/null
+knot/src/knot/modules/rrl/kru.inc.c
\ No newline at end of file
--- /dev/null
+# SPDX-License-Identifier: GPL-3.0-or-later
+# rate limiting code
+
+kresd_src += files([
+ 'kru-generic.c',
+ 'kru-avx2.c',
+ '../../contrib/openbsd/siphash.c',
+])
+
+kresd_deps += [
+ # https://mesonbuild.com/howtox.html#add-math-library-lm-portably
+ (meson.get_compiler('c').find_library('m', required : false))
+]