Lines Matching refs:newsk
439 struct sock *newsk; in inet_csk_accept() local
465 newsk = req->sk; in inet_csk_accept()
486 return newsk; in inet_csk_accept()
488 newsk = NULL; in inet_csk_accept()
575 struct sock *newsk, in inet_csk_route_child_sock() argument
580 struct inet_sock *newinet = inet_sk(newsk); in inet_csk_route_child_sock()
787 struct sock *newsk = sk_clone_lock(sk, priority); in inet_csk_clone_lock() local
789 if (newsk) { in inet_csk_clone_lock()
790 struct inet_connection_sock *newicsk = inet_csk(newsk); in inet_csk_clone_lock()
792 inet_sk_set_state(newsk, TCP_SYN_RECV); in inet_csk_clone_lock()
795 inet_sk(newsk)->inet_dport = inet_rsk(req)->ir_rmt_port; in inet_csk_clone_lock()
796 inet_sk(newsk)->inet_num = inet_rsk(req)->ir_num; in inet_csk_clone_lock()
797 inet_sk(newsk)->inet_sport = htons(inet_rsk(req)->ir_num); in inet_csk_clone_lock()
800 sock_reset_flag(newsk, SOCK_RCU_FREE); in inet_csk_clone_lock()
802 inet_sk(newsk)->mc_list = NULL; in inet_csk_clone_lock()
804 newsk->sk_mark = inet_rsk(req)->ir_mark; in inet_csk_clone_lock()
805 atomic64_set(&newsk->sk_cookie, in inet_csk_clone_lock()
815 security_inet_csk_clone(newsk, req); in inet_csk_clone_lock()
817 return newsk; in inet_csk_clone_lock()