]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: add server support for KoD RATE
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 2 Apr 2024 13:25:51 +0000 (15:25 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 2 Apr 2024 13:39:12 +0000 (15:39 +0200)
commit24d28cd679ab3962e8b29d620708ca8bc416d4c2
treef03a6ee4af9a1e6ea30451cff96b42b24a64d367
parentaac898343ee52e77f97fe73f0cda4d73ec926814
ntp: add server support for KoD RATE

Add "kod" option to the ratelimit directive to respond with the KoD
RATE code to randomly selected requests exceeding the configured limit.
This complements the client support of KoD RATE. It's disabled by
default.

There can be only one KoD code in one response. If both NTS NAK and RATE
codes are triggered, drop the response. The KoD RATE code can be set in
an NTS-authenticated response.
clientlog.c
conf.c
conf.h
doc/chrony.conf.adoc
ntp_core.c
test/simulation/135-ratelimit