diff options
Diffstat (limited to 'net/dccp/minisocks.c')
-rw-r--r-- | net/dccp/minisocks.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/dccp/minisocks.c b/net/dccp/minisocks.c index e6bf99e3e41a..afdacbb94d75 100644 --- a/net/dccp/minisocks.c +++ b/net/dccp/minisocks.c | |||
@@ -125,6 +125,7 @@ struct sock *dccp_create_openreq_child(struct sock *sk, | |||
125 | newdp->dccps_timestamp_time = dreq->dreq_timestamp_time; | 125 | newdp->dccps_timestamp_time = dreq->dreq_timestamp_time; |
126 | newicsk->icsk_rto = DCCP_TIMEOUT_INIT; | 126 | newicsk->icsk_rto = DCCP_TIMEOUT_INIT; |
127 | 127 | ||
128 | INIT_LIST_HEAD(&newdp->dccps_featneg); | ||
128 | if (dccp_feat_clone(sk, newsk)) | 129 | if (dccp_feat_clone(sk, newsk)) |
129 | goto out_free; | 130 | goto out_free; |
130 | 131 | ||
@@ -304,7 +305,8 @@ void dccp_reqsk_send_ack(struct sock *sk, struct sk_buff *skb, | |||
304 | 305 | ||
305 | EXPORT_SYMBOL_GPL(dccp_reqsk_send_ack); | 306 | EXPORT_SYMBOL_GPL(dccp_reqsk_send_ack); |
306 | 307 | ||
307 | void dccp_reqsk_init(struct request_sock *req, struct sk_buff *skb) | 308 | int dccp_reqsk_init(struct request_sock *req, |
309 | struct dccp_sock const *dp, struct sk_buff const *skb) | ||
308 | { | 310 | { |
309 | struct dccp_request_sock *dreq = dccp_rsk(req); | 311 | struct dccp_request_sock *dreq = dccp_rsk(req); |
310 | 312 | ||
@@ -313,6 +315,9 @@ void dccp_reqsk_init(struct request_sock *req, struct sk_buff *skb) | |||
313 | inet_rsk(req)->acked = 0; | 315 | inet_rsk(req)->acked = 0; |
314 | req->rcv_wnd = sysctl_dccp_feat_sequence_window; | 316 | req->rcv_wnd = sysctl_dccp_feat_sequence_window; |
315 | dreq->dreq_timestamp_echo = 0; | 317 | dreq->dreq_timestamp_echo = 0; |
318 | |||
319 | /* inherit feature negotiation options from listening socket */ | ||
320 | return dccp_feat_clone_list(&dp->dccps_featneg, &dreq->dreq_featneg); | ||
316 | } | 321 | } |
317 | 322 | ||
318 | EXPORT_SYMBOL_GPL(dccp_reqsk_init); | 323 | EXPORT_SYMBOL_GPL(dccp_reqsk_init); |