aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/minisocks.c
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2006-11-10 13:08:37 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:22:03 -0500
commitcf557926f6955b4c3fa55e81fdb3675e752e8eed (patch)
tree672d24def170058545736be30040ef2249741cc3 /net/dccp/minisocks.c
parentf45b3ec481581f24719d8ab0bc812c02fcedc2bc (diff)
[DCCP]: tidy up dccp_v{4,6}_conn_request
This is a code simplification to remove reduplicated code by concentrating and abstracting shared code. Detailed Changes:
Diffstat (limited to 'net/dccp/minisocks.c')
-rw-r--r--net/dccp/minisocks.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/dccp/minisocks.c b/net/dccp/minisocks.c
index 5f3e1a4c036b..0f228ab5169d 100644
--- a/net/dccp/minisocks.c
+++ b/net/dccp/minisocks.c
@@ -293,3 +293,12 @@ void dccp_reqsk_send_ack(struct sk_buff *skb, struct request_sock *rsk)
293} 293}
294 294
295EXPORT_SYMBOL_GPL(dccp_reqsk_send_ack); 295EXPORT_SYMBOL_GPL(dccp_reqsk_send_ack);
296
297void dccp_reqsk_init(struct request_sock *req, struct sk_buff *skb)
298{
299 inet_rsk(req)->rmt_port = dccp_hdr(skb)->dccph_sport;
300 inet_rsk(req)->acked = 0;
301 req->rcv_wnd = dccp_feat_default_sequence_window;
302}
303
304EXPORT_SYMBOL_GPL(dccp_reqsk_init);