Send always HBs when in PF state.

MFC after: 1 week
X-MFC with: r234296
This commit is contained in:
Michael Tuexen 2012-04-14 21:01:44 +00:00
parent ca7567c923
commit 4dca0ef478
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234297

View File

@ -1451,7 +1451,8 @@ sctp_heartbeat_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
} else {
ms_gone_by = 0xffffffff;
}
if (ms_gone_by >= net->heart_beat_delay) {
if ((ms_gone_by >= net->heart_beat_delay) ||
(net->dest_state & SCTP_ADDR_PF)) {
sctp_send_hb(stcb, net, SCTP_SO_NOT_LOCKED);
}
}