[DHCPD] format code by Astyle.

This commit is contained in:
aozima 2018-05-09 17:55:41 +08:00
parent 3970fa573d
commit 6a36d0c575
2 changed files with 12 additions and 12 deletions

View File

@ -41,33 +41,33 @@
#include <lwip/init.h> #include <lwip/init.h>
#if (LWIP_VERSION) >= 0x02000000U #if (LWIP_VERSION) >= 0x02000000U
#include <lwip/prot/dhcp.h> #include <lwip/prot/dhcp.h>
#endif #endif
/* DHCP server option */ /* DHCP server option */
/* allocated client ip range */ /* allocated client ip range */
#ifndef DHCPD_CLIENT_IP_MIN #ifndef DHCPD_CLIENT_IP_MIN
#define DHCPD_CLIENT_IP_MIN 2 #define DHCPD_CLIENT_IP_MIN 2
#endif #endif
#ifndef DHCPD_CLIENT_IP_MAX #ifndef DHCPD_CLIENT_IP_MAX
#define DHCPD_CLIENT_IP_MAX 254 #define DHCPD_CLIENT_IP_MAX 254
#endif #endif
/* the DHCP server address */ /* the DHCP server address */
#ifndef DHCPD_SERVER_IPADDR0 #ifndef DHCPD_SERVER_IPADDR0
#define DHCPD_SERVER_IPADDR0 192UL #define DHCPD_SERVER_IPADDR0 192UL
#define DHCPD_SERVER_IPADDR1 168UL #define DHCPD_SERVER_IPADDR1 168UL
#define DHCPD_SERVER_IPADDR2 169UL #define DHCPD_SERVER_IPADDR2 169UL
#define DHCPD_SERVER_IPADDR3 1UL #define DHCPD_SERVER_IPADDR3 1UL
#endif #endif
//#define DHCP_DEBUG_PRINTF //#define DHCP_DEBUG_PRINTF
#ifdef DHCP_DEBUG_PRINTF #ifdef DHCP_DEBUG_PRINTF
#define DEBUG_PRINTF rt_kprintf("[DHCP] "); rt_kprintf #define DEBUG_PRINTF rt_kprintf("[DHCP] "); rt_kprintf
#else #else
#define DEBUG_PRINTF(...) #define DEBUG_PRINTF(...)
#endif /* DHCP_DEBUG_PRINTF */ #endif /* DHCP_DEBUG_PRINTF */
/* we need some routines in the DHCP of lwIP */ /* we need some routines in the DHCP of lwIP */
@ -79,11 +79,11 @@
#define BUFSZ 1024 #define BUFSZ 1024
#ifndef MAC_ADDR_LEN #ifndef MAC_ADDR_LEN
#define MAC_ADDR_LEN 6 #define MAC_ADDR_LEN 6
#endif #endif
#ifndef MAC_TABLE_LEN #ifndef MAC_TABLE_LEN
#define MAC_TABLE_LEN 4 #define MAC_TABLE_LEN 4
#endif #endif
struct mac_addr_t struct mac_addr_t

View File

@ -31,7 +31,7 @@
#ifndef DHCPV4_SERVER_H__ #ifndef DHCPV4_SERVER_H__
#define DHCPV4_SERVER_H__ #define DHCPV4_SERVER_H__
void dhcpd_start(const char* netif_name); void dhcpd_start(const char *netif_name);
#endif #endif