SCTP: handle INIT corner-case handling 20/10820/2
authorMarco Varlese <marco.varlese@suse.com>
Mon, 26 Feb 2018 13:52:25 +0000 (14:52 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Mon, 26 Feb 2018 22:27:50 +0000 (22:27 +0000)
commiteacf3cfdaf04395c07830b046037f46ae94b06ab
tree79dc7b072cdb27596ca9748b7556c36cd0e47ebe
parent2ae03d2f8f8336454edb34187e222544c1452014
SCTP: handle INIT corner-case handling

As per RFC4960 the INIT chunk could be received in unexpected scenarios
and - depending on the state of the internal state-machine - the INIT
chunk requires different treatment.
This patch addresses section 5.2.1 and 5.2.2 of the RFC4960.

Change-Id: Ib23ef490c6a5ca3da6c46a9584b75e7577cb7042
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