mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-23 22:56:00 +00:00
mdns: remove duplicate acd_state_enum_t declaration
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
aa79b90d3c
commit
cd278c426d
|
@ -2595,10 +2595,7 @@ mdns_resp_announce(struct netif *netif)
|
||||||
|
|
||||||
/* Do not announce if the mdns responder is off, waiting to probe, probing or
|
/* Do not announce if the mdns responder is off, waiting to probe, probing or
|
||||||
* waiting to announce. */
|
* waiting to announce. */
|
||||||
if (!( (mdns->state == MDNS_STATE_OFF)
|
if (mdns->state >= MDNS_STATE_ANNOUNCING) {
|
||||||
|| (mdns->state == MDNS_STATE_PROBE_WAIT)
|
|
||||||
|| (mdns->state == MDNS_STATE_PROBING)
|
|
||||||
|| (mdns->state == MDNS_STATE_ANNOUNCE_WAIT))) {
|
|
||||||
/* Announce on IPv6 and IPv4 */
|
/* Announce on IPv6 and IPv4 */
|
||||||
#if LWIP_IPV6
|
#if LWIP_IPV6
|
||||||
mdns_announce(netif, &v6group);
|
mdns_announce(netif, &v6group);
|
||||||
|
|
|
@ -195,7 +195,7 @@ typedef enum {
|
||||||
MDNS_STATE_ANNOUNCING,
|
MDNS_STATE_ANNOUNCING,
|
||||||
/* Probing and announcing completed */
|
/* Probing and announcing completed */
|
||||||
MDNS_STATE_COMPLETE
|
MDNS_STATE_COMPLETE
|
||||||
} acd_state_enum_t;
|
} mdns_resp_state_enum_t;
|
||||||
|
|
||||||
/** Description of a host/netif */
|
/** Description of a host/netif */
|
||||||
struct mdns_host {
|
struct mdns_host {
|
||||||
|
@ -206,7 +206,7 @@ struct mdns_host {
|
||||||
/** Number of probes/announces sent for the current name */
|
/** Number of probes/announces sent for the current name */
|
||||||
u8_t sent_num;
|
u8_t sent_num;
|
||||||
/** State of the mdns responder */
|
/** State of the mdns responder */
|
||||||
acd_state_enum_t state;
|
mdns_resp_state_enum_t state;
|
||||||
#if LWIP_IPV4
|
#if LWIP_IPV4
|
||||||
/** delayed msg struct for IPv4 */
|
/** delayed msg struct for IPv4 */
|
||||||
struct mdns_delayed_msg ipv4;
|
struct mdns_delayed_msg ipv4;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user