• Gerrit Renker's avatar
    dccp ccid-3: Update the RX history records in one place · 88e97a93
    Gerrit Renker authored
    This patch is a requirement for enabling ECN support later on. With that change
    in mind, the following preparations are done:
     * renamed handle_loss() into congestion_event() since it returns true when a
       congestion event happens (it will eventually also take care of ECN packets);
     * lets tfrc_rx_congestion_event() always update the RX history records, since
       this routine needs to be called for each non-duplicate packet anyway;
     * made all involved boolean-type functions to have return type `bool';
    
    Updating the RX history records is now only necessary for the packets received
    up to sending the first feedback. The receiver code becomes again simpler.
    Signed-off-by: default avatarGerrit Renker <gerrit@erg.abdn.ac.uk>
    88e97a93
loss_interval.c 5.83 KB