Bidirectional tunnel synthesis and stamp cost exchange on non shared-medium interfaces

This commit is contained in:
Mark Qvist 2026-11-15 14:55:49 +01:00
parent 13b98a6bc2
commit b7a93b9b6b
No known key found for this signature in database
7 changed files with 107 additions and 24 deletions

View file

@ -999,6 +999,8 @@ class BackboneClientInterface(Interface):
self.socket.settimeout(None)
self.wants_tunnel = True
self.remote_transport = None
self.synthesis_received = False
BackboneInterface.add_client_socket(self.socket, self)
RNS.Transport.synthesize_tunnel(self)
self.online = True

View file

@ -497,6 +497,8 @@ class I2PInterfacePeer(Interface):
if not self.kiss_framing:
self.wants_tunnel = True
self.remote_transport = None
self.synthesis_received = False
RNS.Transport.synthesize_tunnel(self)
self.online = True

View file

@ -132,12 +132,19 @@ class Interface:
self.local_tunnel_id = None
self.tunnels_allowed = False
self.synthesis_received = False
self.synthesis_emitted = False
self.wants_tunnel = False
self.remote_transport = None
self.ingress_control = True
self.hop_limiter = None
self.phy_keepalive = False
self.shared_medium = False
self.remote_impl = None
self.remote_vers = None
self.remote_dst_cost = None
self.remote_pr_cost = None
self.remote_is_tn = None
self.ic_burst_active = False
self.ic_burst_activated = 0

View file

@ -256,6 +256,8 @@ class TCPClientInterface(Interface):
if not self.kiss_framing:
self.wants_tunnel = True
self.remote_transport = None
self.synthesis_received = False
RNS.Transport.synthesize_tunnel(self)
self.online = True