aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ipv4.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2005-08-09 23:31:11 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 18:55:43 -0400
commit0b4e03bf0bc43ad6250a1e2fa25fc3eb2b028977 (patch)
treefc21dfde1ae4c64c2ebcc56e4cdc84641fc06229 /net/dccp/ipv4.c
parent27258ee54f8cd4a43d09319aa5448145afc2cb8d (diff)
[DCCP]: Initialize icsk_rto in dccp_v4_init_sock
Fixes nasty bug related to the retransmit timer (yeah, DCCP does retransmits) firing too early. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ipv4.c')
-rw-r--r--net/dccp/ipv4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c
index 4fa56dbcbea4..6bccf4dd1e70 100644
--- a/net/dccp/ipv4.c
+++ b/net/dccp/ipv4.c
@@ -1219,6 +1219,7 @@ static int dccp_v4_init_sock(struct sock *sk)
1219 dccp_ctl_socket_init = 0; 1219 dccp_ctl_socket_init = 0;
1220 1220
1221 dccp_init_xmit_timers(sk); 1221 dccp_init_xmit_timers(sk);
1222 inet_csk(sk)->icsk_rto = DCCP_TIMEOUT_INIT;
1222 sk->sk_state = DCCP_CLOSED; 1223 sk->sk_state = DCCP_CLOSED;
1223 dp->dccps_mss_cache = 536; 1224 dp->dccps_mss_cache = 536;
1224 dp->dccps_role = DCCP_ROLE_UNDEFINED; 1225 dp->dccps_role = DCCP_ROLE_UNDEFINED;