Applied alias.diff by Ian Wienand on lwip-devel on February 4th 2004.

Using union to make explicit either tcp_listen_pcb or tcp_pcb.
This commit is contained in:
likewise
2004-02-06 23:48:40 +00:00
parent 035fcce9de
commit 1ed40e7983
4 changed files with 19 additions and 13 deletions

View File

@@ -457,7 +457,11 @@ void tcp_timer_needed(void);
#endif
/* The TCP PCB lists. */
extern struct tcp_pcb_listen *tcp_listen_pcbs; /* List of all TCP PCBs in LISTEN state. */
union tcp_listen_pcbs_t { /* List of all TCP PCBs in LISTEN state. */
struct tcp_pcb_listen *listen_pcbs;
struct tcp_pcb *pcbs;
};
extern union tcp_listen_pcbs_t tcp_listen_pcbs;
extern struct tcp_pcb *tcp_active_pcbs; /* List of all TCP PCBs that are in a
state in which they accept or send
data. */