uip_slen = 0;\r
\r
/* Check if the connection is in a state in which we simply wait\r
- for the connection to time out. If so, we increase the\r
- connection's timer and remove the connection if it times\r
- out. */\r
+ for the connection to time out. If so, we increase the\r
+ connection's timer and remove the connection if it times\r
+ out. */\r
if( uip_connr->tcpstateflags == UIP_TIME_WAIT || uip_connr->tcpstateflags == UIP_FIN_WAIT_2 )\r
{\r
++( uip_connr->timer );\r
else if( uip_connr->tcpstateflags != UIP_CLOSED )\r
{\r
/* If the connection has outstanding data, we increase the\r
- connection's timer and see if it has reached the RTO value\r
- in which case we retransmit. */\r
- if( uip_outstanding(uip_connr) )\r
+ connection's timer and see if it has reached the RTO value\r
+ in which case we retransmit. */\r
+ if( uip_outstanding(uip_connr) )\r
{\r
if( uip_connr->timer-- == 0 )\r
{\r
uip_connr->tcpstateflags = UIP_CLOSED;\r
\r
/* We call UIP_APPCALL() with uip_flags set to\r
- UIP_TIMEDOUT to inform the application that the\r
- connection has timed out. */\r
- uip_flags = UIP_TIMEDOUT;\r
+ UIP_TIMEDOUT to inform the application that the\r
+ connection has timed out. */\r
+ uip_flags = UIP_TIMEDOUT;\r
UIP_APPCALL();\r
\r
/* We also send a reset packet to the remote host. */\r
++( uip_connr->nrtx );\r
\r
/* Ok, so we need to retransmit. We do this differently\r
- depending on which state we are in. In ESTABLISHED, we\r
- call upon the application so that it may prepare the\r
- data for the retransmit. In SYN_RCVD, we resend the\r
- SYNACK that we sent earlier and in LAST_ACK we have to\r
- retransmit our FINACK. */\r
- UIP_STAT( ++uip_stat.tcp.rexmit );\r
+ depending on which state we are in. In ESTABLISHED, we\r
+ call upon the application so that it may prepare the\r
+ data for the retransmit. In SYN_RCVD, we resend the\r
+ SYNACK that we sent earlier and in LAST_ACK we have to\r
+ retransmit our FINACK. */\r
+ UIP_STAT( ++uip_stat.tcp.rexmit );\r
switch( uip_connr->tcpstateflags & UIP_TS_MASK )\r
{\r
case UIP_SYN_RCVD:\r
/* In the SYN_RCVD state, we should retransmit our\r
- SYNACK. */\r
+ SYNACK. */\r
goto tcp_send_synack;\r
\r
#if UIP_ACTIVE_OPEN\r
\r
case UIP_ESTABLISHED:\r
/* In the ESTABLISHED state, we call upon the application\r
- to do the actual retransmit after which we jump into\r
- the code for sending out the packet (the apprexmit\r
- label). */\r
+ to do the actual retransmit after which we jump into\r
+ the code for sending out the packet (the apprexmit\r
+ label). */\r
uip_flags = UIP_REXMIT;\r
UIP_APPCALL();\r
goto apprexmit;\r
else if( (uip_connr->tcpstateflags & UIP_TS_MASK) == UIP_ESTABLISHED )\r
{\r
/* If there was no need for a retransmission, we poll the\r
- application for new data. */\r
+ application for new data. */\r
uip_flags = UIP_POLL;\r
UIP_APPCALL();\r
goto appsend;\r