aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/dccp.h
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/dccp.h
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/dccp.h')
-rw-r--r--net/dccp/dccp.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h
index 7b859a723826..2990bfb12587 100644
--- a/net/dccp/dccp.h
+++ b/net/dccp/dccp.h
@@ -155,18 +155,7 @@ extern const char *dccp_state_name(const int state);
155extern void dccp_set_state(struct sock *sk, const int state); 155extern void dccp_set_state(struct sock *sk, const int state);
156extern void dccp_done(struct sock *sk); 156extern void dccp_done(struct sock *sk);
157 157
158static inline void dccp_openreq_init(struct request_sock *req, 158extern void dccp_reqsk_init(struct request_sock *req, struct sk_buff *skb);
159 struct dccp_sock *dp,
160 struct sk_buff *skb)
161{
162 /*
163 * FIXME: fill in the other req fields from the DCCP options
164 * received
165 */
166 inet_rsk(req)->rmt_port = dccp_hdr(skb)->dccph_sport;
167 inet_rsk(req)->acked = 0;
168 req->rcv_wnd = 0;
169}
170 159
171extern int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb); 160extern int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb);
172 161