Lines Matching refs:state

85  * the TCP finite state machine. This function is called by the IP layer (in
171 LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED);
172 LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT);
173 LWIP_ASSERT("tcp_input: active pcb->state != LISTEN", pcb->state != LISTEN);
196 in the TIME-WAIT state. */
198 LWIP_ASSERT("tcp_input: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT);
275 tcp_debug_print_state(pcb->state);
386 tcp_debug_print_state(pcb->state);
450 /* In the LISTEN state, we check for incoming SYN segments,
483 npcb->state = SYN_RCVD;
550 /* - eighth, check the FIN bit: Remain in the TIME-WAIT state.
564 * Implements the TCP state machine. Called by tcp_input. In some
586 if (pcb->state == SYN_SENT) {
599 LWIP_ASSERT("tcp_input: pcb->state != CLOSED", pcb->state != CLOSED);
612 if ((flags & TCP_SYN) && (pcb->state != SYN_SENT && pcb->state != SYN_RCVD)) {
626 /* Do different things depending on the TCP state. */
627 switch (pcb->state) {
641 pcb->state = ESTABLISHED;
678 /* send a RST to bring the other side in a non-synchronized state. */
688 pcb->state = ESTABLISHED;
718 pcb->state = CLOSE_WAIT;
736 pcb->state = CLOSE_WAIT;
748 pcb->state = TIME_WAIT;
752 pcb->state = CLOSING;
755 pcb->state = FIN_WAIT_2;
765 pcb->state = TIME_WAIT;
775 pcb->state = TIME_WAIT;
783 /* bugfix #21699: don't set pcb->state to CLOSED here or we risk leaking segments */
864 LWIP_ASSERT("tcp_receive: wrong state", pcb->state >= ESTABLISHED);
985 if (pcb->state >= ESTABLISHED) {
1120 if ((tcplen > 0) && (pcb->state < CLOSE_WAIT)) {
1353 if (pcb->state == ESTABLISHED) { /* force passive close or we can move to active close */
1354 pcb->state = CLOSE_WAIT;