]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit14effc34fd21da31d8818af9a491816e9da0b1bc
treeac30c689bd6d88b6356b7f39787fc55623e9cdd0
parentd09833d3b7ab297b362e577356f70ffe39ce5fc5
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