From 42a627aab5e47c3f3e05460322b9c1c3f2c69214 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Wed, 27 Oct 2021 20:24:30 +0200 Subject: Increase payload size --- src/routing.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/routing.h') diff --git a/src/routing.h b/src/routing.h index a7cd8c6..f4164fe 100644 --- a/src/routing.h +++ b/src/routing.h @@ -6,6 +6,12 @@ #include #include +#define RT_IDBITS 160 +#define RT_BSIZE 8 +// The 3 here is log2(BUCKETSIZE), since the final bucket will contain all those combinations +#define RT_BBITS 3 +#define RT_SIZE (RT_IDBITS * RT_BSIZE) + struct addr { uint32_t ip; uint16_t port; -- cgit v1.2.3