]> Git Repo - linux.git/commit
sctp: factor out sctp_sendmsg_parse from sctp_sendmsg
authorXin Long <[email protected]>
Thu, 1 Mar 2018 15:05:14 +0000 (23:05 +0800)
committerDavid S. Miller <[email protected]>
Sun, 4 Mar 2018 18:00:56 +0000 (13:00 -0500)
commit204f817fb9ab1b42c34c27d593cad2992d575f71
treed83eb38ff98b1f67ea9b66eb5daed0c0d945716e
parentbecef9b1e249c849ca15889586e02668d6d723a2
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/sctp/socket.c
This page took 0.053558 seconds and 4 git commands to generate.