From 42319a092db0d593e35f07478d1eece907f3bb88 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 24 Sep 2024 20:26:15 +0200 Subject: [PATCH] Added additional information to interface stats --- RNS/Reticulum.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/RNS/Reticulum.py b/RNS/Reticulum.py index 30e4acc..427fa99 100755 --- a/RNS/Reticulum.py +++ b/RNS/Reticulum.py @@ -1258,6 +1258,10 @@ class Reticulum: else: ifstats["clients"] = None + if hasattr(interface, "parent_interface") and interface.parent_interface != None: + ifstats["parent_interface_name"] = str(interface.parent_interface) + ifstats["parent_interface_hash"] = interface.parent_interface.get_hash() + if hasattr(interface, "i2p") and hasattr(interface, "connectable"): if interface.connectable: ifstats["i2p_connectable"] = True @@ -1323,6 +1327,9 @@ class Reticulum: ifstats["announce_queue"] = None ifstats["name"] = str(interface) + ifstats["short_name"] = str(interface.name) + ifstats["hash"] = interface.get_hash() + ifstats["type"] = str(type(interface).__name__) ifstats["rxb"] = interface.rxb ifstats["txb"] = interface.txb ifstats["incoming_announce_frequency"] = interface.incoming_announce_frequency()