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 eea9e13f..1f54c525 100644 --- a/RNS/Interfaces/AX25KISSInterface.py +++ b/RNS/Interfaces/AX25KISSInterface.py @@ -366,5 +366,8 @@ def reconnect_port(self): 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 595e655b..21d36937 100644 --- a/RNS/Interfaces/Android/KISSInterface.py +++ b/RNS/Interfaces/Android/KISSInterface.py @@ -403,5 +403,8 @@ def reconnect_port(self): 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 fcebf8e0..b70a9b43 100644 --- a/RNS/Interfaces/Android/RNodeInterface.py +++ b/RNS/Interfaces/Android/RNodeInterface.py @@ -1234,6 +1234,9 @@ def detach(self): 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 25a52b4f..7b37518c 100644 --- a/RNS/Interfaces/Android/SerialInterface.py +++ b/RNS/Interfaces/Android/SerialInterface.py @@ -254,5 +254,8 @@ def reconnect_port(self): 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 356829c4..ea4511dd 100644 --- a/RNS/Interfaces/AutoInterface.py +++ b/RNS/Interfaces/AutoInterface.py @@ -431,6 +431,11 @@ def processOutgoing(self,data): 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 68f4fdb1..4dad095f 100644 --- a/RNS/Interfaces/KISSInterface.py +++ b/RNS/Interfaces/KISSInterface.py @@ -348,5 +348,8 @@ def reconnect_port(self): 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 b787d0c0..89f73c6f 100755 --- a/RNS/Interfaces/SerialInterface.py +++ b/RNS/Interfaces/SerialInterface.py @@ -200,5 +200,8 @@ def reconnect_port(self): RNS.log("Reconnected serial port for "+str(self)) + def should_ingress_limit(self): + return False + def __str__(self): return "SerialInterface["+self.name+"]"