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; |
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); |
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), |
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 |
} |
} |