Added per-interface destination and PR cost configuration

This commit is contained in:
Mark Qvist 2026-10-30 12:19:49 +01:00
parent 2e6963c388
commit 9b46438233
No known key found for this signature in database
10 changed files with 75 additions and 6 deletions

View file

@ -174,6 +174,9 @@ class Interface:
self._dp_ec_zero_ticks = 0
self._dp_ec_last_drain = time.time()
self._destination_cost = None
self._pr_cost = None
self.reports_phy_stats = False
self.r_stat_rssi = None
self.r_stat_snr = None
@ -343,6 +346,16 @@ class Interface:
self.hop_limiter_hits += 1
return None
@property
def destination_cost(self):
if not self._destination_cost == None: return self._destination_cost
else: return RNS.Transport.DESTINATION_COST
@property
def pr_cost(self):
if not self._pr_cost == None: return self._pr_cost
else: return RNS.Transport.PR_COST
@property
def ic_burst_count(self): return None