]> 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)
commit1925472311993ba770531ebb8193e1877ca1da05
tree53b0f5a6f7ddbf532003bff2aee85bc91c37857d
parentebff4f7092b3d6e21c2b545c00022b6be601a1d7
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