Lines Matching refs:newsk
308 struct sock *newsk; in inet_csk_accept() local
335 newsk = req->sk; in inet_csk_accept()
356 return newsk; in inet_csk_accept()
358 newsk = NULL; in inet_csk_accept()
444 struct sock *newsk, in inet_csk_route_child_sock() argument
448 struct inet_sock *newinet = inet_sk(newsk); in inet_csk_route_child_sock()
680 struct sock *newsk = sk_clone_lock(sk, priority); in inet_csk_clone_lock() local
682 if (newsk != NULL) { in inet_csk_clone_lock()
683 struct inet_connection_sock *newicsk = inet_csk(newsk); in inet_csk_clone_lock()
685 newsk->sk_state = TCP_SYN_RECV; in inet_csk_clone_lock()
688 inet_sk(newsk)->inet_dport = inet_rsk(req)->rmt_port; in inet_csk_clone_lock()
689 inet_sk(newsk)->inet_num = ntohs(inet_rsk(req)->loc_port); in inet_csk_clone_lock()
690 inet_sk(newsk)->inet_sport = inet_rsk(req)->loc_port; in inet_csk_clone_lock()
691 newsk->sk_write_space = sk_stream_write_space; in inet_csk_clone_lock()
693 inet_sk(newsk)->mc_list = NULL; in inet_csk_clone_lock()
695 newsk->sk_mark = inet_rsk(req)->ir_mark; in inet_csk_clone_lock()
704 security_inet_csk_clone(newsk, req); in inet_csk_clone_lock()
706 return newsk; in inet_csk_clone_lock()