/Linux-v5.4/kernel/bpf/ |
D | reuseport_array.c | 205 const struct sock *nsk, in reuseport_array_update_check() argument 216 if (nsk->sk_protocol != IPPROTO_UDP && nsk->sk_protocol != IPPROTO_TCP) in reuseport_array_update_check() 219 if (nsk->sk_family != AF_INET && nsk->sk_family != AF_INET6) in reuseport_array_update_check() 222 if (nsk->sk_type != SOCK_STREAM && nsk->sk_type != SOCK_DGRAM) in reuseport_array_update_check() 233 if (!sock_flag(nsk, SOCK_RCU_FREE) || !sk_hashed(nsk) || !nsk_reuse) in reuseport_array_update_check() 237 if (READ_ONCE(nsk->sk_user_data)) in reuseport_array_update_check() 252 struct sock *free_osk = NULL, *osk, *nsk; in bpf_fd_reuseport_array_update_elem() local 278 nsk = socket->sk; in bpf_fd_reuseport_array_update_elem() 279 if (!nsk) { in bpf_fd_reuseport_array_update_elem() 285 err = reuseport_array_update_check(array, nsk, in bpf_fd_reuseport_array_update_elem() [all …]
|
/Linux-v5.4/net/smc/ |
D | af_smc.c | 285 static void smc_copy_sock_settings(struct sock *nsk, struct sock *osk, in smc_copy_sock_settings() argument 289 nsk->sk_type = osk->sk_type; in smc_copy_sock_settings() 290 nsk->sk_sndbuf = osk->sk_sndbuf; in smc_copy_sock_settings() 291 nsk->sk_rcvbuf = osk->sk_rcvbuf; in smc_copy_sock_settings() 292 nsk->sk_sndtimeo = osk->sk_sndtimeo; in smc_copy_sock_settings() 293 nsk->sk_rcvtimeo = osk->sk_rcvtimeo; in smc_copy_sock_settings() 294 nsk->sk_mark = osk->sk_mark; in smc_copy_sock_settings() 295 nsk->sk_priority = osk->sk_priority; in smc_copy_sock_settings() 296 nsk->sk_rcvlowat = osk->sk_rcvlowat; in smc_copy_sock_settings() 297 nsk->sk_bound_dev_if = osk->sk_bound_dev_if; in smc_copy_sock_settings() [all …]
|
/Linux-v5.4/net/iucv/ |
D | af_iucv.c | 963 struct sock *sk = sock->sk, *nsk; in iucv_sock_accept() local 978 while (!(nsk = iucv_accept_dequeue(sk, newsock))) { in iucv_sock_accept() 1742 struct sock *sk, *nsk; in iucv_callback_connreq() local 1787 nsk = iucv_sock_alloc(NULL, sk->sk_type, GFP_ATOMIC, 0); in iucv_callback_connreq() 1788 if (!nsk) { in iucv_callback_connreq() 1794 niucv = iucv_sk(nsk); in iucv_callback_connreq() 1795 iucv_sock_init(nsk, sk); in iucv_callback_connreq() 1797 nsk->sk_allocation |= GFP_DMA; in iucv_callback_connreq() 1815 err = pr_iucv->path_accept(path, &af_iucv_handler, nuser_data, nsk); in iucv_callback_connreq() 1817 iucv_sever_path(nsk, 1); in iucv_callback_connreq() [all …]
|
/Linux-v5.4/net/ipv6/ |
D | tcp_ipv6.c | 1388 struct sock *nsk = tcp_v6_cookie_check(sk, skb); in tcp_v6_do_rcv() local 1390 if (!nsk) in tcp_v6_do_rcv() 1393 if (nsk != sk) { in tcp_v6_do_rcv() 1394 if (tcp_child_process(sk, nsk, skb)) in tcp_v6_do_rcv() 1528 struct sock *nsk; in tcp_v6_rcv() local 1546 nsk = NULL; in tcp_v6_rcv() 1551 nsk = tcp_check_req(sk, skb, req, false, &req_stolen); in tcp_v6_rcv() 1553 if (!nsk) { in tcp_v6_rcv() 1567 if (nsk == sk) { in tcp_v6_rcv() 1570 } else if (tcp_child_process(sk, nsk, skb)) { in tcp_v6_rcv() [all …]
|
/Linux-v5.4/net/dccp/ |
D | ipv4.c | 833 struct sock *nsk; in dccp_v4_rcv() local 842 nsk = dccp_check_req(sk, skb, req); in dccp_v4_rcv() 843 if (!nsk) { in dccp_v4_rcv() 847 if (nsk == sk) { in dccp_v4_rcv() 849 } else if (dccp_child_process(sk, nsk, skb)) { in dccp_v4_rcv()
|
D | ipv6.c | 735 struct sock *nsk; in dccp_v6_rcv() local 744 nsk = dccp_check_req(sk, skb, req); in dccp_v6_rcv() 745 if (!nsk) { in dccp_v6_rcv() 749 if (nsk == sk) { in dccp_v6_rcv() 751 } else if (dccp_child_process(sk, nsk, skb)) { in dccp_v6_rcv()
|
/Linux-v5.4/net/ipv4/ |
D | tcp_ipv4.c | 1572 struct sock *nsk = tcp_v4_cookie_check(sk, skb); in tcp_v4_do_rcv() local 1574 if (!nsk) in tcp_v4_do_rcv() 1576 if (nsk != sk) { in tcp_v4_do_rcv() 1577 if (tcp_child_process(sk, nsk, skb)) { in tcp_v4_do_rcv() 1578 rsk = nsk; in tcp_v4_do_rcv() 1858 struct sock *nsk; in tcp_v4_rcv() local 1879 nsk = NULL; in tcp_v4_rcv() 1884 nsk = tcp_check_req(sk, skb, req, false, &req_stolen); in tcp_v4_rcv() 1886 if (!nsk) { in tcp_v4_rcv() 1900 if (nsk == sk) { in tcp_v4_rcv() [all …]
|
/Linux-v5.4/net/bluetooth/rfcomm/ |
D | sock.c | 480 struct sock *sk = sock->sk, *nsk; in rfcomm_sock_accept() local 503 nsk = bt_accept_dequeue(sk, newsock); in rfcomm_sock_accept() 504 if (nsk) in rfcomm_sock_accept() 530 BT_DBG("new socket %p", nsk); in rfcomm_sock_accept()
|
/Linux-v5.4/net/bluetooth/ |
D | l2cap_sock.c | 308 struct sock *sk = sock->sk, *nsk; in l2cap_sock_accept() local 326 nsk = bt_accept_dequeue(sk, newsock); in l2cap_sock_accept() 327 if (nsk) in l2cap_sock_accept() 353 BT_DBG("new socket %p", nsk); in l2cap_sock_accept()
|
/Linux-v5.4/net/core/ |
D | sock.c | 1575 static void sock_copy(struct sock *nsk, const struct sock *osk) in sock_copy() argument 1578 void *sptr = nsk->sk_security; in sock_copy() 1580 memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin)); in sock_copy() 1582 memcpy(&nsk->sk_dontcopy_end, &osk->sk_dontcopy_end, in sock_copy() 1586 nsk->sk_security = sptr; in sock_copy() 1587 security_sk_clone(osk, nsk); in sock_copy()
|
/Linux-v5.4/include/net/ |
D | sock.h | 821 static inline void sock_copy_flags(struct sock *nsk, struct sock *osk) in sock_copy_flags() argument 823 nsk->sk_flags = osk->sk_flags; in sock_copy_flags()
|