提交 355b926e 编写于 作者: B bernard

[lwIP] fix lwip 2.0.0 compiling issue.

上级 c53389e4
...@@ -693,9 +693,7 @@ RTM_EXPORT(lwip_ioctl); ...@@ -693,9 +693,7 @@ RTM_EXPORT(lwip_ioctl);
RTM_EXPORT(lwip_fcntl); RTM_EXPORT(lwip_fcntl);
RTM_EXPORT(lwip_htons); RTM_EXPORT(lwip_htons);
RTM_EXPORT(lwip_ntohs);
RTM_EXPORT(lwip_htonl); RTM_EXPORT(lwip_htonl);
RTM_EXPORT(lwip_ntohl);
#if LWIP_DNS #if LWIP_DNS
#include <lwip/netdb.h> #include <lwip/netdb.h>
......
...@@ -581,7 +581,6 @@ void list_tcps(void) ...@@ -581,7 +581,6 @@ void list_tcps(void)
extern struct tcp_pcb *tcp_active_pcbs; extern struct tcp_pcb *tcp_active_pcbs;
extern union tcp_listen_pcbs_t tcp_listen_pcbs; extern union tcp_listen_pcbs_t tcp_listen_pcbs;
extern struct tcp_pcb *tcp_tw_pcbs; extern struct tcp_pcb *tcp_tw_pcbs;
extern const char *tcp_state_str[];
rt_enter_critical(); rt_enter_critical();
rt_kprintf("Active PCB states:\n"); rt_kprintf("Active PCB states:\n");
...@@ -598,7 +597,7 @@ void list_tcps(void) ...@@ -598,7 +597,7 @@ void list_tcps(void)
pcb->remote_port, pcb->remote_port,
pcb->snd_nxt, pcb->snd_nxt,
pcb->rcv_nxt); pcb->rcv_nxt);
rt_kprintf("state: %s\n", tcp_state_str[pcb->state]); rt_kprintf("state: %s\n", tcp_debug_state_str(pcb->state));
} }
rt_kprintf("Listen PCB states:\n"); rt_kprintf("Listen PCB states:\n");
...@@ -606,7 +605,7 @@ void list_tcps(void) ...@@ -606,7 +605,7 @@ void list_tcps(void)
for(pcb = (struct tcp_pcb *)tcp_listen_pcbs.pcbs; pcb != NULL; pcb = pcb->next) for(pcb = (struct tcp_pcb *)tcp_listen_pcbs.pcbs; pcb != NULL; pcb = pcb->next)
{ {
rt_kprintf("#%d local port %d ", num++, pcb->local_port); rt_kprintf("#%d local port %d ", num++, pcb->local_port);
rt_kprintf("state: %s\n", tcp_state_str[pcb->state]); rt_kprintf("state: %s\n", tcp_debug_state_str(pcb->state));
} }
rt_kprintf("TIME-WAIT PCB states:\n"); rt_kprintf("TIME-WAIT PCB states:\n");
...@@ -624,7 +623,7 @@ void list_tcps(void) ...@@ -624,7 +623,7 @@ void list_tcps(void)
pcb->remote_port, pcb->remote_port,
pcb->snd_nxt, pcb->snd_nxt,
pcb->rcv_nxt); pcb->rcv_nxt);
rt_kprintf("state: %s\n", tcp_state_str[pcb->state]); rt_kprintf("state: %s\n", tcp_debug_state_str(pcb->state));
} }
rt_exit_critical(); rt_exit_critical();
} }
......
...@@ -37,6 +37,11 @@ ...@@ -37,6 +37,11 @@
#include <netif/etharp.h> #include <netif/etharp.h>
#include <netif/ethernetif.h> #include <netif/ethernetif.h>
#include <lwip/ip.h> #include <lwip/ip.h>
#include <lwip/init.h>
#if (LWIP_VERSION) >= 0x02000000U
#include <lwip/prot/dhcp.h>
#endif
/* DHCP server option */ /* DHCP server option */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册