diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-07-13 13:31:58 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-07-13 13:31:58 +0300 |
commit | ddba608f63a0664a3bb39c258bfc43b8b6ac2958 (patch) | |
tree | 4bcacb0b874232bd5f53cc0abe8071edf2956e43 /src/Networking/LwipEthernet | |
parent | c6f0aeb4fc1586712b81b094317b8a9eec9e8ede (diff) |
Multicast bug fixes
Diffstat (limited to 'src/Networking/LwipEthernet')
-rw-r--r-- | src/Networking/LwipEthernet/Lwip/lwipopts.h | 2 | ||||
-rw-r--r-- | src/Networking/LwipEthernet/LwipEthernetInterface.cpp | 9 |
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 |