!268 删除m核lwip未使用的头文件和宏

Merge pull request !268 from 刘建东/master
This commit is contained in:
openharmony_ci 2021-08-17 07:26:21 +00:00 committed by Gitee
commit ada151d89b
2 changed files with 3 additions and 11 deletions

View File

@ -44,7 +44,6 @@
#include <stdio.h>
#include <stdlib.h>
#include "securec.h"
#include "memory_pool.h"
#ifdef htons
#define LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS
@ -112,15 +111,8 @@ extern void HilogPrintf(const char *fmt, ...);
"Assertion \"%s\" errno %d line %d in %s\n", \
x, errno, __LINE__, __FILE__);} while (0)
#define mem_clib_malloc LWIP_MEM_ALLOC
#define mem_clib_free LWIP_MEM_FREE
#define mem_clib_calloc LWIP_MEM_CALLOC
#define init_waitqueue_head(...)
#define poll_check_waiters(...)
#define IOCTL_CMD_CASE_HANDLER()
#define DNS_SERVER_ADDRESS(ipaddr) (ip4_addr_set_u32(ipaddr, ipaddr_addr("114.114.114.114")))
#define DNS_SERVER_ADDRESS_SECONDARY(ipaddr) (ip4_addr_set_u32(ipaddr, ipaddr_addr("114.114.115.115")))
#endif /* _LWIP_PORTING_CC_H_ */

View File

@ -216,7 +216,7 @@
#define LWIP_ENABLE_NET_CAPABILITY 1
#define LWIP_ENABLE_CAP_NET_BROADCAST 0
// Options for GT
// Options for liteos_m
#undef LWIP_NETIF_PROMISC
#define LWIP_NETIF_PROMISC 0
@ -224,7 +224,7 @@
#define LWIP_ICMP 0
#undef LWIP_DHCP
#define LWIP_DHCP 0
#define LWIP_DHCP 1
#undef LWIP_IGMP
#define LWIP_IGMP 0
@ -251,7 +251,7 @@
#define MEMP_NUM_ARP_QUEUE 4
#undef MEMP_NUM_NETBUF
#define MEMP_NUM_NETBUF 12
#define MEMP_NUM_NETBUF 32
#undef MEMP_NUM_NETCONN
#define MEMP_NUM_NETCONN 32