Skip to contentSkip to conversation

: Set RTO for child socket

PATCH New Gerrit Renker 1 participant 1 message Mar 6, 2007 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 : Set RTO for child socket

[DCCP]: Set RTO for newly created child socket

This mirrors a recent change in tcp_open_req_child, whereby the icsk_rto of the newly created child socket was not set (but rather on the parent socket). Same fix for DCCP.

---
 net/dccp/minisocks.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/dccp/minisocks.c +1 -1
@@ -103,7 +103,7 @@ struct sock *dccp_create_openreq_child(s
 
 	if (newsk != NULL) {
 		const struct dccp_request_sock *dreq = dccp_rsk(req);
-		struct inet_connection_sock *newicsk = inet_csk(sk);
+		struct inet_connection_sock *newicsk = inet_csk(newsk);
 		struct dccp_sock *newdp = dccp_sk(newsk);
 		struct dccp_minisock *newdmsk = dccp_msk(newsk);