Rename DHCP_DOES_ACD_CHECK ->LWIP_DHCP_DOES_ACD_CHECK

This commit is contained in:
Dirk Ziegelmeier
2018-10-05 11:04:48 +02:00
parent a3cdf3c4cc
commit ff44049baf
5 changed files with 19 additions and 19 deletions

View File

@@ -45,9 +45,9 @@
#include "lwip/netif.h"
#include "lwip/udp.h"
#if DHCP_DOES_ACD_CHECK
#if LWIP_DHCP_DOES_ACD_CHECK
#include "lwip/acd.h"
#endif /* DHCP_DOES_ACD_CHECK */
#endif /* LWIP_DHCP_DOES_ACD_CHECK */
#ifdef __cplusplus
extern "C" {
@@ -100,10 +100,10 @@ struct dhcp
ip4_addr_t offered_si_addr;
char boot_file_name[DHCP_BOOT_FILE_LEN];
#endif /* LWIP_DHCP_BOOTPFILE */
#if DHCP_DOES_ACD_CHECK
#if LWIP_DHCP_DOES_ACD_CHECK
/** acd struct */
struct acd acd;
#endif /* DHCP_DOES_ACD_CHECK */
#endif /* LWIP_DHCP_DOES_ACD_CHECK */
};

View File

@@ -924,10 +924,10 @@
#endif /* !LWIP_IPV4 */
/**
* DHCP_DOES_ACD_CHECK==1: Perform address conflict detection on the dhcp address.
* LWIP_DHCP_DOES_ACD_CHECK==1: Perform address conflict detection on the dhcp address.
*/
#if !defined DHCP_DOES_ACD_CHECK || defined __DOXYGEN__
#define DHCP_DOES_ACD_CHECK 1
#if !defined LWIP_DHCP_DOES_ACD_CHECK || defined __DOXYGEN__
#define LWIP_DHCP_DOES_ACD_CHECK 1
#endif
/**
@@ -1023,7 +1023,7 @@
* LWIP_ACD==1: Enable ACD module. ACD module is needed when using AUTOIP.
*/
#if !defined LWIP_ACD || defined __DOXYGEN__
#define LWIP_ACD (LWIP_AUTOIP || DHCP_DOES_ACD_CHECK)
#define LWIP_ACD (LWIP_AUTOIP || LWIP_DHCP_DOES_ACD_CHECK)
#endif
#if !LWIP_IPV4
/* disable ACD when IPv4 is disabled */