Home
last modified time | relevance | path

Searched refs:nsk (Results 1 – 8 of 8) sorted by relevance

/net/dccp/
Dipv4.c453 struct sock *nsk; in dccp_v4_hnd_req() local
462 nsk = inet_lookup_established(sock_net(sk), &dccp_hashinfo, in dccp_v4_hnd_req()
466 if (nsk != NULL) { in dccp_v4_hnd_req()
467 if (nsk->sk_state != DCCP_TIME_WAIT) { in dccp_v4_hnd_req()
468 bh_lock_sock(nsk); in dccp_v4_hnd_req()
469 return nsk; in dccp_v4_hnd_req()
471 inet_twsk_put(inet_twsk(nsk)); in dccp_v4_hnd_req()
709 struct sock *nsk = dccp_v4_hnd_req(sk, skb); in dccp_v4_do_rcv() local
711 if (nsk == NULL) in dccp_v4_do_rcv()
714 if (nsk != sk) { in dccp_v4_do_rcv()
[all …]
Dipv6.c335 struct sock *nsk; in dccp_v6_hnd_req() local
346 nsk = __inet6_lookup_established(sock_net(sk), &dccp_hashinfo, in dccp_v6_hnd_req()
350 if (nsk != NULL) { in dccp_v6_hnd_req()
351 if (nsk->sk_state != DCCP_TIME_WAIT) { in dccp_v6_hnd_req()
352 bh_lock_sock(nsk); in dccp_v6_hnd_req()
353 return nsk; in dccp_v6_hnd_req()
355 inet_twsk_put(inet_twsk(nsk)); in dccp_v6_hnd_req()
706 struct sock *nsk = dccp_v6_hnd_req(sk, skb); in dccp_v6_do_rcv() local
708 if (nsk == NULL) in dccp_v6_do_rcv()
715 if (nsk != sk) { in dccp_v6_do_rcv()
[all …]
/net/iucv/
Daf_iucv.c924 struct sock *sk = sock->sk, *nsk; in iucv_sock_accept() local
939 while (!(nsk = iucv_accept_dequeue(sk, newsock))) { in iucv_sock_accept()
1679 struct sock *sk, *nsk; in iucv_callback_connreq() local
1724 nsk = iucv_sock_alloc(NULL, sk->sk_type, GFP_ATOMIC); in iucv_callback_connreq()
1725 if (!nsk) { in iucv_callback_connreq()
1731 niucv = iucv_sk(nsk); in iucv_callback_connreq()
1732 iucv_sock_init(nsk, sk); in iucv_callback_connreq()
1750 err = pr_iucv->path_accept(path, &af_iucv_handler, nuser_data, nsk); in iucv_callback_connreq()
1752 iucv_sever_path(nsk, 1); in iucv_callback_connreq()
1753 iucv_sock_kill(nsk); in iucv_callback_connreq()
[all …]
/net/ipv6/
Dtcp_ipv6.c924 struct sock *nsk; in tcp_v6_hnd_req() local
933 nsk = __inet6_lookup_established(sock_net(sk), &tcp_hashinfo, in tcp_v6_hnd_req()
937 if (nsk) { in tcp_v6_hnd_req()
938 if (nsk->sk_state != TCP_TIME_WAIT) { in tcp_v6_hnd_req()
939 bh_lock_sock(nsk); in tcp_v6_hnd_req()
940 return nsk; in tcp_v6_hnd_req()
942 inet_twsk_put(inet_twsk(nsk)); in tcp_v6_hnd_req()
1389 struct sock *nsk = tcp_v6_hnd_req(sk, skb); in tcp_v6_do_rcv() local
1390 if (!nsk) in tcp_v6_do_rcv()
1398 if(nsk != sk) { in tcp_v6_do_rcv()
[all …]
/net/ipv4/
Dtcp_ipv4.c1749 struct sock *nsk; in tcp_v4_hnd_req() local
1757 nsk = inet_lookup_established(sock_net(sk), &tcp_hashinfo, iph->saddr, in tcp_v4_hnd_req()
1760 if (nsk) { in tcp_v4_hnd_req()
1761 if (nsk->sk_state != TCP_TIME_WAIT) { in tcp_v4_hnd_req()
1762 bh_lock_sock(nsk); in tcp_v4_hnd_req()
1763 return nsk; in tcp_v4_hnd_req()
1765 inet_twsk_put(inet_twsk(nsk)); in tcp_v4_hnd_req()
1842 struct sock *nsk = tcp_v4_hnd_req(sk, skb); in tcp_v4_do_rcv() local
1843 if (!nsk) in tcp_v4_do_rcv()
1846 if (nsk != sk) { in tcp_v4_do_rcv()
[all …]
/net/bluetooth/rfcomm/
Dsock.c468 struct sock *sk = sock->sk, *nsk; in rfcomm_sock_accept() local
493 nsk = bt_accept_dequeue(sk, newsock); in rfcomm_sock_accept()
494 if (nsk) in rfcomm_sock_accept()
519 BT_DBG("new socket %p", nsk); in rfcomm_sock_accept()
/net/bluetooth/
Dl2cap_sock.c200 struct sock *sk = sock->sk, *nsk; in l2cap_sock_accept() local
220 nsk = bt_accept_dequeue(sk, newsock); in l2cap_sock_accept()
221 if (nsk) in l2cap_sock_accept()
246 BT_DBG("new socket %p", nsk); in l2cap_sock_accept()
/net/core/
Dsock.c1191 static void sock_copy(struct sock *nsk, const struct sock *osk) in sock_copy() argument
1194 void *sptr = nsk->sk_security; in sock_copy()
1196 memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin)); in sock_copy()
1198 memcpy(&nsk->sk_dontcopy_end, &osk->sk_dontcopy_end, in sock_copy()
1202 nsk->sk_security = sptr; in sock_copy()
1203 security_sk_clone(osk, nsk); in sock_copy()