Verify router ACK accounting across retries and epoch resets

This commit is contained in:
evgeny committed 2026-10-14 18:34:33 +02:00
1 parent 6a1e7a90dd
commit 0bbd4d6c34
2 files changed
+47

No files matched your search

+8
View File
@@ -6,6 +6,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define ROUTE_TX_SAMPLE_US 50000u
#define ROUTE_TX_WINDOW_US 500000u
#define ROUTE_TX_BUCKETS 11
@@ -22,4 +26,8 @@ int route_tx_meter_ack(struct route_tx_meter *meter, uint64_t now_us, uint64_t b
/* Неполное окно после reset возвращает valid=0; текущая незавершённая ячейка исключается. */
int route_tx_meter_window(const struct route_tx_meter *meter, uint64_t now_us, struct route_tx_window *out);
#ifdef __cplusplus
}
#endif
#endif