From 8e7dc8b776fc40070dbb40ec0c57fc2590a65ac3 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 18 Nov 2026 11:25:28 +0100 Subject: [PATCH] Added medium reliability flag to interfaces --- RNS/Interfaces/BackboneInterface.py | 2 ++ RNS/Interfaces/I2PInterface.py | 2 ++ RNS/Interfaces/Interface.py | 1 + RNS/Interfaces/TCPInterface.py | 2 ++ 4 files changed, 7 insertions(+) diff --git a/RNS/Interfaces/BackboneInterface.py b/RNS/Interfaces/BackboneInterface.py index 8cca0954..15ef6b85 100644 --- a/RNS/Interfaces/BackboneInterface.py +++ b/RNS/Interfaces/BackboneInterface.py @@ -156,6 +156,7 @@ class BackboneInterface(Interface): self.spawned_interfaces = [] self.supports_discovery = True self.tunnels_allowed = True + self.lossless_medium = True self.client_limit = client_limit or self.CLIENT_LIMIT self.block_fast_flapping = flap_block self.fast_flap_threshold = flap_threshold @@ -893,6 +894,7 @@ class BackboneClientInterface(Interface): self.owner = owner self.online = False self.detached = False + self.lossless_medium = True self.prefer_ipv6 = prefer_ipv6 self.i2p_tunneled = i2p_tunneled self.mode = RNS.Interfaces.Interface.Interface.MODE_FULL diff --git a/RNS/Interfaces/I2PInterface.py b/RNS/Interfaces/I2PInterface.py index 42e4ae66..3fabd0e8 100644 --- a/RNS/Interfaces/I2PInterface.py +++ b/RNS/Interfaces/I2PInterface.py @@ -357,6 +357,7 @@ class I2PInterfacePeer(Interface): self.i2p_tunneled = True self.i2p_dest = None self.i2p_tunnel_ready = False + self.lossless_medium = True self.mode = RNS.Interfaces.Interface.Interface.MODE_FULL self.bitrate = I2PInterface.BITRATE_GUESS self.last_read = 0 @@ -775,6 +776,7 @@ class I2PInterface(Interface): self.ifac_netname = ifac_netname self.ifac_netkey = ifac_netkey self.supports_discovery = True + self.lossless_medium = True self.online = False diff --git a/RNS/Interfaces/Interface.py b/RNS/Interfaces/Interface.py index 6038fd72..54d08d29 100755 --- a/RNS/Interfaces/Interface.py +++ b/RNS/Interfaces/Interface.py @@ -139,6 +139,7 @@ class Interface: self.hop_limiter = None self.phy_keepalive = False self.shared_medium = False + self.lossless_medium = False self.remote_impl = None self.remote_vers = None diff --git a/RNS/Interfaces/TCPInterface.py b/RNS/Interfaces/TCPInterface.py index 863e5136..6c5a4362 100644 --- a/RNS/Interfaces/TCPInterface.py +++ b/RNS/Interfaces/TCPInterface.py @@ -127,6 +127,7 @@ class TCPClientInterface(Interface): self.online = False self.detached = False self.tunnels_allowed = True + self.lossless_medium = True self.kiss_framing = kiss_framing self.i2p_tunneled = i2p_tunneled self.mode = RNS.Interfaces.Interface.Interface.MODE_FULL @@ -546,6 +547,7 @@ class TCPServerInterface(Interface): self.name = name self.detached = False self.tunnels_allowed = True + self.lossless_medium = True self.i2p_tunneled = i2p_tunneled self.mode = RNS.Interfaces.Interface.Interface.MODE_FULL