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

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

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

revision 1.10 by jani, Tue Dec 17 09:41:16 2002 UTC revision 1.11 by jani, Wed Dec 18 12:49:02 2002 UTC
# Line 102  tcp_input(struct pbuf *p, struct netif * Line 102  tcp_input(struct pbuf *p, struct netif *
102    
103        
104  #ifdef TCP_STATS  #ifdef TCP_STATS
105    ++stats.tcp.recv;    ++lwip_stats.tcp.recv;
106  #endif /* TCP_STATS */  #endif /* TCP_STATS */
107    
108    iphdr = p->payload;    iphdr = p->payload;
# Line 129  tcp_input(struct pbuf *p, struct netif * Line 129  tcp_input(struct pbuf *p, struct netif *
129      tcp_debug_print(tcphdr);      tcp_debug_print(tcphdr);
130  #endif /* TCP_DEBUG */  #endif /* TCP_DEBUG */
131  #ifdef TCP_STATS  #ifdef TCP_STATS
132      ++stats.tcp.chkerr;      ++lwip_stats.tcp.chkerr;
133      ++stats.tcp.drop;      ++lwip_stats.tcp.drop;
134  #endif /* TCP_STATS */  #endif /* TCP_STATS */
135    
136      pbuf_free(p);      pbuf_free(p);
# Line 316  tcp_input(struct pbuf *p, struct netif * Line 316  tcp_input(struct pbuf *p, struct netif *
316      DEBUGF(TCP_RST_DEBUG, ("tcp_input: no PCB match found, resetting.\n"));      DEBUGF(TCP_RST_DEBUG, ("tcp_input: no PCB match found, resetting.\n"));
317      if(!(TCPH_FLAGS(tcphdr) & TCP_RST)) {      if(!(TCPH_FLAGS(tcphdr) & TCP_RST)) {
318  #ifdef TCP_STATS  #ifdef TCP_STATS
319        ++stats.tcp.proterr;        ++lwip_stats.tcp.proterr;
320        ++stats.tcp.drop;        ++lwip_stats.tcp.drop;
321  #endif /* TCP_STATS */        #endif /* TCP_STATS */      
322        tcp_rst(ackno, seqno + tcplen,        tcp_rst(ackno, seqno + tcplen,
323                &(iphdr->dest), &(iphdr->src),                &(iphdr->dest), &(iphdr->src),
# Line 360  tcp_listen_input(struct tcp_pcb_listen * Line 360  tcp_listen_input(struct tcp_pcb_listen *
360      if(npcb == NULL) {      if(npcb == NULL) {
361        DEBUGF(TCP_DEBUG, ("tcp_listen_input: could not allocate PCB\n"));        DEBUGF(TCP_DEBUG, ("tcp_listen_input: could not allocate PCB\n"));
362  #ifdef TCP_STATS  #ifdef TCP_STATS
363        ++stats.tcp.memerr;        ++lwip_stats.tcp.memerr;
364  #endif /* TCP_STATS */  #endif /* TCP_STATS */
365        return ERR_MEM;        return ERR_MEM;
366      }      }

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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