Lines Matching refs:newsk
238 struct sock *newsk; in inet_csk_accept() local
264 newsk = reqsk_queue_get_child(&icsk->icsk_accept_queue, sk); in inet_csk_accept()
265 WARN_ON(newsk->sk_state == TCP_SYN_RECV); in inet_csk_accept()
268 return newsk; in inet_csk_accept()
270 newsk = NULL; in inet_csk_accept()
513 struct sock *newsk = sk_clone(sk, priority); in inet_csk_clone() local
515 if (newsk != NULL) { in inet_csk_clone()
516 struct inet_connection_sock *newicsk = inet_csk(newsk); in inet_csk_clone()
518 newsk->sk_state = TCP_SYN_RECV; in inet_csk_clone()
521 inet_sk(newsk)->dport = inet_rsk(req)->rmt_port; in inet_csk_clone()
522 inet_sk(newsk)->num = ntohs(inet_rsk(req)->loc_port); in inet_csk_clone()
523 inet_sk(newsk)->sport = inet_rsk(req)->loc_port; in inet_csk_clone()
524 newsk->sk_write_space = sk_stream_write_space; in inet_csk_clone()
533 security_inet_csk_clone(newsk, req); in inet_csk_clone()
535 return newsk; in inet_csk_clone()