]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/dccp/input.c
[DCCP]: Remove ambiguity in the way before48 is used
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Tue, 20 Mar 2007 16:08:19 +0000 (13:08 -0300)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:26:46 +0000 (22:26 -0700)
commit8d13bf9a0bd4984756e234ce54299b92acefab99
tree3a5fa39fec52b934d0d86afe93423cb9bb5ded20
parentb16be51b5e5d75cec71b18ebc75f15a4734c62ad
[DCCP]: Remove ambiguity in the way before48 is used

This removes two ambiguities in employing the new definition of before48,
following the analysis on http://www.mail-archive.com/dccp@vger.kernel.org/msg01295.html

 (1) Updating GSR when P.seqno >= S.SWL
     With the old definition we did not update when P.seqno and S.SWL are 2^47 apart. To
     ensure the same behaviour as with the old definition, this is replaced with the
     equivalent condition dccp_delta_seqno(S.SWL, P.seqno) >= 0

 (2) Sending SYNC when P.seqno >= S.OSR
     Here it is debatable whether the new definition causes an ambiguity: the case is
     similar to (1); and to have consistency with the case (1), we use the equivalent
     condition dccp_delta_seqno(S.OSR, P.seqno) >= 0

Detailed Justification
net/dccp/input.c