SCTP: fix corrupted buffers seen in output node 38/10538/4
authorMarco Varlese <marco.varlese@suse.com>
Wed, 14 Feb 2018 14:38:35 +0000 (15:38 +0100)
committerMarco Varlese <marco.varlese@suse.com>
Thu, 15 Feb 2018 09:11:57 +0000 (10:11 +0100)
commitfae4039ad2af251690e4cb79d5842a6e97029032
treeacfe7c76383df97a7fc7c285860d4b7338b2610c
parenta38783e0d1ab1d4c661570a1ec90670a1fb0598d
SCTP: fix corrupted buffers seen in output node

The issue observed in the output-node was actually
caused by one of the input-node pushing buffers to
the output node when not required. That is the case
with the parsing/handling of incoming packets like
the COOKIE_ACK, HEARTBEAT_ACK, DATA, SACK which do
not require a response to be sent to the other peer.
In all the mentioned cases the packets (buffers) need
to be consumed and dropped instead of heading to the
output-node.

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