diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2008-09-04 01:30:19 -0400 |
---|---|---|
committer | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2008-09-04 01:45:36 -0400 |
commit | 4829007c7bc689cbc290fc09eccbe90bd52c2a5e (patch) | |
tree | f8f2058b9db8e8df7b4cb2f1f850ca3115e5c58f /net/dccp/ackvec.h | |
parent | ff49e27089ec363b7fc3849504e0435d447ab18a (diff) |
dccp ccid-2: Separate internals of Ack Vectors from option-parsing code
This patch
* separates Ack Vector housekeeping code from option-insertion code;
* shifts option-specific code from ackvec.c into options.c;
* introduces a dedicated routine to take care of the Ack Vector records;
* simplifies the dccp_ackvec_insert_avr() routine: the BUG_ON was redundant,
since the list is automatically arranged in descending order of ack_seqno.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Diffstat (limited to 'net/dccp/ackvec.h')
-rw-r--r-- | net/dccp/ackvec.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/dccp/ackvec.h b/net/dccp/ackvec.h index df18f9030db..b34e5ed4c34 100644 --- a/net/dccp/ackvec.h +++ b/net/dccp/ackvec.h | |||
@@ -112,7 +112,7 @@ extern int dccp_ackvec_parse(struct sock *sk, const struct sk_buff *skb, | |||
112 | u64 *ackno, const u8 opt, | 112 | u64 *ackno, const u8 opt, |
113 | const u8 *value, const u8 len); | 113 | const u8 *value, const u8 len); |
114 | 114 | ||
115 | extern int dccp_insert_option_ackvec(struct sock *sk, struct sk_buff *skb); | 115 | extern int dccp_ackvec_update_records(struct dccp_ackvec *av, u64 seq, u8 sum); |
116 | 116 | ||
117 | static inline int dccp_ackvec_pending(const struct dccp_ackvec *av) | 117 | static inline int dccp_ackvec_pending(const struct dccp_ackvec *av) |
118 | { | 118 | { |
@@ -155,8 +155,7 @@ static inline int dccp_ackvec_parse(struct sock *sk, const struct sk_buff *skb, | |||
155 | return -1; | 155 | return -1; |
156 | } | 156 | } |
157 | 157 | ||
158 | static inline int dccp_insert_option_ackvec(const struct sock *sk, | 158 | static inline int dccp_ackvec_update_records(struct dccp_ackvec *av, u64 seq, u8 nonce) |
159 | const struct sk_buff *skb) | ||
160 | { | 159 | { |
161 | return -1; | 160 | return -1; |
162 | } | 161 | } |