]> git.bitcoin.ninja Git - flowspec-xdp/commit
Prefer existing src buckets even if others timed out
authorMatt Corallo <git@bluematt.me>
Sat, 15 Jun 2024 21:32:45 +0000 (21:32 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 15 Jun 2024 21:32:45 +0000 (21:32 +0000)
commit3f743cd21690bb0452deff2e8eff52ed02df7cef
tree22e2edf0fc7f9116286b9300141971a22ab8780b
parent22574c7a573751bfe6c1a1006a17727577b150ea
Prefer existing src buckets even if others timed out

If we have some timed-out buckets in a source-based ratelimit,
we'll use those even if a later bucket is already storing the
counter for the source of the current packet. This is obviously
busted, so don't do that.
xdp.c