Lines Matching refs:req

366 void tcp_openreq_init_rwin(struct request_sock *req,  in tcp_openreq_init_rwin()  argument
369 struct inet_request_sock *ireq = inet_rsk(req); in tcp_openreq_init_rwin()
378 req->window_clamp = tp->window_clamp ? : dst_metric(dst, RTAX_WINDOW); in tcp_openreq_init_rwin()
382 (req->window_clamp > tcp_full_space(sk) || req->window_clamp == 0)) in tcp_openreq_init_rwin()
383 req->window_clamp = tcp_full_space(sk); in tcp_openreq_init_rwin()
388 &req->rcv_wnd, in tcp_openreq_init_rwin()
389 &req->window_clamp, in tcp_openreq_init_rwin()
398 const struct request_sock *req) in tcp_ecn_openreq_child() argument
400 tp->ecn_flags = inet_rsk(req)->ecn_ok ? TCP_ECN_OK : 0; in tcp_ecn_openreq_child()
438 struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req, struct sk_buff *sk… in tcp_create_openreq_child() argument
440 struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC); in tcp_create_openreq_child()
443 const struct inet_request_sock *ireq = inet_rsk(req); in tcp_create_openreq_child()
444 struct tcp_request_sock *treq = tcp_rsk(req); in tcp_create_openreq_child()
475 newtp->total_retrans = req->num_retrans; in tcp_create_openreq_child()
505 newtp->window_clamp = req->window_clamp; in tcp_create_openreq_child()
506 newtp->rcv_ssthresh = req->rcv_wnd; in tcp_create_openreq_child()
507 newtp->rcv_wnd = req->rcv_wnd; in tcp_create_openreq_child()
521 newtp->rx_opt.ts_recent = req->ts_recent; in tcp_create_openreq_child()
536 newtp->rx_opt.mss_clamp = req->mss; in tcp_create_openreq_child()
537 tcp_ecn_openreq_child(newtp, req); in tcp_create_openreq_child()
559 struct request_sock *req, in tcp_check_req() argument
575 tmp_opt.ts_recent = req->ts_recent; in tcp_check_req()
580 tmp_opt.ts_recent_stamp = get_seconds() - ((TCP_TIMEOUT_INIT/HZ)<<req->num_timeout); in tcp_check_req()
586 if (TCP_SKB_CB(skb)->seq == tcp_rsk(req)->rcv_isn && in tcp_check_req()
614 &tcp_rsk(req)->last_oow_ack_time) && in tcp_check_req()
616 !inet_rtx_syn_ack(sk, req)) { in tcp_check_req()
619 expires += min(TCP_TIMEOUT_INIT << req->num_timeout, in tcp_check_req()
622 mod_timer_pending(&req->rsk_timer, expires); in tcp_check_req()
624 req->rsk_timer.expires = expires; in tcp_check_req()
688 tcp_rsk(req)->snt_isn + 1)) in tcp_check_req()
699 tcp_rsk(req)->rcv_nxt, tcp_rsk(req)->rcv_nxt + req->rcv_wnd)) { in tcp_check_req()
702 req->rsk_ops->send_ack(sk, skb, req); in tcp_check_req()
710 if (tmp_opt.saw_tstamp && !after(TCP_SKB_CB(skb)->seq, tcp_rsk(req)->rcv_nxt)) in tcp_check_req()
711 req->ts_recent = tmp_opt.rcv_tsval; in tcp_check_req()
713 if (TCP_SKB_CB(skb)->seq == tcp_rsk(req)->rcv_isn) { in tcp_check_req()
743 if (req->num_timeout < inet_csk(sk)->icsk_accept_queue.rskq_defer_accept && in tcp_check_req()
744 TCP_SKB_CB(skb)->end_seq == tcp_rsk(req)->rcv_isn + 1) { in tcp_check_req()
745 inet_rsk(req)->acked = 1; in tcp_check_req()
756 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL); in tcp_check_req()
760 inet_csk_reqsk_queue_drop(sk, req); in tcp_check_req()
761 inet_csk_reqsk_queue_add(sk, req, child); in tcp_check_req()
769 inet_rsk(req)->acked = 1; in tcp_check_req()
780 req->rsk_ops->send_reset(sk, skb); in tcp_check_req()
782 reqsk_fastopen_remove(sk, req, true); in tcp_check_req()
786 inet_csk_reqsk_queue_drop(sk, req); in tcp_check_req()