diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2010-11-14 11:25:11 -0500 |
---|---|---|
committer | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2010-11-15 01:11:59 -0500 |
commit | 5753fdfe8bd8e9a2ff9e5af19b0ffc78bfcd502a (patch) | |
tree | 2a694538aef985ffffd140a861df7efdc73aeddf /net/dccp/input.c | |
parent | c25ecd0a21d5e08160cb5cc984f9e2b8ee347443 (diff) |
dccp ccid-2: Algorithm to update buffer state
This provides a routine to consistently update the buffer state when the
peer acknowledges receipt of Ack Vectors; updating state in the list of Ack
Vectors as well as in the circular buffer.
While based on RFC 4340, several additional (and necessary) precautions were
added to protect the consistency of the buffer state. These additions are
essential, since analysis and experience showed that the basic algorithm was
insufficient for this task (which lead to problems that were hard to debug).
The algorithm now
* deals with HC-sender acknowledging to HC-receiver and vice versa,
* keeps track of the last unacknowledged but received seqno in tail_ackno,
* has special cases to reset the overflow condition when appropriate,
* is protected against receiving older information (would mess up buffer state).
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Diffstat (limited to 'net/dccp/input.c')
-rw-r--r-- | net/dccp/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dccp/input.c b/net/dccp/input.c index c7aeeba859d4..f91cf5ada306 100644 --- a/net/dccp/input.c +++ b/net/dccp/input.c | |||
@@ -165,8 +165,8 @@ static void dccp_event_ack_recv(struct sock *sk, struct sk_buff *skb) | |||
165 | struct dccp_sock *dp = dccp_sk(sk); | 165 | struct dccp_sock *dp = dccp_sk(sk); |
166 | 166 | ||
167 | if (dp->dccps_hc_rx_ackvec != NULL) | 167 | if (dp->dccps_hc_rx_ackvec != NULL) |
168 | dccp_ackvec_check_rcv_ackno(dp->dccps_hc_rx_ackvec, sk, | 168 | dccp_ackvec_clear_state(dp->dccps_hc_rx_ackvec, |
169 | DCCP_SKB_CB(skb)->dccpd_ack_seq); | 169 | DCCP_SKB_CB(skb)->dccpd_ack_seq); |
170 | } | 170 | } |
171 | 171 | ||
172 | static void dccp_deliver_input_to_ccids(struct sock *sk, struct sk_buff *skb) | 172 | static void dccp_deliver_input_to_ccids(struct sock *sk, struct sk_buff *skb) |