Diagnostics

This commit is contained in:
Mark Qvist 2026-11-12 20:17:34 +01:00
parent f96cef7ed9
commit 9b6b724b08
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View file

@ -1775,6 +1775,7 @@ class Reticulum:
ifstats["name"] = str(interface)
ifstats["short_name"] = str(interface.name)
ifstats["tunnel_id"] = interface.tunnel_id
ifstats["hash"] = interface.get_hash()
ifstats["type"] = str(type(interface).__name__)
ifstats["mtu"] = interface.HW_MTU

View file

@ -551,6 +551,9 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json=
if "bitrate" in ifstat and ifstat["bitrate"] != None:
print(f" Rate : {speed_str(ifstat['bitrate'])}, MTU {ifstat['mtu']}")
# if "tunnel_id" in ifstat: # TODO: Add switch
# print(f" Tunnel ID : {RNS.prettyhexrep(ifstat['tunnel_id']) if ifstat['tunnel_id'] else 'None'}")
if "noise_floor" in ifstat:
if not "interference" in ifstat: nstr = ""
else: