From ebef2da7a88d865de7da2149f4049269603e7a4d Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 9 Jul 2022 15:46:19 +0200 Subject: [PATCH] Fixed incorrect allocation size in resource advertisements after switching to 128-bit address space --- RNS/Resource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RNS/Resource.py b/RNS/Resource.py index c29e66a..ac52761 100644 --- a/RNS/Resource.py +++ b/RNS/Resource.py @@ -53,7 +53,7 @@ class Resource: WINDOW_MAX_SLOW = 10 # The maximum window size for transfers on fast links - WINDOW_MAX_FAST = 76 + WINDOW_MAX_FAST = 75 # For calculating maps and guard segments, this # must be set to the global maximum window. @@ -944,7 +944,7 @@ class Resource: class ResourceAdvertisement: - OVERHEAD = 128 + OVERHEAD = 134 HASHMAP_MAX_LEN = math.floor((RNS.Link.MDU-OVERHEAD)/Resource.MAPHASH_LEN) COLLISION_GUARD_SIZE = 2*Resource.WINDOW_MAX+HASHMAP_MAX_LEN