sctp: improve path verification
When sending path confirmation heartbeats, do not take HB.interval into account when the path is still reachable. Thanks to Alexander Funke for finding the issue and suggesting a fix. MFC after: 3 days
This commit is contained in:
parent
9b2a35b3a9
commit
9312ba239e
@ -2300,7 +2300,8 @@ sctp_timer_start(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb,
|
||||
} else {
|
||||
to_ticks = UINT32_MAX;
|
||||
}
|
||||
if (((net->dest_state & SCTP_ADDR_UNCONFIRMED) == 0) &&
|
||||
if (!((net->dest_state & SCTP_ADDR_UNCONFIRMED) &&
|
||||
(net->dest_state & SCTP_ADDR_REACHABLE)) &&
|
||||
((net->dest_state & SCTP_ADDR_PF) == 0)) {
|
||||
if (net->heart_beat_delay < (UINT32_MAX - to_ticks)) {
|
||||
to_ticks += net->heart_beat_delay;
|
||||
|
Loading…
Reference in New Issue
Block a user