Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34685
b: refs/heads/master
c: 23d06e3
h: refs/heads/master
i:
  34683: f18cc0c
v: v3
  • Loading branch information
Andrea Bittau authored and David S. Miller committed Sep 22, 2006
1 parent 45b0835 commit 44530f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a1e59abf824969554b90facd44a4ab16e265afa4
refs/heads/master: 23d06e3b986677ec57007a24891fa9deb09ac973
12 changes: 7 additions & 5 deletions trunk/net/dccp/ackvec.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,13 @@ static void dccp_ackvec_throw_record(struct dccp_ackvec *av,
{
struct dccp_ackvec_record *next;

av->dccpav_buf_tail = avr->dccpavr_ack_ptr - 1;
if (av->dccpav_buf_tail == 0)
av->dccpav_buf_tail = DCCP_MAX_ACKVEC_LEN - 1;

av->dccpav_vec_len -= avr->dccpavr_sent_len;
/* sort out vector length */
if (av->dccpav_buf_head <= avr->dccpavr_ack_ptr)
av->dccpav_vec_len = avr->dccpavr_ack_ptr - av->dccpav_buf_head;
else
av->dccpav_vec_len = DCCP_MAX_ACKVEC_LEN - 1
- av->dccpav_buf_head
+ avr->dccpavr_ack_ptr;

/* free records */
list_for_each_entry_safe_from(avr, next, &av->dccpav_records,
Expand Down

0 comments on commit 44530f6

Please sign in to comment.