Skip to content

add the support for sctp_sendv and sctp_recvv

Xin Long linux-sctp 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesApplied
  2. v13 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- remove the extra loop and if-else checks from sctp_sendv() by pre-allocating a maximum buffer, according to Neil's suggestion.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3lib: add the core functions for sctp_sendv and sctp_recvvsrc/include/netinet/sctp.h src/lib/Versions.map src/lib/recvmsg.c +1 more+263 -00 replies
2/3func_tests: add the testing for sctp_sendv and sctp_recvvsrc/func_tests/Makefile.am src/func_tests/test_sctp_sendvrecvv.c src/testlib/sctputil.h+304 -00 replies
3/3man: add the man docs for sctp_sendv and sctp_recvvman/Makefile.am man/sctp.7 man/sctp_bindx.3 +10 more+217 -20 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNeil Horman
SeriesA-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHv2 lksctp-tools 0/3] add the support for sctp_sendv and sctp_recvv

sctp_sendv and sctp_recvv provide an extensible way for an application to communicate different snd attributes to the SCTP stack when sending a message, and to pass up different SCTP attributes associated with a received message to an application when receiving a message, as said in rfc6458.

This patchset is to add the sctp_sendv and sctp_recvv functions, their man docs and the function testing for them. These are based on linux kernel-4.16.

v1->v2:
- remove the extra loop and if-else checks from sctp_sendv() by pre-allocating a maximum buffer, according to Neil's suggestion.

Xin Long (3):
lib: add the core functions for sctp_sendv and sctp_recvv
func_tests: add the testing for sctp_sendv and sctp_recvv
man: add the man docs for sctp_sendv and sctp_recvv

 man/Makefile.am                       |   2 +-
 man/sctp.7                            |   2 +
 man/sctp_bindx.3                      |   2 +
 man/sctp_connectx.3                   |   2 +
 man/sctp_getladdrs.3                  |   2 +
 man/sctp_getpaddrs.3                  |   2 +
 man/sctp_opt_info.3                   |   2 +
 man/sctp_peeloff.3                    |   2 +
 man/sctp_recvmsg.3                    |   1 +
 man/sctp_recvv.3                      |  99 +++++++++++++
 man/sctp_send.3                       |   4 +-
 man/sctp_sendmsg.3                    |   2 +
 man/sctp_sendv.3                      |  97 ++++++++++++
 src/func_tests/Makefile.am            |   5 +
 src/func_tests/test_sctp_sendvrecvv.c | 270 ++++++++++++++++++++++++++++++++++
 src/include/netinet/sctp.h            |  43 ++++++
 src/lib/Versions.map                  |   2 +
 src/lib/recvmsg.c                     |  88 +++++++++++
 src/lib/sendmsg.c                     | 130 ++++++++++++++++
 src/testlib/sctputil.h                |  29 ++++
 20 files changed, 784 insertions(+), 2 deletions(-)
 create mode 100644 man/sctp_recvv.3
 create mode 100644 man/sctp_sendv.3
 create mode 100644 src/func_tests/test_sctp_sendvrecvv.c
Signature · 1 line
2.1.0