]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f7f4614142bfd56b8f787b5ba684dd639305192
tree53b0f5a6f7ddbf532003bff2aee85bc91c37857d
parentb3eecd99794a0bcfc3bc1a59e6ec72762034cee6
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