sctp: add a function to verify the sctp reconf chunk
authorXin Long <lucien.xin@gmail.com>
Fri, 17 Feb 2017 04:45:41 +0000 (12:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Feb 2017 23:17:59 +0000 (18:17 -0500)
commitea62504373fa9ff3ced27e07e1eac041888ecc46
treeac30c689bd6d88b6356b7f39787fc55623e9cdd0
parent16e1a91965b02fe24d24e8b8d7b2245d29ed6a70
sctp: add a function to verify the sctp reconf chunk

This patch is to add a function sctp_verify_reconf to do some length
check and multi-params check for sctp stream reconf according to rfc6525
section 3.1.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sm.h
net/sctp/sm_make_chunk.c