From fb4e53f6e399a1959d208a95db861a38bd48e698 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 1 Oct 2023 11:39:24 +0200 Subject: [PATCH] Configured announce ingress limit defaults --- RNS/Interfaces/AX25KISSInterface.py | 3 +++ RNS/Interfaces/Android/KISSInterface.py | 3 +++ RNS/Interfaces/Android/RNodeInterface.py | 3 +++ RNS/Interfaces/Android/SerialInterface.py | 3 +++ RNS/Interfaces/AutoInterface.py | 5 +++++ RNS/Interfaces/KISSInterface.py | 3 +++ RNS/Interfaces/SerialInterface.py | 3 +++ 7 files changed, 23 insertions(+) diff --git a/RNS/Interfaces/AX25KISSInterface.py b/RNS/Interfaces/AX25KISSInterface.py index eea9e13..1f54c52 100644 --- a/RNS/Interfaces/AX25KISSInterface.py +++ b/RNS/Interfaces/AX25KISSInterface.py @@ -366,5 +366,8 @@ class AX25KISSInterface(Interface): RNS.log("Reconnected serial port for "+str(self)) + def should_ingress_limit(self): + return False + def __str__(self): return "AX25KISSInterface["+self.name+"]" \ No newline at end of file diff --git a/RNS/Interfaces/Android/KISSInterface.py b/RNS/Interfaces/Android/KISSInterface.py index 595e655..21d3693 100644 --- a/RNS/Interfaces/Android/KISSInterface.py +++ b/RNS/Interfaces/Android/KISSInterface.py @@ -403,5 +403,8 @@ class KISSInterface(Interface): RNS.log("Reconnected serial port for "+str(self)) + def should_ingress_limit(self): + return False + def __str__(self): return "KISSInterface["+self.name+"]" \ No newline at end of file diff --git a/RNS/Interfaces/Android/RNodeInterface.py b/RNS/Interfaces/Android/RNodeInterface.py index fcebf8e..b70a9b4 100644 --- a/RNS/Interfaces/Android/RNodeInterface.py +++ b/RNS/Interfaces/Android/RNodeInterface.py @@ -1234,6 +1234,9 @@ class RNodeInterface(Interface): self.setRadioState(KISS.RADIO_STATE_OFF) self.leave() + def should_ingress_limit(self): + return False + def __str__(self): return "RNodeInterface["+str(self.name)+"]" diff --git a/RNS/Interfaces/Android/SerialInterface.py b/RNS/Interfaces/Android/SerialInterface.py index 25a52b4..7b37518 100644 --- a/RNS/Interfaces/Android/SerialInterface.py +++ b/RNS/Interfaces/Android/SerialInterface.py @@ -254,5 +254,8 @@ class SerialInterface(Interface): RNS.log("Reconnected serial port for "+str(self)) + def should_ingress_limit(self): + return False + def __str__(self): return "SerialInterface["+self.name+"]" diff --git a/RNS/Interfaces/AutoInterface.py b/RNS/Interfaces/AutoInterface.py index 356829c..ea4511d 100644 --- a/RNS/Interfaces/AutoInterface.py +++ b/RNS/Interfaces/AutoInterface.py @@ -431,6 +431,11 @@ class AutoInterface(Interface): self.txb += len(data) + # Until per-device sub-interfacing is implemented, + # ingress limiting should be disabled on AutoInterface + def should_ingress_limit(self): + return False + def __str__(self): return "AutoInterface["+self.name+"]" diff --git a/RNS/Interfaces/KISSInterface.py b/RNS/Interfaces/KISSInterface.py index 68f4fdb..4dad095 100644 --- a/RNS/Interfaces/KISSInterface.py +++ b/RNS/Interfaces/KISSInterface.py @@ -348,5 +348,8 @@ class KISSInterface(Interface): RNS.log("Reconnected serial port for "+str(self)) + def should_ingress_limit(self): + return False + def __str__(self): return "KISSInterface["+self.name+"]" \ No newline at end of file diff --git a/RNS/Interfaces/SerialInterface.py b/RNS/Interfaces/SerialInterface.py index b787d0c..89f73c6 100755 --- a/RNS/Interfaces/SerialInterface.py +++ b/RNS/Interfaces/SerialInterface.py @@ -200,5 +200,8 @@ class SerialInterface(Interface): RNS.log("Reconnected serial port for "+str(self)) + def should_ingress_limit(self): + return False + def __str__(self): return "SerialInterface["+self.name+"]"