Home
last modified time | relevance | path

Searched refs:oldstate (Results 1 – 3 of 3) sorted by relevance

/net/dccp/
Dproto.c80 const int oldstate = sk->sk_state; in dccp_set_state() local
83 dccp_state_name(oldstate), dccp_state_name(state)); in dccp_set_state()
84 WARN_ON(state == oldstate); in dccp_set_state()
88 if (oldstate != DCCP_OPEN) in dccp_set_state()
91 if (oldstate == DCCP_PARTOPEN) in dccp_set_state()
96 if (oldstate == DCCP_OPEN || oldstate == DCCP_ACTIVE_CLOSEREQ || in dccp_set_state()
97 oldstate == DCCP_CLOSING) in dccp_set_state()
106 if (oldstate == DCCP_OPEN) in dccp_set_state()
/net/dccp/ccids/
Dccid3.c67 enum ccid3_hc_tx_states oldstate = hc->tx_state; in ccid3_hc_tx_set_state() local
70 dccp_role(sk), sk, ccid3_tx_state_name(oldstate), in ccid3_hc_tx_set_state()
72 WARN_ON(state == oldstate); in ccid3_hc_tx_set_state()
587 enum ccid3_hc_rx_states oldstate = hc->rx_state; in ccid3_hc_rx_set_state() local
590 dccp_role(sk), sk, ccid3_rx_state_name(oldstate), in ccid3_hc_rx_set_state()
592 WARN_ON(state == oldstate); in ccid3_hc_rx_set_state()
/net/ipv4/
Dtcp.c1942 int oldstate = sk->sk_state; in tcp_set_state() local
1946 if (oldstate != TCP_ESTABLISHED) in tcp_set_state()
1951 if (oldstate == TCP_CLOSE_WAIT || oldstate == TCP_ESTABLISHED) in tcp_set_state()
1960 if (oldstate == TCP_ESTABLISHED) in tcp_set_state()
1970 SOCK_DEBUG(sk, "TCP sk=%p, State %s -> %s\n", sk, statename[oldstate], statename[state]); in tcp_set_state()