• Gerrit Renker's avatar
    [DCCP]: Remove ambiguity in the way before48 is used · 8d13bf9a
    Gerrit Renker authored
    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
    8d13bf9a
input.c 16.5 KB