Commit graph

1157 commits

Author SHA1 Message Date
David Vašek
aacd827f71 tests/atomic: lower the iteration counts with spinlock-emulated atomics 2024-12-12 20:21:50 +01:00
Jan Hák
e53c99d3cb tests: fix usage of new atomic in code -- test_atomic.c 2024-12-11 17:36:20 +01:00
Daniel Salzman
3efd85c935 tests: don't build tests for atomic and spinlock if disabled daemon
As the tests depend on dthreads and liburcu.

fixes #946
2024-12-07 16:45:37 +01:00
Daniel Salzman
c811d6c0c0 tests: stabilize modules/test_rrl 2024-10-11 07:39:44 +02:00
Jan Hák
6055b7c9f6 acl: add protocol option to the configuration 2024-09-27 12:41:36 +02:00
Jan Hák
aaff152cfd yparser: add support for link-local IPv6 addresses 2024-09-16 12:46:46 +02:00
Jan Doskočil
fad9ce9f34 yparser: new time unit specifiers
w = week
M = month
y = year
2024-08-24 15:17:53 +02:00
Daniel Salzman
05f48507ea rrl: add R (rrl_query()) and W (rrl_update()) support 2024-08-19 16:01:09 +02:00
Jan Doskočil
b3e2a5916f
tests: longer lasting RRSIGs to prevent test breakage by expiration 2024-08-19 13:42:24 +02:00
Jan Doskočil
dc9fe7869d
test_journal: correct potential for truncation in snprintf
fmt string is "i%d" - theoretically if the argument was eg INT_MIN this
could've been 13 chars long, which is why gcc threw a warning
2024-08-16 11:09:30 +02:00
Daniel Salzman
9b42ca0904 rrl: update KRU 2024-08-12 08:01:55 +02:00
Daniel Salzman
934914bf38 module: add protocol processing callback 2024-08-12 08:01:47 +02:00
Daniel Salzman
3187da5791 tests/confdb: fix UBSAN 'applying non-zero offset 1 to null pointer' 2024-07-25 14:25:15 +02:00
Jan Hák
cbae4db7c4 libdnssec: move sample keys from tests to libdnssec 2024-07-19 13:19:19 +02:00
Jan Hák
632d672800 keymgr: add keystore-test command 2024-07-19 13:18:56 +02:00
Libor Peltan
36aff680e4 Merge branch 'NSEC_nonauth_err_code' into 'master'
superfluous NSEC handling

See merge request knot/knot-dns!1686
2024-07-19 09:55:15 +02:00
Libor Peltan
3e4831f8a7 xdp-tcp: ignore SYN+ACK pkts in knotd (only for kxdpgun) 2024-07-11 18:30:29 +02:00
Jan Doskočil
24288b60a6
dnssec: superfluous NSEC semantic test case 2024-07-11 16:46:56 +02:00
Daniel Salzman
af767a6d24 libzscanner: add WALLET rrtype 2024-07-11 12:01:35 +02:00
Daniel Salzman
2e52cfd3b3 libzscanner: add support for 'dohpath' and 'ohttp' SVCB parameters 2024-07-11 09:21:46 +02:00
David Vašek
8e1a5a3e46 contrib/files: return an error code from remove_path() 2024-06-14 15:30:35 +02:00
David Vašek
9b0725be7b contrib/files: in remove_path(), allow remove of directory contents only 2024-06-14 15:30:35 +02:00
Daniel Salzman
7f6692bab5 yparser: fix empty list parsing 2024-05-16 16:57:54 +02:00
Daniel Salzman
12456aede5 tests: extend test set for yparser 2024-05-16 16:57:54 +02:00
David Vašek
80e28bccda tests/atomic: silence false positive Coverity warning (missing lock) 2024-05-06 14:34:51 +02:00
David Vašek
3f2f89ade1 tests/atomic: workaround for a GCC optimization bug on i386
With -O1 and higher, the test of atomic_exchange_explicit() doesn't work right for 64-bit variables
on i386 (and possibly other 32-bit architectures). It seems that atomic_exchange_explicit() doesn't
exchange 64-bit values properly when it's used in a loop and GCC compiler optimization is turned
on. As a workaround, we are testing ATOMIC_XCHG on a pointer size of the given architecture.

It isn't sure yet, if atomic_exchange_explicit() is safe for 64-bit variables with GCC on i386 when
not used in a loop. Therefore, ATOMIC_XCHG should not be used on general 64-bit variables until
this GCC bug is solved.

