Home
last modified time | relevance | path

Searched refs:sk_state (Results 1 – 25 of 186) sorted by relevance

12345678

/linux/net/smc/
H A Dsmc_close.c133 if (sk->sk_state != SMC_INIT && smc->clcsock && smc->clcsock->sk) { in smc_close_active_abort()
138 switch (sk->sk_state) { in smc_close_active_abort()
142 sk->sk_state = SMC_PEERABORTWAIT; in smc_close_active_abort()
144 if (sk->sk_state != SMC_PEERABORTWAIT) in smc_close_active_abort()
146 sk->sk_state = SMC_CLOSED; in smc_close_active_abort()
152 sk->sk_state = SMC_PEERABORTWAIT; in smc_close_active_abort()
154 if (sk->sk_state != SMC_PEERABORTWAIT) in smc_close_active_abort()
156 sk->sk_state = SMC_CLOSED; in smc_close_active_abort()
163 sk->sk_state = SMC_PEERABORTWAIT; in smc_close_active_abort()
165 if (sk->sk_state != SMC_PEERABORTWAIT) in smc_close_active_abort()
[all …]
H A Daf_smc.c281 if (sk->sk_state != SMC_CLOSED) { in __smc_release()
282 if (sk->sk_state != SMC_LISTEN && in __smc_release()
283 sk->sk_state != SMC_INIT) in __smc_release()
285 if (sk->sk_state == SMC_LISTEN) { in __smc_release()
290 sk->sk_state = SMC_CLOSED; in __smc_release()
298 if (sk->sk_state == SMC_CLOSED) { in __smc_release()
323 old_state = sk->sk_state; in smc_release()
332 if (sk->sk_state == SMC_LISTEN) in smc_release()
340 if (old_state == SMC_INIT && sk->sk_state == SMC_ACTIVE && in smc_release()
359 if (sk->sk_state != SMC_CLOSED) in smc_destruct()
[all …]
H A Dsmc_rx.c47 (sk->sk_state == SMC_CLOSED)) in smc_rx_wake_up()
122 if (sk->sk_state == SMC_CLOSED || in smc_rx_pipe_buf_release()
123 sk->sk_state == SMC_PEERFINCLOSEWAIT || in smc_rx_pipe_buf_release()
124 sk->sk_state == SMC_APPFINCLOSEWAIT) in smc_rx_pipe_buf_release()
319 if (sk->sk_state == SMC_CLOSED || sk->sk_shutdown & RCV_SHUTDOWN) in smc_rx_recv_urg()
364 if (sk->sk_state == SMC_LISTEN) in smc_rx_recvmsg()
401 sk->sk_state == SMC_CLOSED || in smc_rx_recvmsg()
410 if (sk->sk_state == SMC_CLOSED) { in smc_rx_recvmsg()
/linux/net/bluetooth/
H A Dsco.c156 BT_DBG("sock %p state %d", sk, sk->sk_state); in sco_sock_timeout()
170 BT_DBG("sock %p state %d timeout %ld", sk, sk->sk_state, timeout); in sco_sock_set_timer()
180 BT_DBG("sock %p state %d", sk, sk->sk_state); in sco_sock_clear_timer()
239 sk->sk_state = BT_CLOSED; in sco_chan_del()
359 sk->sk_state = BT_CONNECTED; in sco_connect()
361 sk->sk_state = BT_CONNECT; in sco_connect()
402 if (sk->sk_state != BT_CONNECTED) in sco_recv_frame()
418 if (sk->sk_state != BT_LISTEN) in __sco_get_sock_listen_by_addr()
438 if (sk->sk_state != BT_LISTEN) in sco_get_sock_listen()
477 parent->sk_state = BT_CLOSED; in sco_sock_cleanup_listen()
[all …]
H A Diso.c168 BT_DBG("sock %p state %d", sk, sk->sk_state); in iso_sock_timeout()
182 BT_DBG("sock %p state %d timeout %ld", sk, sk->sk_state, timeout); in iso_sock_set_timer()
192 BT_DBG("sock %p state %d", sk, sk->sk_state); in iso_sock_clear_timer()
247 sk->sk_state = BT_CLOSED; in iso_chan_del()
406 sk->sk_state = BT_CONNECTED; in iso_connect_bis()
409 sk->sk_state = BT_CONNECT; in iso_connect_bis()
411 sk->sk_state = BT_CONNECT; in iso_connect_bis()
496 sk->sk_state = BT_CONNECTED; in iso_connect_cis()
499 sk->sk_state = BT_CONNECT; in iso_connect_cis()
501 sk->sk_state = BT_CONNECT; in iso_connect_cis()
[all …]
H A Dl2cap_sock.c115 if (sk->sk_state != BT_OPEN) { in l2cap_sock_bind()
174 sk->sk_state = BT_BOUND; in l2cap_sock_bind()
282 if (sk->sk_state != BT_BOUND) { in l2cap_sock_listen()
322 sk->sk_state = BT_LISTEN; in l2cap_sock_listen()
346 if (sk->sk_state != BT_LISTEN) { in l2cap_sock_accept()
394 if (peer && sk->sk_state != BT_CONNECTED && in l2cap_sock_getname()
395 sk->sk_state != BT_CONNECT && sk->sk_state != BT_CONNECT2 && in l2cap_sock_getname()
396 sk->sk_state != BT_CONFIG) in l2cap_sock_getname()
529 if (sk->sk_state != BT_CONNECTED && in l2cap_sock_getsockopt_old()
530 !(sk->sk_state == BT_CONNECT2 && in l2cap_sock_getsockopt_old()
[all …]
H A Daf_bluetooth.c158 sk->sk_state = BT_OPEN; in bt_sock_alloc()
254 BT_DBG("sk %p state %d", sk, sk->sk_state); in bt_accept_unlink()
297 if (sk->sk_state == BT_CLOSED) { in bt_accept_dequeue()
303 if (sk->sk_state == BT_CONNECTED || !newsock || in bt_accept_dequeue()
516 if (sk->sk_state == BT_CONNECTED || in bt_accept_poll()
518 sk->sk_state == BT_CONNECT2)) in bt_accept_poll()
533 if (sk->sk_state == BT_LISTEN) in bt_sock_poll()
549 if (sk->sk_state == BT_CLOSED) in bt_sock_poll()
552 if (sk->sk_state == BT_CONNECT || in bt_sock_poll()
553 sk->sk_state == BT_CONNECT2 || in bt_sock_poll()
[all …]
/linux/net/nfc/
H A Dllcp_sock.c27 while (sk->sk_state != state) { in sock_wait_state()
84 if (sk->sk_state != LLCP_CLOSED) { in llcp_sock_bind()
126 sk->sk_state = LLCP_BOUND; in llcp_sock_bind()
171 if (sk->sk_state != LLCP_CLOSED) { in llcp_raw_sock_bind()
194 sk->sk_state = LLCP_BOUND; in llcp_raw_sock_bind()
214 sk->sk_state != LLCP_BOUND) { in llcp_sock_listen()
223 sk->sk_state = LLCP_LISTEN; in llcp_sock_listen()
248 if (sk->sk_state == LLCP_CONNECTED || in nfc_llcp_setsockopt()
249 sk->sk_state == LLCP_BOUND || in nfc_llcp_setsockopt()
250 sk->sk_state == LLCP_LISTEN) { in nfc_llcp_setsockopt()
[all …]
/linux/net/iucv/
H A Daf_iucv.c152 return (sk->sk_state == state || sk->sk_state == state2); in iucv_sock_in_state()
167 if (sk->sk_state != IUCV_CONNECTED) in iucv_below_msglim()
303 parent->sk_state = IUCV_CLOSED; in iucv_sock_cleanup_listen()
386 switch (sk->sk_state) { in iucv_sock_close()
394 sk->sk_state = IUCV_DISCONN; in iucv_sock_close()
400 sk->sk_state = IUCV_CLOSING; in iucv_sock_close()
415 sk->sk_state = IUCV_CLOSED; in iucv_sock_close()
487 sk->sk_state = IUCV_OPEN; in iucv_sock_alloc()
529 if (sk->sk_state == IUCV_CLOSED) { in iucv_accept_dequeue()
535 if (sk->sk_state == IUCV_CONNECTED || in iucv_accept_dequeue()
[all …]
/linux/net/phonet/
H A Dpep.c231 BUG_ON(sk->sk_state != TCP_ESTABLISHED); in pipe_grant_credits()
340 BUG_ON(sk->sk_state == TCP_CLOSE_WAIT); in pipe_do_rcv()
349 sk->sk_state = TCP_CLOSE_WAIT; in pipe_do_rcv()
430 if (sk->sk_state == TCP_ESTABLISHED) in pipe_do_rcv()
432 sk->sk_state = TCP_ESTABLISHED; in pipe_do_rcv()
437 sk->sk_state = TCP_SYN_RECV; in pipe_do_rcv()
583 if (sk->sk_state != TCP_SYN_SENT) in pipe_handler_do_rcv()
588 sk->sk_state = TCP_CLOSE_WAIT; in pipe_handler_do_rcv()
592 sk->sk_state = TCP_SYN_RECV; in pipe_handler_do_rcv()
594 sk->sk_state = TCP_ESTABLISHED; in pipe_handler_do_rcv()
[all …]
H A Dsocket.c179 if (sk->sk_state != TCP_CLOSE || pn_port(pn->sobject)) { in pn_socket_bind()
238 if (sk->sk_state != TCP_CLOSE) { in pn_socket_connect()
262 while (sk->sk_state == TCP_SYN_SENT) { in pn_socket_connect()
282 if ((1 << sk->sk_state) & (TCPF_SYN_RECV|TCPF_ESTABLISHED)) in pn_socket_connect()
284 else if (sk->sk_state == TCP_CLOSE_WAIT) in pn_socket_connect()
300 if (unlikely(sk->sk_state != TCP_LISTEN)) in pn_socket_accept()
338 if (sk->sk_state == TCP_CLOSE) in pn_socket_poll()
344 if (!mask && sk->sk_state == TCP_CLOSE_WAIT) in pn_socket_poll()
347 if (sk->sk_state == TCP_ESTABLISHED && in pn_socket_poll()
406 if (sk->sk_state != TCP_LISTEN) { in pn_socket_listen()
[all …]
/linux/net/bluetooth/rfcomm/
H A Dsock.c78 sk->sk_state = d->state; in rfcomm_sk_state_change()
117 if (sk->sk_state == BT_BOUND || sk->sk_state == BT_LISTEN) in __rfcomm_get_listen_sock_by_addr()
134 if (state && sk->sk_state != state) in rfcomm_get_sock_by_channel()
185 parent->sk_state = BT_CLOSED; in rfcomm_sock_cleanup_listen()
197 BT_DBG("sk %p state %d refcnt %d", sk, sk->sk_state, refcount_read(&sk->sk_refcnt)); in rfcomm_sock_kill()
209 BT_DBG("sk %p state %d socket %p", sk, sk->sk_state, sk->sk_socket); in __rfcomm_sock_close()
211 switch (sk->sk_state) { in __rfcomm_sock_close()
345 if (sk->sk_state != BT_OPEN) { in rfcomm_sock_bind()
364 sk->sk_state = BT_BOUND; in rfcomm_sock_bind()
390 if (sk->sk_state != BT_OPEN && sk->sk_state != BT_BOUND) { in rfcomm_sock_connect()
[all …]
/linux/net/rxrpc/
H A Daf_rxrpc.c147 switch (rx->sk.sk_state) { in rxrpc_bind()
164 rx->sk.sk_state = RXRPC_SERVER_BOUND; in rxrpc_bind()
167 rx->sk.sk_state = RXRPC_CLIENT_BOUND; in rxrpc_bind()
183 rx->sk.sk_state = RXRPC_SERVER_BOUND2; in rxrpc_bind()
221 switch (rx->sk.sk_state) { in rxrpc_listen()
238 rx->sk.sk_state = RXRPC_SERVER_LISTENING; in rxrpc_listen()
244 rx->sk.sk_state = RXRPC_SERVER_LISTEN_DISABLED; in rxrpc_listen()
537 switch (rx->sk.sk_state) { in rxrpc_connect()
539 rx->sk.sk_state = RXRPC_CLIENT_UNBOUND; in rxrpc_connect()
573 _enter(",{%d},,%zu", rx->sk.sk_state, len); in rxrpc_sendmsg()
[all …]
/linux/net/caif/
H A Dcaif_socket.c169 if (unlikely(cf_sk->sk.sk_state != CAIF_CONNECTED)) { in caif_sktrecv_cb()
212 cf_sk->sk.sk_state = CAIF_CONNECTED; in caif_ctrl_cb()
220 cf_sk->sk.sk_state = CAIF_DISCONNECTED; in caif_ctrl_cb()
227 cf_sk->sk.sk_state = CAIF_DISCONNECTED; in caif_ctrl_cb()
315 sk->sk_state != CAIF_CONNECTED || in caif_stream_data_wait()
361 if (sk->sk_state == CAIF_CONNECTING) in caif_stream_recvmsg()
394 if (sk->sk_state != CAIF_CONNECTED) in caif_stream_recvmsg()
484 if (cf_sk->sk.sk_state != CAIF_CONNECTED) in caif_wait_for_flow_on()
546 if (cf_sk->sk.sk_state != CAIF_CONNECTED || in caif_seqpkt_sendmsg()
761 caif_assert(sk->sk_state == CAIF_DISCONNECTED); in caif_connect()
[all …]
/linux/drivers/net/ppp/
H A Dpppoe.c307 sk->sk_state & (PPPOX_CONNECTED | PPPOX_BOUND)) { in pppoe_flush_dev()
378 if (sk->sk_state & PPPOX_BOUND) { in pppoe_rcv_core()
380 } else if (sk->sk_state & PPPOX_RELAY) { in pppoe_rcv_core()
386 if ((sk_pppox(relay_po)->sk_state & PPPOX_CONNECTED) == 0) in pppoe_rcv_core()
550 sk->sk_state = PPPOX_NONE; in pppoe_create()
587 sk->sk_state = PPPOX_DEAD; in pppoe_release()
632 if ((sk->sk_state & PPPOX_CONNECTED) && in pppoe_connect()
638 if ((sk->sk_state & PPPOX_DEAD) && in pppoe_connect()
662 sk->sk_state = PPPOX_NONE; in pppoe_connect()
704 sk->sk_state = PPPOX_CONNECTED; in pppoe_connect()
[all …]
H A Dpppox.c57 if (sk->sk_state & (PPPOX_BOUND | PPPOX_CONNECTED)) { in pppox_unbind_sock()
59 sk->sk_state = PPPOX_DEAD; in pppox_unbind_sock()
79 if (!(sk->sk_state & PPPOX_CONNECTED)) in pppox_ioctl()
88 sk->sk_state |= PPPOX_BOUND; in pppox_ioctl()
H A Dpptp.c169 if (sk_pppox(po)->sk_state & PPPOX_DEAD) in pptp_xmit()
277 if (!(sk->sk_state & PPPOX_CONNECTED)) { in pptp_rcv_core()
394 if (sk->sk_state & PPPOX_DEAD) { in pptp_bind()
399 if (sk->sk_state & PPPOX_BOUND) { in pptp_bind()
407 sk->sk_state |= PPPOX_BOUND; in pptp_bind()
436 if (sk->sk_state & PPPOX_CONNECTED) { in pptp_connect()
442 if (sk->sk_state & PPPOX_DEAD) { in pptp_connect()
475 sk->sk_state |= PPPOX_CONNECTED; in pptp_connect()
520 sk->sk_state = PPPOX_DEAD; in pptp_release()
533 if (!(sk->sk_state & PPPOX_DEAD)) { in pptp_sock_destruct()
[all …]
/linux/net/x25/
H A Daf_x25.c278 s->sk_state == TCP_LISTEN) { in x25_find_listener()
389 skb->sk->sk_state = TCP_LISTEN; in __x25_destroy_socket()
491 if (sk->sk_state != TCP_LISTEN) { in x25_listen()
494 sk->sk_state = TCP_LISTEN; in x25_listen()
605 sk->sk_state = TCP_ESTABLISHED; in x25_make_new()
652 sk->sk_state = TCP_CLOSE; in x25_release()
729 if (sk->sk_state == TCP_CLOSE) { in x25_wait_for_connection_establishment()
734 if (sk->sk_state != TCP_ESTABLISHED) { in x25_wait_for_connection_establishment()
756 if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { in x25_connect()
762 if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) { in x25_connect()
[all …]
/linux/net/ipv4/
H A Dtcp_timer.c227 if ((1 << sk->sk_state) & (TCPF_SYN_SENT | TCPF_SYN_RECV)) in retransmits_timed_out()
249 if ((1 << sk->sk_state) & (TCPF_SYN_SENT | TCPF_SYN_RECV)) { in tcp_write_timeout()
257 if (sk->sk_state == TCP_SYN_SENT) in tcp_write_timeout()
312 if ((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_LISTEN)) in tcp_delack_timer_handler()
540 WARN_ON_ONCE(sk->sk_state != TCP_SYN_RECV && in tcp_retransmit_timer()
541 sk->sk_state != TCP_FIN_WAIT1); in tcp_retransmit_timer()
557 !((1 << sk->sk_state) & (TCPF_SYN_SENT | TCPF_SYN_RECV))) { in tcp_retransmit_timer()
661 if (sk->sk_state == TCP_ESTABLISHED && in tcp_retransmit_timer()
669 } else if (sk->sk_state != TCP_SYN_SENT || in tcp_retransmit_timer()
693 if (((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_LISTEN)) || in tcp_write_timer_handler()
[all …]
/linux/net/dccp/
H A Dinput.c47 switch (sk->sk_state) { in dccp_rcv_close()
105 switch (sk->sk_state) { in dccp_rcv_closereq()
531 if (sk->sk_state == DCCP_RESPOND) in dccp_rcv_respond_partopen_state_process()
546 if (sk->sk_state == DCCP_PARTOPEN) in dccp_rcv_respond_partopen_state_process()
576 const int old_state = sk->sk_state; in dccp_rcv_state_process()
602 if (sk->sk_state == DCCP_LISTEN) { in dccp_rcv_state_process()
623 } else if (sk->sk_state == DCCP_CLOSED) { in dccp_rcv_state_process()
629 if (sk->sk_state != DCCP_REQUESTING && dccp_check_seqno(sk, skb)) in dccp_rcv_state_process()
644 (sk->sk_state == DCCP_RESPOND && dh->dccph_type == DCCP_PKT_DATA)) { in dccp_rcv_state_process()
674 switch (sk->sk_state) { in dccp_rcv_state_process()
H A Dproto.c80 const int oldstate = sk->sk_state; in dccp_set_state()
120 switch (sk->sk_state) { in dccp_finish_passive_close()
199 sk->sk_state = DCCP_CLOSED; in dccp_init_sock()
261 const int old_state = sk->sk_state; in dccp_disconnect()
375 if (sk->sk_state == DCCP_LISTEN) in dccp_ioctl()
553 if (sk->sk_state != DCCP_CLOSED) in do_dccp_setsockopt()
758 if ((1 << sk->sk_state) & ~(DCCPF_OPEN | DCCPF_PARTOPEN)) in dccp_sendmsg()
774 if (sk->sk_state == DCCP_CLOSED) { in dccp_sendmsg()
820 if (sk->sk_state == DCCP_LISTEN) { in dccp_recvmsg()
871 if (sk->sk_state == DCCP_CLOSED) { in dccp_recvmsg()
[all …]
/linux/net/netrom/
H A Daf_netrom.c152 s->sk_state == TCP_LISTEN) { in nr_find_listener()
408 if (sk->sk_state != TCP_LISTEN) { in nr_listen()
411 sk->sk_state = TCP_LISTEN; in nr_listen()
494 sk->sk_state = TCP_ESTABLISHED; in nr_make_new()
547 sk->sk_state = TCP_CLOSE; in nr_release()
647 if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { in nr_connect()
652 if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) { in nr_connect()
658 if (sk->sk_state == TCP_ESTABLISHED) { in nr_connect()
668 sk->sk_state = TCP_CLOSE; in nr_connect()
721 sk->sk_state = TCP_SYN_SENT; in nr_connect()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_unix.c44 sk->sk_state == TCP_LISTEN ? __SO_ACCEPTCON : 0, in dump_unix()
47 (sk->sk_state == TCP_ESTABLISHED ? SS_CONNECTED : SS_UNCONNECTED) : in dump_unix()
48 (sk->sk_state == TCP_ESTABLISHED ? SS_CONNECTING : SS_DISCONNECTING), in dump_unix()
/linux/net/rose/
H A Daf_rose.c280 !rose->source_ndigis && s->sk_state == TCP_LISTEN) in rose_find_listener()
289 s->sk_state == TCP_LISTEN) in rose_find_listener()
523 if (sk->sk_state != TCP_LISTEN) { in rose_listen()
531 sk->sk_state = TCP_LISTEN; in rose_listen()
616 sk->sk_state = TCP_ESTABLISHED; in rose_make_new()
674 sk->sk_state = TCP_CLOSE; in rose_release()
787 if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { in rose_connect()
793 if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) { in rose_connect()
799 if (sk->sk_state == TCP_ESTABLISHED) { in rose_connect()
805 sk->sk_state = TCP_CLOSE; in rose_connect()
[all …]
/linux/net/llc/
H A Daf_llc.c451 if (unlikely(sk->sk_state != TCP_ESTABLISHED)) in llc_ui_shutdown()
509 sk->sk_state = TCP_SYN_SENT; in llc_ui_connect()
516 sk->sk_state = TCP_CLOSE; in llc_ui_connect()
520 if (sk->sk_state == TCP_SYN_SENT) { in llc_ui_connect()
531 if (sk->sk_state == TCP_CLOSE) in llc_ui_connect()
571 if (sk->sk_state != TCP_LISTEN) { in llc_ui_listen()
573 sk->sk_state = TCP_LISTEN; in llc_ui_listen()
589 READ_ONCE(sk->sk_state) == TCP_CLOSE, &wait)) in llc_ui_wait_for_disc()
610 READ_ONCE(sk->sk_state) != TCP_SYN_SENT, &wait)) in llc_ui_wait_for_conn()
711 sk->sk_state != TCP_LISTEN)) in llc_ui_accept()
[all …]

12345678