707 void tcp_init_xmit_timers(struct sock *sk)
708 {
709 inet_csk_init_xmit_timers(sk, &tcp_write_timer, &tcp_delack_timer,
710 &tcp_keepalive_timer);
711 }
378 void tcp_init_sock(struct sock *sk)
379 {
380 struct inet_connection_sock *icsk = inet_csk(sk);
381 struct tcp_sock *tp = tcp_sk(sk);
382
383 tp->out_of_order_queue = RB_ROOT;
384 tcp_init_xmit_timers(sk);
385 tcp_prequeue_init(tp);
386 INIT_LIST_HEAD(&tp->tsq_node);
387
388 icsk->icsk_rto = TCP_TIMEOUT_INIT;
389 tp->mdev_us = jiffies_to_usecs(TCP_TIMEOUT_INIT);