Clang and gcc -O0 don't seem to be affected by this issue.
2024-05-06 14:34:51 +02:00
David Vašek
b323b0c5d9 tests/atomic: finish the thread early once an invalid value occurs 2024-05-06 14:34:51 +02:00
David Vašek
c994bbe175 contrib/atomic: add an atomic exchange macro 2024-04-30 14:18:43 +02:00
Libor Peltan
dcd77f181c xdp-tcp: send RSTs on all open conns when shutdown 2024-04-22 08:34:11 +02:00
Daniel Salzman
1e9fbcb8d1 conf: add control.backlog configuration option 2024-04-19 14:21:21 +02:00
Libor Peltan
172ac861c1 xdp-tcp: simplify knot_tcp_recv() 2024-04-11 15:43:04 +02:00
Daniel Salzman
f6c1a557d7 conf: add options for XDP preferred busy polling 2024-04-04 10:05:39 +02:00
Daniel Salzman
7d4b53a231 conf: add xdp.ring-size configuration option 2024-04-03 21:40:57 +02:00
Daniel Salzman
b2cba0a723 semchecks: extend SOA presence checks 2024-03-27 08:40:33 +01:00
Lukáš Ondráček
1a868b999e rrl: minor fixes 2024-03-25 15:02:55 +01:00
Daniel Salzman
d57ee54806 tests/rrl: mute missing snprintf() check (Coverity) 2024-03-25 08:08:01 +01:00
Daniel Salzman
c9f8e6cef7 tests/rrl: make the test run faster 2024-03-22 13:54:34 +01:00
Daniel Salzman
bbfa417351 mod-rrl: code cleanup 2024-03-22 13:54:34 +01:00
Lukáš Ondráček
8c42f4fe40 rrl: clean mostly comments 2024-03-22 13:54:34 +01:00
Lukáš Ondráček
23f5172359 rrl: modify limits of prefixes, fix extended tests 2024-03-22 13:54:34 +01:00
Lukáš Ondráček
ba21a31ab8 rrl: logging sampled limited queries
Same content as 6ed6834d8, after some squashing.
2024-03-22 13:54:34 +01:00
Lukáš Ondráček
2141956b82 rrl: randomized rounding of counters, configurable instant-limit
WIP: script for decay analysis

WIP: unoptimized 32-bit version

WIP: 16-bit, rand. fractional incr. 32-bit prices

WIP: configurable decay

WIP: user-configurable instant-limit, coefficients of prefixes

WIP: update user documentation
2024-03-22 13:54:34 +01:00
Lukáš Ondráček
7d4f8a7b6f rrl: configurable rate-limit and table-size, update documentation
WIP: add configurable rate-limit and table-size

WIP: split KRU.create into get_size and initialize
2024-03-22 13:54:34 +01:00
Lukáš Ondráček
627777d643 rrl: multi-prefix queries
WIP: batch queries

WIP: multi-prefix queries with unit tests, unoptimized

WIP: optimize multi-prefix queries

WIP: nits

- avoid -Warray-bounds for array[-1]
  I thought it was more readable that way, but warnings would be annoying.
- use `hash_t` more
- drop old FIXME: I believe it was just confused symbols, not code

WIP: deduplicate the choice of SipHash parameters
2024-03-22 13:54:34 +01:00
Lukáš Ondráček
7f488eaa17 rrl: unit tests, benchmarks, minor fixes
WIP: update tests for RRL module

WIP: testing both generic, avx2 impl. if possible

WIP: improving atomicity inside RRL module

WIP: parallel time benchmark

WIP tests: revive test_decay32()

The includes are getting a bit hacky, but I guess it's OK for tests.

WIP: use memory_order_relaxed
2024-03-22 13:54:34 +01:00
Daniel Salzman
ef311e1baa zscanner: fix parsing of backslashes in SVCB alpn values 2024-03-05 14:21:25 +01:00
Libor Peltan
4647ac1f5d dnssec/validation: fix validation of two CSKs 2024-02-27 16:40:13 +01:00
Daniel Salzman
66ab02cc13 dnssec/validation: add limit on non-matching keys with a duplicate keytag 2024-02-27 13:04:04 +01:00
Jan Hák
2d03ae8593 dbus: ad support for libdbus as an alternative to systemd d-bus 2024-02-20 16:46:18 +01:00
Daniel Salzman
5bbbe26b43 tests: add test for knot_rrset_size(_estimate)() 2024-02-07 12:05:16 +01:00