• Xin Long's avatar
    sctp: add the probe timer in transport for PLPMTUD · 92548ec2
    Xin Long authored
    There are 3 timers described in rfc8899#section-5.1.1:
    
      PROBE_TIMER, PMTU_RAISE_TIMER, CONFIRMATION_TIMER
    
    This patches adds a 'probe_timer' in transport, and it works as either
    PROBE_TIMER or PMTU_RAISE_TIMER. At most time, it works as PROBE_TIMER
    and expires every a 'probe_interval' time to send the HB probe packet.
    When transport pl enters COMPLETE state, it works as PMTU_RAISE_TIMER
    and expires in 'probe_interval * 30' time to go back to SEARCH state
    and do searching again.
    
    SCTP HB is an acknowledged packet, CONFIRMATION_TIMER is not needed.
    
    The timer will start when transport pl enters BASE state and stop
    when it enters DISABLED state.
    Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
    Acked-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    92548ec2
debug.c 3.83 KB