From 0b0a3313c566f199585ed13f3305564d0415ec28 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 1 May 2024 15:49:48 +0200 Subject: [PATCH] Multicast address type modifications --- RNS/Interfaces/AutoInterface.py | 2 ++ docs/source/interfaces.rst | 17 ++++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/RNS/Interfaces/AutoInterface.py b/RNS/Interfaces/AutoInterface.py index 3bd034b..0c86184 100644 --- a/RNS/Interfaces/AutoInterface.py +++ b/RNS/Interfaces/AutoInterface.py @@ -137,6 +137,8 @@ class AutoInterface(Interface): self.multicast_address_type = AutoInterface.MULTICAST_TEMPORARY_ADDRESS_TYPE elif str(multicast_address_type).lower() == "permanent": self.multicast_address_type = AutoInterface.MULTICAST_PERMANENT_ADDRESS_TYPE + else: + self.multicast_address_type = AutoInterface.MULTICAST_TEMPORARY_ADDRESS_TYPE if data_port == None: self.data_port = AutoInterface.DEFAULT_DATA_PORT diff --git a/docs/source/interfaces.rst b/docs/source/interfaces.rst index 38f52d4..e07f5bd 100644 --- a/docs/source/interfaces.rst +++ b/docs/source/interfaces.rst @@ -33,9 +33,20 @@ system, which should be enabled by default in almost all OSes. .. code:: - # This example demonstrates a TCP server interface. - # It will listen for incoming connections on the - # specified IP address and port number. + # This example demonstrates a bare-minimum setup + # of an Auto Interface. It will allow communica- + # tion with all other reachable devices on all + # usable physical ethernet-based devices that + # are available on the system. + + [[Default Interface]] + type = AutoInterface + interface_enabled = True + + # This example demonstrates an more specifically + # configured Auto Interface, that only uses spe- + # cific physical interfaces, and has a number of + # other configuration options set. [[Default Interface]] type = AutoInterface