/kernel/linux/linux-5.10/kernel/bpf/ |
D | reuseport_array.c | 206 const struct sock *nsk, in reuseport_array_update_check() argument 217 if (nsk->sk_protocol != IPPROTO_UDP && nsk->sk_protocol != IPPROTO_TCP) in reuseport_array_update_check() 220 if (nsk->sk_family != AF_INET && nsk->sk_family != AF_INET6) in reuseport_array_update_check() 223 if (nsk->sk_type != SOCK_STREAM && nsk->sk_type != SOCK_DGRAM) in reuseport_array_update_check() 234 if (!sock_flag(nsk, SOCK_RCU_FREE) || !sk_hashed(nsk) || !nsk_reuse) in reuseport_array_update_check() 238 if (READ_ONCE(nsk->sk_user_data)) in reuseport_array_update_check() 253 struct sock *free_osk = NULL, *osk, *nsk; in bpf_fd_reuseport_array_update_elem() local 280 nsk = socket->sk; in bpf_fd_reuseport_array_update_elem() 281 if (!nsk) { in bpf_fd_reuseport_array_update_elem() 287 err = reuseport_array_update_check(array, nsk, in bpf_fd_reuseport_array_update_elem() [all …]
|
/kernel/linux/linux-5.10/net/iucv/ |
D | af_iucv.c | 824 struct sock *sk = sock->sk, *nsk; in iucv_sock_accept() local 839 while (!(nsk = iucv_accept_dequeue(sk, newsock))) { in iucv_sock_accept() 1603 struct sock *sk, *nsk; in iucv_callback_connreq() local 1648 nsk = iucv_sock_alloc(NULL, sk->sk_protocol, GFP_ATOMIC, 0); in iucv_callback_connreq() 1649 if (!nsk) { in iucv_callback_connreq() 1655 niucv = iucv_sk(nsk); in iucv_callback_connreq() 1656 iucv_sock_init(nsk, sk); in iucv_callback_connreq() 1658 nsk->sk_allocation |= GFP_DMA; in iucv_callback_connreq() 1676 err = pr_iucv->path_accept(path, &af_iucv_handler, nuser_data, nsk); in iucv_callback_connreq() 1678 iucv_sever_path(nsk, 1); in iucv_callback_connreq() [all …]
|
/kernel/linux/linux-5.10/net/smc/ |
D | af_smc.c | 306 static void smc_copy_sock_settings(struct sock *nsk, struct sock *osk, in smc_copy_sock_settings() argument 310 nsk->sk_type = osk->sk_type; in smc_copy_sock_settings() 311 nsk->sk_sndbuf = osk->sk_sndbuf; in smc_copy_sock_settings() 312 nsk->sk_rcvbuf = osk->sk_rcvbuf; in smc_copy_sock_settings() 313 nsk->sk_sndtimeo = osk->sk_sndtimeo; in smc_copy_sock_settings() 314 nsk->sk_rcvtimeo = osk->sk_rcvtimeo; in smc_copy_sock_settings() 315 nsk->sk_mark = osk->sk_mark; in smc_copy_sock_settings() 316 nsk->sk_priority = osk->sk_priority; in smc_copy_sock_settings() 317 nsk->sk_rcvlowat = osk->sk_rcvlowat; in smc_copy_sock_settings() 318 nsk->sk_bound_dev_if = osk->sk_bound_dev_if; in smc_copy_sock_settings() [all …]
|
/kernel/linux/linux-5.10/net/dccp/ |
D | ipv4.c | 839 struct sock *nsk; in dccp_v4_rcv() local 848 nsk = dccp_check_req(sk, skb, req); in dccp_v4_rcv() 849 if (!nsk) { in dccp_v4_rcv() 853 if (nsk == sk) { in dccp_v4_rcv() 855 } else if (dccp_child_process(sk, nsk, skb)) { in dccp_v4_rcv()
|
D | ipv6.c | 740 struct sock *nsk; in dccp_v6_rcv() local 749 nsk = dccp_check_req(sk, skb, req); in dccp_v6_rcv() 750 if (!nsk) { in dccp_v6_rcv() 754 if (nsk == sk) { in dccp_v6_rcv() 756 } else if (dccp_child_process(sk, nsk, skb)) { in dccp_v6_rcv()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | tcp_ipv6.c | 1514 struct sock *nsk = tcp_v6_cookie_check(sk, skb); in tcp_v6_do_rcv() local 1516 if (!nsk) in tcp_v6_do_rcv() 1519 if (nsk != sk) { in tcp_v6_do_rcv() 1520 if (tcp_child_process(sk, nsk, skb)) in tcp_v6_do_rcv() 1655 struct sock *nsk; in tcp_v6_rcv() local 1673 nsk = NULL; in tcp_v6_rcv() 1678 nsk = tcp_check_req(sk, skb, req, false, &req_stolen); in tcp_v6_rcv() 1680 if (!nsk) { in tcp_v6_rcv() 1694 if (nsk == sk) { in tcp_v6_rcv() 1697 } else if (tcp_child_process(sk, nsk, skb)) { in tcp_v6_rcv() [all …]
|
D | esp6.c | 157 struct sock *nsk; in esp6_find_tcp_sk() local 167 nsk = rcu_dereference_protected(x->encap_sk, in esp6_find_tcp_sk() 169 if (sk && sk == nsk) { in esp6_find_tcp_sk() 192 nsk = rcu_dereference_protected(x->encap_sk, in esp6_find_tcp_sk() 197 sk = nsk ?: ERR_PTR(-EREMCHG); in esp6_find_tcp_sk() 198 } else if (sk == nsk) { in esp6_find_tcp_sk()
|
/kernel/linux/linux-5.10/net/mptcp/ |
D | protocol.c | 2062 struct sock *nsk = sk_clone_lock(sk, GFP_ATOMIC); in mptcp_sk_clone() local 2066 if (!nsk) in mptcp_sk_clone() 2070 if (nsk->sk_family == AF_INET6) in mptcp_sk_clone() 2071 inet_sk(nsk)->pinet6 = mptcp_inet6_sk(nsk); in mptcp_sk_clone() 2074 __mptcp_init_sock(nsk); in mptcp_sk_clone() 2076 msk = mptcp_sk(nsk); in mptcp_sk_clone() 2092 sock_reset_flag(nsk, SOCK_RCU_FREE); in mptcp_sk_clone() 2094 inet_sk_state_store(nsk, TCP_SYN_RECV); in mptcp_sk_clone() 2096 security_inet_csk_clone(nsk, req); in mptcp_sk_clone() 2097 bh_unlock_sock(nsk); in mptcp_sk_clone() [all …]
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | esp4.c | 141 struct sock *nsk; in esp_find_tcp_sk() local 151 nsk = rcu_dereference_protected(x->encap_sk, in esp_find_tcp_sk() 153 if (sk && sk == nsk) { in esp_find_tcp_sk() 176 nsk = rcu_dereference_protected(x->encap_sk, in esp_find_tcp_sk() 181 sk = nsk ?: ERR_PTR(-EREMCHG); in esp_find_tcp_sk() 182 } else if (sk == nsk) { in esp_find_tcp_sk()
|
D | tcp_ipv4.c | 1697 struct sock *nsk = tcp_v4_cookie_check(sk, skb); in tcp_v4_do_rcv() local 1699 if (!nsk) in tcp_v4_do_rcv() 1701 if (nsk != sk) { in tcp_v4_do_rcv() 1702 if (tcp_child_process(sk, nsk, skb)) { in tcp_v4_do_rcv() 1703 rsk = nsk; in tcp_v4_do_rcv() 1986 struct sock *nsk; in tcp_v4_rcv() local 2008 nsk = NULL; in tcp_v4_rcv() 2013 nsk = tcp_check_req(sk, skb, req, false, &req_stolen); in tcp_v4_rcv() 2015 if (!nsk) { in tcp_v4_rcv() 2030 if (nsk == sk) { in tcp_v4_rcv() [all …]
|
/kernel/linux/linux-5.10/net/bluetooth/rfcomm/ |
D | sock.c | 477 struct sock *sk = sock->sk, *nsk; in rfcomm_sock_accept() local 500 nsk = bt_accept_dequeue(sk, newsock); in rfcomm_sock_accept() 501 if (nsk) in rfcomm_sock_accept() 527 BT_DBG("new socket %p", nsk); in rfcomm_sock_accept()
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
D | tcp_nip.c | 1989 struct sock *nsk; in tcp_nip_rcv() local 1996 nsk = NULL; in tcp_nip_rcv() 2003 nsk = tcp_nip_check_req(sk, skb, req); in tcp_nip_rcv() 2005 if (!nsk || nsk == sk) { in tcp_nip_rcv() 2010 if (tcp_nip_child_process(sk, nsk, skb)) { in tcp_nip_rcv()
|
/kernel/linux/linux-5.10/net/bluetooth/ |
D | l2cap_sock.c | 349 struct sock *sk = sock->sk, *nsk; in l2cap_sock_accept() local 367 nsk = bt_accept_dequeue(sk, newsock); in l2cap_sock_accept() 368 if (nsk) in l2cap_sock_accept() 394 BT_DBG("new socket %p", nsk); in l2cap_sock_accept()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/ |
D | tc358768.c | 619 static u32 tc358768_to_ns(u32 nsk) in tc358768_to_ns() argument 621 return (nsk / TC358768_PRECISION); in tc358768_to_ns()
|
/kernel/linux/linux-5.10/net/core/ |
D | sock.c | 1660 static void sock_copy(struct sock *nsk, const struct sock *osk) in sock_copy() argument 1664 void *sptr = nsk->sk_security; in sock_copy() 1666 memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin)); in sock_copy() 1668 memcpy(&nsk->sk_dontcopy_end, &osk->sk_dontcopy_end, in sock_copy() 1672 nsk->sk_security = sptr; in sock_copy() 1673 security_sk_clone(osk, nsk); in sock_copy()
|
/kernel/linux/linux-5.10/include/net/ |
D | sock.h | 903 static inline void sock_copy_flags(struct sock *nsk, struct sock *osk) in sock_copy_flags() argument 905 nsk->sk_flags = osk->sk_flags; in sock_copy_flags()
|