From 40b3b72e304d40f6318f4da8bc04fec68aca06d4 Mon Sep 17 00:00:00 2001 From: Gerrit Renker Date: Sat, 24 Nov 2007 20:43:59 -0200 Subject: [PATCH] --- yaml --- r: 78195 b: refs/heads/master c: cfbbeabc8864902c4af1c0cadf0972b352930a26 h: refs/heads/master i: 78193: c2c50a74cb858c8dda338aee8ea8ae647f99957f 78191: c144635cc7fa2025830e48139e6de788d5ef7bd7 v: v3 --- [refs] | 2 +- trunk/net/dccp/ccids/ccid2.c | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/[refs] b/[refs] index ec4237be3d36..2e9eac739aed 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3de5489f47febe0333b142e0eb6389b9924b2634 +refs/heads/master: cfbbeabc8864902c4af1c0cadf0972b352930a26 diff --git a/trunk/net/dccp/ccids/ccid2.c b/trunk/net/dccp/ccids/ccid2.c index 7873dc78b6bc..55522182f2fa 100644 --- a/trunk/net/dccp/ccids/ccid2.c +++ b/trunk/net/dccp/ccids/ccid2.c @@ -24,9 +24,6 @@ /* * This implementation should follow RFC 4341 - * - * BUGS: - * - sequence number wrapping */ #include "../ccid.h" @@ -619,9 +616,8 @@ static void ccid2_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb) /* go through this ack vector */ while (veclen--) { const u8 rl = *vector & DCCP_ACKVEC_LEN_MASK; - u64 ackno_end_rl; + u64 ackno_end_rl = SUB48(ackno, rl); - dccp_set_seqno(&ackno_end_rl, ackno - rl); ccid2_pr_debug("ackvec start:%llu end:%llu\n", (unsigned long long)ackno, (unsigned long long)ackno_end_rl); @@ -671,8 +667,7 @@ static void ccid2_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb) if (done) break; - - dccp_set_seqno(&ackno, ackno_end_rl - 1); + ackno = SUB48(ackno_end_rl, 1); vector++; } if (done)