• G
    [DCCP] ccid3: Shift window counter computation · 9f8681db
    Gerrit Renker 提交于
     This puts the window counter computation [RFC 4342, 8.1] into a separate
     function which is called whenever a new packet is ready for immediate
     transmission in ccid3_hc_tx_send_packet.
    
    Justification:
    
     The window counter update was previously computed after the packet was sent. This has
     two drawbacks, both fixed by this patch:
       1) re-compute another timestamp almost directly after the packet was sent (expensive),
       2) the CCVal for the window counter is needed at the instant the packet is sent.
    
    Further details:
    
     The initialisation of the window counter is left in the state NO_SENT, as before.
     The algorithm will do nothing if either RTT is initialised to 0 (which is ok) or if
     the RTT value remains below 4 microseconds (which is almost pathological).
    Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
    Acked-by: NIan McDonald <ian.mcdonald@jandi.co.nz>
    Signed-off-by: NArnaldo Carvalho de Melo <acme@mandriva.com>
    9f8681db
ccid3.c 37.1 KB