sctp: factor out sctp_connect_new_asoc
authorXin Long <lucien.xin@gmail.com>
Tue, 30 Jul 2019 12:38:22 +0000 (20:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jul 2019 21:18:14 +0000 (14:18 -0700)
commitf26f995122f4c16c3a863aacbe85043135976632
tree53b0f5a6f7ddbf532003bff2aee85bc91c37857d
parentdd8378b3af57840ef1cc87e416bd0bb35e60d8ec
sctp: factor out sctp_connect_new_asoc

In this function factored out from sctp_sendmsg_new_asoc() and
__sctp_connect(), it creates the asoc and adds a peer with the
1st addr.

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