mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-01-14 08:59:47 -05:00
Correct link MDU calculation
This commit is contained in:
parent
bde33e7d84
commit
ceccf3153b
@ -459,6 +459,7 @@ class Link:
|
||||
|
||||
def update_mdu(self):
|
||||
self.mdu = self.mtu - RNS.Reticulum.HEADER_MAXSIZE - RNS.Reticulum.IFAC_MIN_SIZE
|
||||
self.mdu = math.floor((self.mtu-RNS.Reticulum.IFAC_MIN_SIZE-RNS.Reticulum.HEADER_MINSIZE-RNS.Identity.TOKEN_OVERHEAD)/RNS.Identity.AES128_BLOCKSIZE)*RNS.Identity.AES128_BLOCKSIZE - 1
|
||||
RNS.log(f"Link MDU updated to {self.mdu}", RNS.LOG_DEBUG) # TODO: Remove debug
|
||||
|
||||
def rtt_packet(self, packet):
|
||||
|
Loading…
Reference in New Issue
Block a user