Lines Matching refs:newsk

3257 static void mptcp_copy_ip6_options(struct sock *newsk, const struct sock *sk)  in mptcp_copy_ip6_options()  argument
3263 newnp = inet6_sk(newsk); in mptcp_copy_ip6_options()
3268 opt = ipv6_dup_options(newsk, opt); in mptcp_copy_ip6_options()
3277 static void mptcp_copy_ip_options(struct sock *newsk, const struct sock *sk) in mptcp_copy_ip_options() argument
3283 newinet = inet_sk(newsk); in mptcp_copy_ip_options()
3288 newopt = sock_kmalloc(newsk, sizeof(*inet_opt) + in mptcp_copy_ip_options()
3931 struct sock *ssk, *newsk; in mptcp_stream_accept() local
3943 newsk = inet_csk_accept(ssk, arg); in mptcp_stream_accept()
3944 if (!newsk) in mptcp_stream_accept()
3947 pr_debug("newsk=%p, subflow is mptcp=%d\n", newsk, sk_is_mptcp(newsk)); in mptcp_stream_accept()
3948 if (sk_is_mptcp(newsk)) { in mptcp_stream_accept()
3952 subflow = mptcp_subflow_ctx(newsk); in mptcp_stream_accept()
3959 tcp_sk(newsk)->is_mptcp = 0; in mptcp_stream_accept()
3963 newsk = new_mptcp_sock; in mptcp_stream_accept()
3966 newsk->sk_kern_sock = arg->kern; in mptcp_stream_accept()
3967 lock_sock(newsk); in mptcp_stream_accept()
3968 __inet_accept(sock, newsock, newsk); in mptcp_stream_accept()
3971 msk = mptcp_sk(newsk); in mptcp_stream_accept()
3988 __mptcp_close_ssk(newsk, msk->first, in mptcp_stream_accept()
3991 mptcp_set_state(newsk, TCP_CLOSE); in mptcp_stream_accept()
3995 newsk->sk_kern_sock = arg->kern; in mptcp_stream_accept()
3996 lock_sock(newsk); in mptcp_stream_accept()
3997 __inet_accept(sock, newsock, newsk); in mptcp_stream_accept()
4007 release_sock(newsk); in mptcp_stream_accept()