Lines Matching refs:newsk

3189 static void mptcp_copy_ip6_options(struct sock *newsk, const struct sock *sk)  in mptcp_copy_ip6_options()  argument
3195 newnp = inet6_sk(newsk); in mptcp_copy_ip6_options()
3200 opt = ipv6_dup_options(newsk, opt); in mptcp_copy_ip6_options()
3209 static void mptcp_copy_ip_options(struct sock *newsk, const struct sock *sk) in mptcp_copy_ip_options() argument
3215 newinet = inet_sk(newsk); in mptcp_copy_ip_options()
3220 newopt = sock_kmalloc(newsk, sizeof(*inet_opt) + in mptcp_copy_ip_options()
3866 struct sock *ssk, *newsk; in mptcp_stream_accept() local
3879 newsk = inet_csk_accept(ssk, flags, &err, kern); in mptcp_stream_accept()
3880 if (!newsk) in mptcp_stream_accept()
3883 pr_debug("newsk=%p, subflow is mptcp=%d\n", newsk, sk_is_mptcp(newsk)); in mptcp_stream_accept()
3884 if (sk_is_mptcp(newsk)) { in mptcp_stream_accept()
3888 subflow = mptcp_subflow_ctx(newsk); in mptcp_stream_accept()
3895 tcp_sk(newsk)->is_mptcp = 0; in mptcp_stream_accept()
3899 newsk = new_mptcp_sock; in mptcp_stream_accept()
3902 newsk->sk_kern_sock = kern; in mptcp_stream_accept()
3903 lock_sock(newsk); in mptcp_stream_accept()
3904 __inet_accept(sock, newsock, newsk); in mptcp_stream_accept()
3907 msk = mptcp_sk(newsk); in mptcp_stream_accept()
3924 __mptcp_close_ssk(newsk, msk->first, in mptcp_stream_accept()
3927 mptcp_set_state(newsk, TCP_CLOSE); in mptcp_stream_accept()
3931 newsk->sk_kern_sock = kern; in mptcp_stream_accept()
3932 lock_sock(newsk); in mptcp_stream_accept()
3933 __inet_accept(sock, newsock, newsk); in mptcp_stream_accept()
3943 release_sock(newsk); in mptcp_stream_accept()