• Gerrit Renker's avatar
    dccp ccid-2: Share TCP's minimum RTO code · 4886fcad
    Gerrit Renker authored
    Using a fixed RTO_MIN of 0.2 seconds was found to cause problems for CCID-2
    over 802.11g: at least once per session there was a spurious timeout. It
    helped to then increase the the value of RTO_MIN over this link.
    
    Since the problem is the same as in TCP, this patch makes the solution from
    commit "05bb1fad"
           "[TCP]: Allow minimum RTO to be configurable via routing metrics."
    available to DCCP.
    
    This avoids reinventing the wheel, so that e.g. the following works in the
    expected way now also for CCID-2:
    
    > ip route change 10.0.0.2 rto_min 800 dev ath0
    
    Luckily this useful rto_min function was recently moved to net/tcp.h,
    which simplifies sharing code originating from TCP.
    
    Documentation also updated (plus minor whitespace fixes).
    Signed-off-by: default avatarGerrit Renker <gerrit@erg.abdn.ac.uk>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4886fcad
ccid2.c 19.3 KB