]> granicus.if.org Git - esp-idf/commitdiff
lwip: support mdns queries
authorDavid Cermak <cermak@espressif.com>
Wed, 12 Jun 2019 19:27:03 +0000 (21:27 +0200)
committerbot <bot@espressif.com>
Tue, 15 Oct 2019 07:02:19 +0000 (07:02 +0000)
components/lwip/Kconfig
components/lwip/port/esp32/include/lwipopts.h

index ec6787b80f90610f83abc06d9e548fb4643d956f..6a5c9dd273512973277ba251f05f93cb6f88a9b3 100644 (file)
@@ -6,6 +6,14 @@ menu "LWIP"
         help
             The name this device will report to other devices on the network
 
+    config LWIP_DNS_SUPPORT_MDNS_QUERIES
+        bool "Enable mDNS queries in resolving host name"
+        default y
+        help
+            If this feature is enabled, standard API such as gethostbyname
+            support .local addresses by sending one shot multicast mDNS
+            query
+
     config LWIP_L2_TO_L3_COPY
         bool "Enable copy between Layer2 and Layer3 packets"
         default n
index 884ffb880a5b35a766db267a0238004a02964f67..5ad6c9cc5c4636438ab6119f1507b7791d9e27bb 100644 (file)
  */
 #define SO_REUSE                        CONFIG_LWIP_SO_REUSE
 
+
+/**
+ * LWIP_DNS_SUPPORT_MDNS_QUERIES==1: Enable mDNS queries in hostname resolution.
+ * This option is set via menuconfig.
+ */
+#define LWIP_DNS_SUPPORT_MDNS_QUERIES   CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES
 /**
  * SO_REUSE_RXTOALL==1: Pass a copy of incoming broadcast/multicast packets
  * to all local matches if SO_REUSEADDR is turned on.