sctp: add the probe timer in transport for PLPMTUD
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:Xin Long <lucien.xin@gmail.com> Acked-by:
Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/sctp/command.h 1 addition, 0 deletionsinclude/net/sctp/command.h
- include/net/sctp/constants.h 1 addition, 0 deletionsinclude/net/sctp/constants.h
- include/net/sctp/sctp.h 8 additions, 1 deletioninclude/net/sctp/sctp.h
- include/net/sctp/sm.h 2 additions, 0 deletionsinclude/net/sctp/sm.h
- include/net/sctp/structs.h 4 additions, 0 deletionsinclude/net/sctp/structs.h
- net/sctp/debug.c 1 addition, 0 deletionsnet/sctp/debug.c
- net/sctp/sm_sideeffect.c 37 additions, 0 deletionsnet/sctp/sm_sideeffect.c
- net/sctp/sm_statefuns.c 17 additions, 0 deletionsnet/sctp/sm_statefuns.c
- net/sctp/sm_statetable.c 20 additions, 0 deletionsnet/sctp/sm_statetable.c
- net/sctp/transport.c 18 additions, 0 deletionsnet/sctp/transport.c
Loading
Please register or sign in to comment