From 1a7d20a8d62950c05a109005ecf150c5ab3c0559 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 14 Jan 2025 19:02:15 +0100 Subject: [PATCH] Cleanup --- Examples/Ratchets.py | 3 --- RNS/Link.py | 1 - RNS/Transport.py | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Examples/Ratchets.py b/Examples/Ratchets.py index 9c71c90..e62ac17 100644 --- a/Examples/Ratchets.py +++ b/Examples/Ratchets.py @@ -25,9 +25,6 @@ def server(configpath): # We must first initialise Reticulum reticulum = RNS.Reticulum(configpath) - - # TODO: Remove - RNS.loglevel = RNS.LOG_DEBUG # Randomly create a new identity for our echo server server_identity = RNS.Identity() diff --git a/RNS/Link.py b/RNS/Link.py index a96300e..8afcd07 100644 --- a/RNS/Link.py +++ b/RNS/Link.py @@ -461,7 +461,6 @@ 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): try: diff --git a/RNS/Transport.py b/RNS/Transport.py index 3f804d4..9e15088 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1802,7 +1802,7 @@ class Transport: nh_mtu = packet.receiving_interface.HW_MTU else: nh_mtu = RNS.Reticulum.MTU - RNS.log(f"Final hop path MTU of {path_mtu}, possible MTU is {nh_mtu}", RNS.LOG_DEBUG) # TODO: Remove debug + if path_mtu: if packet.receiving_interface.HW_MTU == None: RNS.log(f"No next-hop HW MTU, disabling link MTU upgrade", RNS.LOG_DEBUG) # TODO: Remove debug