Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-07-13 13:31:58 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-07-13 13:31:58 +0300
commitddba608f63a0664a3bb39c258bfc43b8b6ac2958 (patch)
tree4bcacb0b874232bd5f53cc0abe8071edf2956e43 /src/Networking/LwipEthernet
parentc6f0aeb4fc1586712b81b094317b8a9eec9e8ede (diff)
Multicast bug fixes
Diffstat (limited to 'src/Networking/LwipEthernet')
-rw-r--r--src/Networking/LwipEthernet/Lwip/lwipopts.h2
-rw-r--r--src/Networking/LwipEthernet/LwipEthernetInterface.cpp9
2 files changed, 9 insertions, 2 deletions
diff --git a/src/Networking/LwipEthernet/Lwip/lwipopts.h b/src/Networking/LwipEthernet/Lwip/lwipopts.h
index dc747e95..ec45aee7 100644
--- a/src/Networking/LwipEthernet/Lwip/lwipopts.h
+++ b/src/Networking/LwipEthernet/Lwip/lwipopts.h
@@ -267,7 +267,7 @@ extern uint32_t random32(void) noexcept;
#define LWIP_NETIF_HOSTNAME 1
/** The maximum number of services per netif */
-#define MDNS_MAX_SERVICES 4
+#define MDNS_MAX_SERVICES 5 // increased from 4 to 5 to include _duet_discovery service
/*
diff --git a/src/Networking/LwipEthernet/LwipEthernetInterface.cpp b/src/Networking/LwipEthernet/LwipEthernetInterface.cpp
index 58c9da14..027c4daa 100644
--- a/src/Networking/LwipEthernet/LwipEthernetInterface.cpp
+++ b/src/Networking/LwipEthernet/LwipEthernetInterface.cpp
@@ -50,7 +50,14 @@ extern "C"
extern struct netif gs_net_if;
}
-const char * const MdnsServiceStrings[NumProtocols] = { "_http", "_ftp", "_telnet" };
+const char * const MdnsServiceStrings[NumProtocols] =
+{
+ "_http", "_ftp", "_telnet",
+#if SUPPORT_MULTICAST_DISCOVERY
+ "_duet_discovery"
+#endif
+};
+
const char * const MdnsTxtRecords[2] = { "product=" FIRMWARE_NAME, "version=" VERSION };
const unsigned int MdnsTtl = 10 * 60; // same value as on the Duet 0.6/0.8.5