diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2006-11-10 16:08:37 -0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-02 21:22:03 -0800 |
commit | cf557926f6955b4c3fa55e81fdb3675e752e8eed (patch) | |
tree | 672d24def170058545736be30040ef2249741cc3 /net/dccp/dccp.h | |
parent | f45b3ec481581f24719d8ab0bc812c02fcedc2bc (diff) | |
download | kernel_samsung_smdk4412-cf557926f6955b4c3fa55e81fdb3675e752e8eed.zip kernel_samsung_smdk4412-cf557926f6955b4c3fa55e81fdb3675e752e8eed.tar.gz kernel_samsung_smdk4412-cf557926f6955b4c3fa55e81fdb3675e752e8eed.tar.bz2 |
[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.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index 7b859a7..2990bfb 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h @@ -155,18 +155,7 @@ extern const char *dccp_state_name(const int state); extern void dccp_set_state(struct sock *sk, const int state); extern void dccp_done(struct sock *sk); -static inline void dccp_openreq_init(struct request_sock *req, - struct dccp_sock *dp, - struct sk_buff *skb) -{ - /* - * FIXME: fill in the other req fields from the DCCP options - * received - */ - inet_rsk(req)->rmt_port = dccp_hdr(skb)->dccph_sport; - inet_rsk(req)->acked = 0; - req->rcv_wnd = 0; -} +extern void dccp_reqsk_init(struct request_sock *req, struct sk_buff *skb); extern int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb); |