mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 21:14:09 +00:00
Rename LWIP_MDNS to LWIP_MDNS_RESPONDER
This commit is contained in:
parent
02d51e3ac5
commit
efb7b3d5f8
@ -69,7 +69,7 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#if LWIP_MDNS
|
||||
#if LWIP_MDNS_RESPONDER
|
||||
|
||||
#if (LWIP_IPV4 && !LWIP_IGMP)
|
||||
#error "If you want to use MDNS with IPv4, you have to define LWIP_IGMP=1 in your lwipopts.h"
|
||||
@ -2024,4 +2024,4 @@ mdns_resp_add_service_txtitem(struct mdns_service *service, const char *txt, u8_
|
||||
return mdns_domain_add_label(&service->txtdata, txt, txt_len);
|
||||
}
|
||||
|
||||
#endif /* LWIP_MDNS */
|
||||
#endif /* LWIP_MDNS_RESPONDER */
|
||||
|
@ -247,10 +247,10 @@ netif_add(struct netif *netif,
|
||||
/* netif not under AutoIP control by default */
|
||||
netif->autoip = NULL;
|
||||
#endif /* LWIP_AUTOIP */
|
||||
#if LWIP_MDNS
|
||||
#if LWIP_MDNS_RESPONDER
|
||||
/* netif not using MDNS by default */
|
||||
netif->mdns = NULL;
|
||||
#endif /* LWIP_MDNS */
|
||||
#endif /* LWIP_MDNS_RESPONDER */
|
||||
#if LWIP_IPV6_AUTOCONFIG
|
||||
/* IPv6 address autoconfiguration not enabled by default */
|
||||
netif->ip6_autoconfig_enabled = 0;
|
||||
|
@ -40,7 +40,7 @@
|
||||
#include "lwip/apps/mdns_opts.h"
|
||||
#include "lwip/netif.h"
|
||||
|
||||
#if LWIP_MDNS
|
||||
#if LWIP_MDNS_RESPONDER
|
||||
|
||||
#define DNSSD_PROTO_UDP 0
|
||||
#define DNSSD_PROTO_TCP 1
|
||||
@ -78,6 +78,6 @@ u16_t mdns_readname(struct pbuf *p, u16_t offset, struct mdns_domain *domain);
|
||||
int mdns_domain_eq(struct mdns_domain *a, struct mdns_domain *b);
|
||||
u16_t mdns_compress_domain(struct pbuf *pbuf, u16_t *offset, struct mdns_domain *domain);
|
||||
|
||||
#endif /* LWIP_MDNS */
|
||||
#endif /* LWIP_MDNS_RESPONDER */
|
||||
|
||||
#endif /* LWIP_HDR_MDNS_H */
|
||||
|
@ -47,12 +47,12 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* LWIP_MDNS==1: Turn on multicast DNS module. UDP must be available for MDNS
|
||||
* LWIP_MDNS_RESPONDER==1: Turn on multicast DNS module. UDP must be available for MDNS
|
||||
* transport. IGMP is needed for IPv4 multicast.
|
||||
*/
|
||||
#ifndef LWIP_MDNS
|
||||
#define LWIP_MDNS 0
|
||||
#endif /* LWIP_MDNS */
|
||||
#ifndef LWIP_MDNS_RESPONDER
|
||||
#define LWIP_MDNS_RESPONDER 0
|
||||
#endif /* LWIP_MDNS_RESPONDER */
|
||||
|
||||
/** The maximum number of services per netif */
|
||||
#ifndef MDNS_MAX_SERVICES
|
||||
|
@ -59,7 +59,7 @@ struct autoip;
|
||||
#if LWIP_IPV6_DHCP6
|
||||
struct dhcp6;
|
||||
#endif /* LWIP_IPV6_DHCP6 */
|
||||
#if LWIP_MDNS
|
||||
#if LWIP_MDNS_RESPONDER
|
||||
struct mdns_host;
|
||||
#endif
|
||||
|
||||
@ -259,10 +259,10 @@ struct netif {
|
||||
/** the AutoIP client state information for this netif */
|
||||
struct autoip *autoip;
|
||||
#endif
|
||||
#if LWIP_MDNS
|
||||
#if LWIP_MDNS_RESPONDER
|
||||
/** Interface-specific info for multicast DNS */
|
||||
struct mdns_host *mdns;
|
||||
#endif /* LWIP_MDNS */
|
||||
#endif /* LWIP_MDNS_RESPONDER */
|
||||
#if LWIP_IPV6_AUTOCONFIG
|
||||
/** is this netif enabled for IPv6 autoconfiguration */
|
||||
u8_t ip6_autoconfig_enabled;
|
||||
|
Loading…
Reference in New Issue
Block a user