diff options
author | Marco Varlese <marco.varlese@suse.com> | 2018-10-04 15:46:05 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-10-25 01:05:09 +0000 |
commit | 8797168fe2f4fd32d241126181ad0d06c62c4eb4 (patch) | |
tree | 6fdc5face12961fed6c521cc34dff7627ec446ac /src/vnet/sctp/sctp.c | |
parent | 5f1fd46573aa111018f838db14de53e8ecf854b3 (diff) |
SCTP: DATA chunk padding fix and hardening
According to the RFC 4096 (section 3.3.1) the DATA chunk needs to be
padded to a boundary of 4 bytes with zeros. This patch addresses that
requirement.
At the same time, this patch takes care of adding some hardening for
corner-cases where the transmitted tag could be wrong.
Change-Id: I3b653926e9933d0d3d46bc5f37eaceefd932e874
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
Diffstat (limited to 'src/vnet/sctp/sctp.c')
-rw-r--r-- | src/vnet/sctp/sctp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vnet/sctp/sctp.c b/src/vnet/sctp/sctp.c index 53b44410f07..f2de34dccee 100644 --- a/src/vnet/sctp/sctp.c +++ b/src/vnet/sctp/sctp.c @@ -624,7 +624,6 @@ sctp_session_send_mss (transport_connection_t * trans_conn) update_smallest_pmtu_idx (sctp_conn); u8 idx = sctp_data_subconn_select (sctp_conn); - return sctp_conn->sub_conn[idx].cwnd; } |