Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103410
b: refs/heads/master
c: 2eeea7b
h: refs/heads/master
v: v3
  • Loading branch information
Gerrit Renker committed Jul 13, 2008
1 parent 65e41d8 commit 5bbeb46
Show file tree
Hide file tree
Showing 2 changed files with 6 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: b552c6231f19d50165bbf59e8b34d3f713ab5c01
refs/heads/master: 2eeea7ba6b4b65ed27b7646a1bdea3b45973c861
10 changes: 5 additions & 5 deletions trunk/net/dccp/ccids/lib/loss_interval.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ u8 tfrc_lh_update_i_mean(struct tfrc_loss_hist *lh, struct sk_buff *skb)
{
struct tfrc_loss_interval *cur = tfrc_lh_peek(lh);
u32 old_i_mean = lh->i_mean;
s64 length;
s64 len;

if (cur == NULL) /* not initialised */
return 0;

length = dccp_delta_seqno(cur->li_seqno, DCCP_SKB_CB(skb)->dccpd_seq);
len = dccp_delta_seqno(cur->li_seqno, DCCP_SKB_CB(skb)->dccpd_seq) + 1;

if (length - cur->li_length <= 0) /* duplicate or reordered */
if (len - (s64)cur->li_length <= 0) /* duplicate or reordered */
return 0;

if (SUB16(dccp_hdr(skb)->dccph_ccval, cur->li_ccval) > 4)
Expand All @@ -114,7 +114,7 @@ u8 tfrc_lh_update_i_mean(struct tfrc_loss_hist *lh, struct sk_buff *skb)
if (tfrc_lh_length(lh) == 1) /* due to RFC 3448, 6.3.1 */
return 0;

cur->li_length = length;
cur->li_length = len;
tfrc_lh_calc_i_mean(lh);

return (lh->i_mean < old_i_mean);
Expand Down Expand Up @@ -159,7 +159,7 @@ int tfrc_lh_interval_add(struct tfrc_loss_hist *lh, struct tfrc_rx_hist *rh,
else {
cur->li_length = dccp_delta_seqno(cur->li_seqno, new->li_seqno);
new->li_length = dccp_delta_seqno(new->li_seqno,
tfrc_rx_hist_last_rcv(rh)->tfrchrx_seqno);
tfrc_rx_hist_last_rcv(rh)->tfrchrx_seqno) + 1;
if (lh->counter > (2*LIH_SIZE))
lh->counter -= LIH_SIZE;

Expand Down

0 comments on commit 5bbeb46

Please sign in to comment.