Lines Matching refs:newsk
308 struct sock *newsk; in inet_csk_accept() local
334 newsk = req->sk; in inet_csk_accept()
355 return newsk; in inet_csk_accept()
357 newsk = NULL; in inet_csk_accept()
441 struct sock *newsk, in inet_csk_route_child_sock() argument
446 struct inet_sock *newinet = inet_sk(newsk); in inet_csk_route_child_sock()
659 struct sock *newsk = sk_clone_lock(sk, priority); in inet_csk_clone_lock() local
661 if (newsk) { in inet_csk_clone_lock()
662 struct inet_connection_sock *newicsk = inet_csk(newsk); in inet_csk_clone_lock()
664 newsk->sk_state = TCP_SYN_RECV; in inet_csk_clone_lock()
667 inet_sk(newsk)->inet_dport = inet_rsk(req)->ir_rmt_port; in inet_csk_clone_lock()
668 inet_sk(newsk)->inet_num = inet_rsk(req)->ir_num; in inet_csk_clone_lock()
669 inet_sk(newsk)->inet_sport = htons(inet_rsk(req)->ir_num); in inet_csk_clone_lock()
670 newsk->sk_write_space = sk_stream_write_space; in inet_csk_clone_lock()
672 newsk->sk_mark = inet_rsk(req)->ir_mark; in inet_csk_clone_lock()
673 atomic64_set(&newsk->sk_cookie, in inet_csk_clone_lock()
683 security_inet_csk_clone(newsk, req); in inet_csk_clone_lock()
685 return newsk; in inet_csk_clone_lock()