/linux/net/ax25/ |
H A D | ax25_std_timer.c | 41 if (!sk || sock_flag(sk, SOCK_DESTROY) || in ax25_std_heartbeat_expiry() 43 sock_flag(sk, SOCK_DEAD))) { in ax25_std_heartbeat_expiry() 112 if (!sock_flag(ax25->sk, SOCK_DEAD)) { in ax25_std_idletimer_expiry() 146 if (!sock_flag(ax25->sk, SOCK_DESTROY)) in ax25_std_t1timer_expiry()
|
H A D | ax25_ds_timer.c | 104 if (!sk || sock_flag(sk, SOCK_DESTROY) || in ax25_ds_heartbeat_expiry() 106 sock_flag(sk, SOCK_DEAD))) { in ax25_ds_heartbeat_expiry() 172 if (!sock_flag(ax25->sk, SOCK_DEAD)) { in ax25_ds_idletimer_expiry() 214 if (!sock_flag(ax25->sk, SOCK_DESTROY)) in ax25_ds_t1_timeout()
|
H A D | ax25_subr.c | 271 if (ax25->sk && !sock_flag(ax25->sk, SOCK_DESTROY)) in ax25_disconnect() 289 if (!sock_flag(ax25->sk, SOCK_DEAD)) { in ax25_disconnect()
|
/linux/net/rose/ |
H A D | rose_timer.c | 129 if (sock_flag(sk, SOCK_DESTROY) || in rose_heartbeat_expiry() 130 (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) { in rose_heartbeat_expiry() 206 if (!sock_flag(sk, SOCK_DEAD)) { in rose_idletimer_expiry()
|
/linux/net/core/ |
H A D | sock.c | 331 BUG_ON(!sock_flag(sk, SOCK_MEMALLOC)); in __sk_backlog_rcv() 508 if (!sock_flag(sk, SOCK_DEAD)) in __sock_queue_rcv_skb() 1501 if (sock_flag(sk, SOCK_FILTER_LOCKED) && !valbool) in sk_setsockopt() 1710 v.val = sock_flag(sk, SOCK_DBG); in sk_getsockopt() 1714 v.val = sock_flag(sk, SOCK_LOCALROUTE); in sk_getsockopt() 1718 v.val = sock_flag(sk, SOCK_BROADCAST); in sk_getsockopt() 1738 v.val = sock_flag(sk, SOCK_KEEPOPEN); in sk_getsockopt() 1760 v.val = sock_flag(sk, SOCK_URGINLINE); in sk_getsockopt() 1773 v.ling.l_onoff = sock_flag(sk, SOCK_LINGER); in sk_getsockopt() 1781 v.val = sock_flag(sk, SOCK_RCVTSTAMP) && in sk_getsockopt() [all …]
|
/linux/net/netrom/ |
H A D | nr_timer.c | 122 if (sock_flag(sk, SOCK_DESTROY) || in nr_heartbeat_expiry() 123 (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) { in nr_heartbeat_expiry() 199 if (!sock_flag(sk, SOCK_DEAD)) { in nr_idletimer_expiry()
|
/linux/net/llc/ |
H A D | af_llc.c | 214 if (!sock_flag(sk, SOCK_ZAPPED)) { in llc_ui_release() 284 if (!sock_flag(sk, SOCK_ZAPPED)) in llc_ui_autobind() 350 if (unlikely(!sock_flag(sk, SOCK_ZAPPED) || addrlen != sizeof(*addr))) in llc_ui_bind() 500 if (sock_flag(sk, SOCK_ZAPPED)) { in llc_ui_connect() 565 if (sock_flag(sk, SOCK_ZAPPED)) in llc_ui_listen() 825 if (sock_flag(sk, SOCK_DONE)) in llc_ui_recvmsg() 836 if (!sock_flag(sk, SOCK_DONE)) { in llc_ui_recvmsg() 954 if (sock_flag(sk, SOCK_ZAPPED)) { in llc_ui_sendmsg() 974 if (sock_flag(sk, SOCK_ZAPPED) || in llc_ui_sendmsg() 1036 if (sock_flag(sk, SOCK_ZAPPED)) in llc_ui_getname()
|
/linux/net/x25/ |
H A D | x25_timer.c | 106 if (sock_flag(sk, SOCK_DESTROY) || in x25_heartbeat_expiry() 108 sock_flag(sk, SOCK_DEAD))) { in x25_heartbeat_expiry()
|
H A D | x25_in.c | 76 if (!sock_flag(sk, SOCK_DEAD)) in x25_queue_rx_frame() 136 if (!sock_flag(sk, SOCK_DEAD)) in x25_state1_machine() 314 if (sock_flag(sk, SOCK_URGINLINE)) in x25_state3_machine()
|
/linux/net/ipv4/ |
H A D | tcp_timer.c | 270 if (sock_flag(sk, SOCK_DEAD)) { in tcp_write_timeout() 418 if (sock_flag(sk, SOCK_DEAD)) { in tcp_probe_timer() 556 if (!tp->snd_wnd && !sock_flag(sk, SOCK_DEAD) && in tcp_retransmit_timer() 759 if (val && !sock_flag(sk, SOCK_KEEPOPEN)) in tcp_set_keepalive() 788 if (sk->sk_state == TCP_FIN_WAIT2 && sock_flag(sk, SOCK_DEAD)) { in tcp_keepalive_timer() 801 if (!sock_flag(sk, SOCK_KEEPOPEN) || in tcp_keepalive_timer()
|
H A D | tcp.c | 573 !sock_flag(sk, SOCK_URGINLINE)) in tcp_poll() 823 if (sock_flag(sk, SOCK_DONE)) in tcp_splice_read() 1071 } else if (sock_flag(sk, SOCK_ZEROCOPY)) { in tcp_sendmsg_locked() 1391 if (sock_flag(sk, SOCK_URGINLINE) || !tp->urg_data || in tcp_recv_urg() 1395 if (sk->sk_state == TCP_CLOSE && !sock_flag(sk, SOCK_DONE)) in tcp_recv_urg() 2128 if (!inq && sock_flag(sk, SOCK_DONE)) in tcp_zerocopy_receive() 2235 if (!zc->recv_skip_hint && sock_flag(sk, SOCK_DONE)) in tcp_zerocopy_receive() 2247 int new_tstamp = sock_flag(sk, SOCK_TSTAMP_NEW); in tcp_recv_timestamp() 2252 if (sock_flag(sk, SOCK_RCVTSTAMP)) { in tcp_recv_timestamp() 2253 if (sock_flag(sk, SOCK_RCVTSTAMPNS)) { in tcp_recv_timestamp() [all …]
|
/linux/net/smc/ |
H A D | smc_close.c | 205 0 : sock_flag(sk, SOCK_LINGER) ? in smc_close_active() 398 if (sock_flag(sk, SOCK_DEAD) && in smc_close_passive_work() 435 (sock_flag(sk, SOCK_DEAD) || !sk->sk_socket)) { in smc_close_passive_work() 456 0 : sock_flag(sk, SOCK_LINGER) ? in smc_close_shutdown_write()
|
H A D | smc_rx.c | 73 if (sock_flag(sk, SOCK_URGINLINE)) { in smc_rx_update_consumer() 289 if (sock_flag(sk, SOCK_URGINLINE) || in smc_rx_recv_urg() 411 if (!sock_flag(sk, SOCK_DONE)) { in smc_rx_recvmsg() 452 sock_flag(&smc->sk, SOCK_URGINLINE) && in smc_rx_recvmsg()
|
/linux/net/caif/ |
H A D | caif_socket.c | 149 queued = !sock_flag(sk, SOCK_DEAD); in caif_queue_rcv_skb() 316 sock_flag(sk, SOCK_DEAD) || in caif_stream_data_wait() 327 if (sock_flag(sk, SOCK_DEAD)) in caif_stream_data_wait() 373 if (sock_flag(sk, SOCK_DEAD)) { in caif_stream_recvmsg() 396 if (sock_flag(sk, SOCK_DEAD)) in caif_stream_recvmsg() 547 sock_flag(sk, SOCK_DEAD) || in caif_seqpkt_sendmsg() 1008 if (!sock_flag(sk, SOCK_DEAD)) { in caif_sock_destructor()
|
/linux/net/can/ |
H A D | isotp.c | 203 if (!sock_flag(sk, SOCK_DEAD)) in isotp_rx_timer_handler() 377 if (!sock_flag(sk, SOCK_DEAD)) in isotp_rcv_fc() 432 if (!sock_flag(sk, SOCK_DEAD)) in isotp_rcv_fc() 460 if (!sock_flag(sk, SOCK_DEAD)) in isotp_rcv_sf() 585 if (!sock_flag(sk, SOCK_DEAD)) in isotp_rcv_cf() 609 if (!sock_flag(sk, SOCK_DEAD)) in isotp_rcv_cf() 911 if (!sock_flag(sk, SOCK_DEAD)) in isotp_tx_timer_handler() 1348 if (!sock_flag(sk, SOCK_DEAD)) in isotp_bind() 1570 if (!sock_flag(sk, SOCK_DEAD)) in isotp_notify() 1576 if (!sock_flag(sk, SOCK_DEAD)) in isotp_notify()
|
/linux/net/rds/ |
H A D | recv.c | 377 if (!sock_flag(sk, SOCK_DEAD)) { in rds_recv_incoming() 383 if (sock_flag(sk, SOCK_RCVTSTAMP)) in rds_recv_incoming() 558 sock_flag(rds_rs_to_sk(rs), SOCK_RCVTSTAMP)) { in rds_cmsg_recv() 562 if (!sock_flag(rds_rs_to_sk(rs), SOCK_TSTAMP_NEW)) { in rds_cmsg_recv() 613 if (!sock_flag(rds_rs_to_sk(rs), SOCK_ZEROCOPY) || in rds_recvmsg_zcookie()
|
/linux/net/l2tp/ |
H A D | l2tp_ip.c | 287 if (!sock_flag(sk, SOCK_ZAPPED)) in l2tp_ip_bind() 346 if (sock_flag(sk, SOCK_ZAPPED)) { in l2tp_ip_connect() 370 if (sock_flag(sk, SOCK_ZAPPED)) in l2tp_ip_disconnect() 435 if (sock_flag(sk, SOCK_DEAD)) in l2tp_ip_sendmsg()
|
/linux/net/phonet/ |
H A D | pep.c | 350 if (!sock_flag(sk, SOCK_DEAD)) in pipe_do_rcv() 454 if (!sock_flag(sk, SOCK_DEAD)) in pipe_do_rcv() 578 if (!sock_flag(sk, SOCK_DEAD)) in pipe_handler_do_rcv() 585 if (!sock_flag(sk, SOCK_DEAD)) in pipe_handler_do_rcv() 686 if (!sock_flag(sk, SOCK_DEAD)) in pep_do_rcv() 928 if (sock_flag(sk, SOCK_URGINLINE)) { in pep_first_packet_length() 1276 if ((flags & MSG_OOB) || sock_flag(sk, SOCK_URGINLINE)) { in pep_recvmsg()
|
/linux/include/net/ |
H A D | sock.h | 990 static inline bool sock_flag(const struct sock *sk, enum sock_flags flag) in sock_flag() function 1103 if (skb_pfmemalloc(skb) && !sock_flag(sk, SOCK_MEMALLOC)) in sk_add_backlog() 2444 !sock_flag(sk, SOCK_FASYNC)) in sk_set_bit() 2453 !sock_flag(sk, SOCK_FASYNC)) in sk_clear_bit() 2461 if (sock_flag(sk, SOCK_FASYNC)) { in sk_wake_async() 2470 if (unlikely(sock_flag(sk, SOCK_FASYNC))) in sk_wake_async_rcu() 2586 SOCK_SKB_CB(skb)->dropcount = sock_flag(sk, SOCK_RXQ_OVFL) ? in sock_skb_set_dropcount() 2642 if (sock_flag(sk, SOCK_RCVTSTAMP) || in sock_recv_timestamp() 2651 if (sock_flag(sk, SOCK_WIFI_STATUS) && skb_wifi_acked_valid(skb)) in sock_recv_timestamp() 2671 else if (unlikely(sock_flag(sk, SOCK_TIMESTAMP))) in sock_recv_cmsgs() [all …]
|
/linux/net/unix/ |
H A D | af_unix.c | 593 if (unix_recvq_full_lockless(other) && !sock_flag(other, SOCK_DEAD)) in unix_dgram_peer_wake_me() 637 if (!sock_flag(other, SOCK_DEAD) && unix_peer(other) == sk) { in unix_dgram_disconnected() 653 if (!sock_flag(sk, SOCK_DEAD)) { in unix_sock_destructor() 1452 if (sock_flag(other, SOCK_DEAD)) { in unix_dgram_connect() 1522 sched = !sock_flag(other, SOCK_DEAD) && in unix_wait_for_peer() 1597 if (sock_flag(other, SOCK_DEAD)) { in unix_stream_connect() 2074 if (unlikely(sock_flag(other, SOCK_DEAD))) { in unix_dgram_sendmsg() 2161 if (sock_flag(other, SOCK_RCVTSTAMP)) in unix_dgram_sendmsg() 2218 if (sock_flag(other, SOCK_DEAD) || in queue_oob() 2338 if (sock_flag(other, SOCK_DEAD) || in unix_stream_sendmsg() [all …]
|
/linux/net/vmw_vsock/ |
H A D | virtio_transport_common.c | 366 if (!sock_flag(sk_vsock(vsk), SOCK_ZEROCOPY)) in virtio_transport_send_pkt_info() 1199 sock_flag(sk, SOCK_DONE), &wait)) in virtio_transport_wait_close() 1238 if (!sock_flag(sk, SOCK_DONE)) { in virtio_transport_close_timeout() 1268 if (sock_flag(sk, SOCK_LINGER) && !(current->flags & PF_EXITING)) in virtio_transport_close() 1271 if (sock_flag(sk, SOCK_DONE)) { in virtio_transport_close() 1418 if (vsock_stream_has_data(vsk) <= 0 && !sock_flag(sk, SOCK_DONE)) { in virtio_transport_recv_connected() 1632 if (sock_flag(sk, SOCK_DONE)) { in virtio_transport_recv_pkt()
|
/linux/net/qrtr/ |
H A D | af_qrtr.c | 816 if (!sock_flag(sk, SOCK_ZAPPED)) in qrtr_autobind() 841 rc = __qrtr_bind(sock, addr, sock_flag(sk, SOCK_ZAPPED)); in qrtr_bind() 1042 if (sock_flag(sk, SOCK_ZAPPED)) { in qrtr_recvmsg() 1217 if (!sock_flag(sk, SOCK_DEAD)) in qrtr_release() 1224 if (!sock_flag(sk, SOCK_ZAPPED)) in qrtr_release()
|
/linux/net/bluetooth/rfcomm/ |
H A D | sock.c | 96 if (parent && sock_flag(sk, SOCK_ZAPPED)) { in rfcomm_sk_state_change() 194 if (!sock_flag(sk, SOCK_ZAPPED) || sk->sk_socket) in rfcomm_sock_kill() 412 if (!err && !sock_flag(sk, SOCK_ZAPPED)) in rfcomm_sock_connect() 903 if (sock_flag(sk, SOCK_LINGER) && sk->sk_lingertime && in rfcomm_sock_shutdown()
|
/linux/net/can/j1939/ |
H A D | socket.c | 231 } else if (!sock_flag(&jsk->sk, SOCK_BROADCAST)) { in j1939_sk_match_dst() 561 !sock_flag(&jsk->sk, SOCK_BROADCAST)) { in j1939_sk_connect() 1263 !sock_flag(sk, SOCK_BROADCAST)) { in j1939_sk_sendmsg() 1270 !sock_flag(sk, SOCK_BROADCAST)) { in j1939_sk_sendmsg() 1293 if (!sock_flag(&jsk->sk, SOCK_DEAD)) in j1939_sk_netdev_event_netdown()
|
/linux/net/dccp/ |
H A D | proto.c | 143 if (!sock_flag(sk, SOCK_DEAD)) in dccp_done() 856 if (sock_flag(sk, SOCK_DONE)) { in dccp_recvmsg() 872 if (!sock_flag(sk, SOCK_DONE)) { in dccp_recvmsg() 1032 } else if (sock_flag(sk, SOCK_LINGER) && !sk->sk_lingertime) { in dccp_close()
|