mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-15 22:21:51 +00:00
mDNS: add new files to filelists + solve compile errors
ttl setting removed from example code. string.h included where needed.
This commit is contained in:
parent
201e772e15
commit
331368e3aa
@ -56,8 +56,8 @@ mdns_example_init(void)
|
||||
#if LWIP_MDNS_RESPONDER
|
||||
mdns_resp_register_name_result_cb(mdns_example_report);
|
||||
mdns_resp_init();
|
||||
mdns_resp_add_netif(netif_default, "lwip", 3600);
|
||||
mdns_resp_add_service(netif_default, "myweb", "_http", DNSSD_PROTO_TCP, 80, 3600, srv_txt, NULL);
|
||||
mdns_resp_add_netif(netif_default, "lwip");
|
||||
mdns_resp_add_service(netif_default, "myweb", "_http", DNSSD_PROTO_TCP, 80, srv_txt, NULL);
|
||||
mdns_resp_announce(netif_default);
|
||||
#endif
|
||||
}
|
||||
|
@ -199,6 +199,8 @@ set(lwipsntp_SRCS
|
||||
# MDNS responder
|
||||
set(lwipmdns_SRCS
|
||||
${LWIP_DIR}/src/apps/mdns/mdns.c
|
||||
${LWIP_DIR}/src/apps/mdns/mdns_out.c
|
||||
${LWIP_DIR}/src/apps/mdns/mdns_domain.c
|
||||
)
|
||||
|
||||
# NetBIOS name server
|
||||
|
@ -177,7 +177,9 @@ SMTPFILES=$(LWIPDIR)/apps/smtp/smtp.c
|
||||
SNTPFILES=$(LWIPDIR)/apps/sntp/sntp.c
|
||||
|
||||
# MDNSFILES: MDNS responder
|
||||
MDNSFILES=$(LWIPDIR)/apps/mdns/mdns.c
|
||||
MDNSFILES=$(LWIPDIR)/apps/mdns/mdns.c \
|
||||
$(LWIPDIR)/apps/mdns/mdns_out.c \
|
||||
$(LWIPDIR)/apps/mdns/mdns_domain.c
|
||||
|
||||
# NETBIOSNSFILES: NetBIOS name server
|
||||
NETBIOSNSFILES=$(LWIPDIR)/apps/netbiosns/netbiosns.c
|
||||
|
@ -41,6 +41,8 @@
|
||||
#include "lwip/apps/mdns_priv.h"
|
||||
#include "lwip/prot/dns.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#if LWIP_IPV6
|
||||
#include "lwip/prot/ip6.h"
|
||||
#endif
|
||||
|
@ -43,6 +43,7 @@
|
||||
#include "lwip/prot/iana.h"
|
||||
#include "lwip/udp.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#if LWIP_IPV6
|
||||
#include "lwip/prot/ip6.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user