netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 net-next 0/5] sctp: clean up __sctp_connect function
@ 2019-07-30 12:38 Xin Long
  2019-07-30 12:38 ` [PATCHv2 net-next 1/5] sctp: only copy the available addr data in sctp_transport_init Xin Long
  2019-07-30 19:42 ` [PATCHv2 net-next 0/5] sctp: clean up __sctp_connect function Marcelo Ricardo Leitner
  0 siblings, 2 replies; 9+ messages in thread
From: Xin Long @ 2019-07-30 12:38 UTC (permalink / raw)
  To: network dev, linux-sctp; +Cc: Marcelo Ricardo Leitner, Neil Horman, davem

This patchset is to factor out some common code for
sctp_sendmsg_new_asoc() and __sctp_connect() into 2
new functioins.

v1->v2:
  - add the patch 1/5 to avoid a slab-out-of-bounds warning.
  - add some code comment for the check change in patch 2/5.
  - remove unused 'addrcnt' as Marcelo noticed in patch 3/5.

Xin Long (5):
  sctp: only copy the available addr data in sctp_transport_init
  sctp: check addr_size with sa_family_t size in
    __sctp_setsockopt_connectx
  sctp: clean up __sctp_connect
  sctp: factor out sctp_connect_new_asoc
  sctp: factor out sctp_connect_add_peer

 net/sctp/socket.c    | 376 ++++++++++++++++++++-------------------------------
 net/sctp/transport.c |   2 +-
 2 files changed, 147 insertions(+), 231 deletions(-)

-- 
2.1.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-30 21:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-30 12:38 [PATCHv2 net-next 0/5] sctp: clean up __sctp_connect function Xin Long
2019-07-30 12:38 ` [PATCHv2 net-next 1/5] sctp: only copy the available addr data in sctp_transport_init Xin Long
2019-07-30 12:38   ` [PATCHv2 net-next 2/5] sctp: check addr_size with sa_family_t size in __sctp_setsockopt_connectx Xin Long
2019-07-30 12:38     ` [PATCHv2 net-next 3/5] sctp: clean up __sctp_connect Xin Long
2019-07-30 12:38       ` [PATCHv2 net-next 4/5] sctp: factor out sctp_connect_new_asoc Xin Long
2019-07-30 12:38         ` [PATCHv2 net-next 5/5] sctp: factor out sctp_connect_add_peer Xin Long
2019-07-30 19:24   ` [PATCHv2 net-next 1/5] sctp: only copy the available addr data in sctp_transport_init Marcelo Ricardo Leitner
2019-07-30 19:42 ` [PATCHv2 net-next 0/5] sctp: clean up __sctp_connect function Marcelo Ricardo Leitner
2019-07-30 21:18   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).