[lwIP] fix lwip 2.0.0 compiling issue.
This commit is contained in:
parent
c53389e46f
commit
355b926e89
|
@ -693,9 +693,7 @@ RTM_EXPORT(lwip_ioctl);
|
|||
RTM_EXPORT(lwip_fcntl);
|
||||
|
||||
RTM_EXPORT(lwip_htons);
|
||||
RTM_EXPORT(lwip_ntohs);
|
||||
RTM_EXPORT(lwip_htonl);
|
||||
RTM_EXPORT(lwip_ntohl);
|
||||
|
||||
#if LWIP_DNS
|
||||
#include <lwip/netdb.h>
|
||||
|
|
|
@ -581,7 +581,6 @@ void list_tcps(void)
|
|||
extern struct tcp_pcb *tcp_active_pcbs;
|
||||
extern union tcp_listen_pcbs_t tcp_listen_pcbs;
|
||||
extern struct tcp_pcb *tcp_tw_pcbs;
|
||||
extern const char *tcp_state_str[];
|
||||
|
||||
rt_enter_critical();
|
||||
rt_kprintf("Active PCB states:\n");
|
||||
|
@ -598,7 +597,7 @@ void list_tcps(void)
|
|||
pcb->remote_port,
|
||||
pcb->snd_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");
|
||||
|
@ -606,7 +605,7 @@ void list_tcps(void)
|
|||
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("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");
|
||||
|
@ -624,7 +623,7 @@ void list_tcps(void)
|
|||
pcb->remote_port,
|
||||
pcb->snd_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();
|
||||
}
|
||||
|
|
|
@ -37,6 +37,11 @@
|
|||
#include <netif/etharp.h>
|
||||
#include <netif/ethernetif.h>
|
||||
#include <lwip/ip.h>
|
||||
#include <lwip/init.h>
|
||||
|
||||
#if (LWIP_VERSION) >= 0x02000000U
|
||||
#include <lwip/prot/dhcp.h>
|
||||
#endif
|
||||
|
||||
/* DHCP server option */
|
||||
|
||||
|
|
Loading…
Reference in New Issue