Lines Matching refs:state
102 /** List of all TCP PCBs in LISTEN state */
104 /** List of all TCP PCBs that are in a state in which
107 /** List of all TCP PCBs in TIME-WAIT state */
161 * a closing state), the connection is closed, and put in a closing state.
174 if (rst_on_unacked_data && ((pcb->state == ESTABLISHED) || (pcb->state == CLOSE_WAIT))) {
187 if (pcb->state == ESTABLISHED) {
189 pcb->state = TIME_WAIT;
199 switch (pcb->state) {
201 /* Closing a pcb in the CLOSED state might seem erroneous,
202 * however, it is in this state once allocated and as yet unused
205 * or for a pcb that has been used and then entered the CLOSED state
232 pcb->state = FIN_WAIT_1;
239 pcb->state = FIN_WAIT_1;
246 pcb->state = LAST_ACK;
276 * a closing state), the connection is closed, and put in a closing state.
289 tcp_debug_print_state(pcb->state);
292 if (pcb->state != LISTEN) {
315 if (pcb->state == LISTEN) {
332 /* This can't happen twice since if it succeeds, the pcb's state is changed.
334 switch (pcb->state) {
341 into CLOSED state, where the PCB is deallocated. */
365 /* pcb->state LISTEN not allowed here */
367 pcb->state != LISTEN);
369 are in an active state, call the receive function associated with
371 if (pcb->state == TIME_WAIT) {
429 * ERR_VAL if bind failed because the PCB is not in a valid state
439 LWIP_ERROR("tcp_bind: can only bind in state CLOSED", pcb->state == CLOSED, return ERR_VAL);
443 we have to check the pcbs in TIME-WAIT state, also.
505 * Set the state of the connection to be LISTEN, which means that it
524 LWIP_ERROR("tcp_listen: pcb already connected", pcb->state == CLOSED, return NULL);
527 if (pcb->state == LISTEN) {
551 lpcb->state = LISTEN;
574 * Update the state that tracks the available window space to advertise.
615 /* pcb->state LISTEN not allowed here */
617 pcb->state != LISTEN);
691 LWIP_ERROR("tcp_connect: can only connect from state CLOSED", pcb->state == CLOSED, return ERR_ISCONN);
767 /* SYN segment was enqueued, changed the pcbs state now */
768 pcb->state = SYN_SENT;
810 LWIP_ASSERT("tcp_slowtmr: active pcb->state != CLOSED\n", pcb->state != CLOSED);
811 LWIP_ASSERT("tcp_slowtmr: active pcb->state != LISTEN\n", pcb->state != LISTEN);
812 LWIP_ASSERT("tcp_slowtmr: active pcb->state != TIME-WAIT\n", pcb->state != TIME_WAIT);
823 if (pcb->state == SYN_SENT && pcb->nrtx == TCP_SYNMAXRTX) {
856 if (pcb->state != SYN_SENT) {
881 if (pcb->state == FIN_WAIT_2) {
896 ((pcb->state == ESTABLISHED) ||
897 (pcb->state == CLOSE_WAIT))) {
930 if (pcb->state == SYN_RCVD) {
939 if (pcb->state == LAST_ACK) {
1006 LWIP_ASSERT("tcp_slowtmr: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT);
1246 * Kills the oldest connection that is in TIME_WAIT state.
1275 * @return a new tcp_pcb that initially is in state CLOSED
1360 * @return a new tcp_pcb that initially is in state CLOSED
1394 LWIP_ASSERT("invalid socket state for recv callback", pcb->state != LISTEN);
1408 LWIP_ASSERT("invalid socket state for sent callback", pcb->state != LISTEN);
1423 LWIP_ASSERT("invalid socket state for err callback", pcb->state != LISTEN);
1454 LWIP_ASSERT("invalid socket state for poll", pcb->state != LISTEN);
1472 if (pcb->state != CLOSED &&
1473 pcb->state != TIME_WAIT &&
1474 pcb->state != LISTEN) {
1479 if (pcb->state == SYN_RCVD) {
1482 LWIP_ASSERT("tcp_pcb_purge: pcb->state == SYN_RCVD but tcp_listen_pcbs is NULL",
1545 if (pcb->state != TIME_WAIT &&
1546 pcb->state != LISTEN &&
1552 if (pcb->state != LISTEN) {
1560 pcb->state = CLOSED;
1648 * Print a tcp state for debugging purposes.
1705 tcp_debug_print_state(pcb->state);
1712 tcp_debug_print_state(pcb->state);
1719 tcp_debug_print_state(pcb->state);
1724 * Check state consistency of the tcp_pcb lists.
1731 LWIP_ASSERT("tcp_pcbs_sane: active pcb->state != CLOSED", pcb->state != CLOSED);
1732 LWIP_ASSERT("tcp_pcbs_sane: active pcb->state != LISTEN", pcb->state != LISTEN);
1733 LWIP_ASSERT("tcp_pcbs_sane: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT);
1736 LWIP_ASSERT("tcp_pcbs_sane: tw pcb->state == TIME-WAIT", pcb->state == TIME_WAIT);