mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 17:13:32 +08:00
Merge pull request #4243 from zhouji92/master
[fix] 修复使用lwip 2.1.2作为协议栈,并使能dhcp server选项时,编译报错问题。
This commit is contained in:
commit
c4d16d706e
@ -2,7 +2,7 @@ from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
|
||||
if GetDepend('RT_USING_LWIP202') or GetDepend('RT_USING_LWIP210') :
|
||||
if GetDepend('RT_USING_LWIP202') or GetDepend('RT_USING_LWIP212') :
|
||||
src = ['dhcp_server_raw.c']
|
||||
else:
|
||||
src = ['dhcp_server.c']
|
||||
|
@ -80,6 +80,22 @@
|
||||
#define LWIP_DHCP 1
|
||||
#include <lwip/dhcp.h>
|
||||
|
||||
#ifndef DHCP_CLIENT_PORT
|
||||
#define DHCP_CLIENT_PORT 68
|
||||
#endif
|
||||
|
||||
#ifndef DHCP_SERVER_PORT
|
||||
#define DHCP_SERVER_PORT 67
|
||||
#endif
|
||||
|
||||
#ifndef ETHADDR32_COPY
|
||||
#define ETHADDR32_COPY(dst, src) SMEMCPY(dst, src, ETH_HWADDR_LEN)
|
||||
#endif
|
||||
|
||||
#ifndef ETHADDR16_COPY
|
||||
#define ETHADDR16_COPY(dst, src) SMEMCPY(dst, src, ETH_HWADDR_LEN)
|
||||
#endif
|
||||
|
||||
/* buffer size for receive DHCP packet */
|
||||
#define BUFSZ 1024
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user