/[lwip]/lwip/src/core/tcp.c
ViewVC logotype

Diff of /lwip/src/core/tcp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by davidhaas, Mon Mar 31 22:09:39 2003 UTC revision 1.23 by likewise, Sun Apr 6 20:35:50 2003 UTC
# Line 312  tcp_listen(struct tcp_pcb *pcb) Line 312  tcp_listen(struct tcp_pcb *pcb)
312  {  {
313    struct tcp_pcb_listen *lpcb;    struct tcp_pcb_listen *lpcb;
314    
315      /* already listening? */
316      if(pcb->state == LISTEN) {
317        return pcb;
318      }
319    lpcb = memp_malloc(MEMP_TCP_PCB_LISTEN);    lpcb = memp_malloc(MEMP_TCP_PCB_LISTEN);
320    if(lpcb == NULL) {    if(lpcb == NULL) {
321      return NULL;      return NULL;

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26