commit | 204f817fb9ab1b42c34c27d593cad2992d575f71 | [log] [tgz] |
---|---|---|
author | Xin Long <lucien.xin@gmail.com> | Thu Mar 01 23:05:14 2018 +0800 |
committer | David S. Miller <davem@davemloft.net> | Sun Mar 04 13:00:56 2018 -0500 |
tree | d83eb38ff98b1f67ea9b66eb5daed0c0d945716e | |
parent | becef9b1e249c849ca15889586e02668d6d723a2 [diff] |
sctp: factor out sctp_sendmsg_parse from sctp_sendmsg This patch is to move the codes for parsing msghdr and checking sk into sctp_sendmsg_parse. Note that different from before, 'sinfo' in sctp_sendmsg won't be NULL any more. It gets the value either from cmsgs->srinfo, cmsgs->sinfo or asoc. With it, the 'sinfo' and 'fill_sinfo_ttl' check can be removed from sctp_sendmsg. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>