SCTP: handling of heartbeating and max-retransmits 25/10425/3
authorMarco Varlese <marco.varlese@suse.com>
Tue, 6 Feb 2018 12:48:30 +0000 (13:48 +0100)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 6 Feb 2018 17:44:23 +0000 (17:44 +0000)
commitdf5a99cef13ff6a22c195091be45152dc65f5d71
tree229afaffac54a30e0c318c0e5d35c440dd364a5b
parente060ed1e1891f0fdf88b53865eccded38728f44c
SCTP: handling of heartbeating and max-retransmits

This patch address the need to send/receive heartbeats between peers.
At the same time, the number of unacked heartbeats is tracked and when
the peer requests to send DATA to the remote-peer the value of unacked
heartbeats needs to be checked against the maximum value allowed for
retransmissions. If the unacked heartbeats value is higher then the
remote-peer is considered unreachable and the connetion needs to be
shutdown.

Change-Id: I2b1a21c26775e734dbe82486f40982ed5702dc63
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
src/vnet/sctp/sctp.c
src/vnet/sctp/sctp.h
src/vnet/sctp/sctp_input.c
src/vnet/sctp/sctp_output.c