All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 lksctp-tools 0/3] add the support for sctp_sendv and sctp_recvv
@ 2018-05-02 16:12 Xin Long
  2018-05-07 11:13 ` Neil Horman
  2018-05-09  2:05 ` Marcelo Ricardo Leitner
  0 siblings, 2 replies; 3+ messages in thread
From: Xin Long @ 2018-05-02 16:12 UTC (permalink / raw)
  To: linux-sctp

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

-- 
2.1.0


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

* Re: [PATCHv2 lksctp-tools 0/3] add the support for sctp_sendv and sctp_recvv
  2018-05-02 16:12 [PATCHv2 lksctp-tools 0/3] add the support for sctp_sendv and sctp_recvv Xin Long
@ 2018-05-07 11:13 ` Neil Horman
  2018-05-09  2:05 ` Marcelo Ricardo Leitner
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Horman @ 2018-05-07 11:13 UTC (permalink / raw)
  To: linux-sctp

On Thu, May 03, 2018 at 12:12:24AM +0800, Xin Long wrote:
> 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
> 
> -- 
> 2.1.0
> 
> 
Series
Acked-by: Neil Horman <nhorman@tuxdriver.com>

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

* Re: [PATCHv2 lksctp-tools 0/3] add the support for sctp_sendv and sctp_recvv
  2018-05-02 16:12 [PATCHv2 lksctp-tools 0/3] add the support for sctp_sendv and sctp_recvv Xin Long
  2018-05-07 11:13 ` Neil Horman
@ 2018-05-09  2:05 ` Marcelo Ricardo Leitner
  1 sibling, 0 replies; 3+ messages in thread
From: Marcelo Ricardo Leitner @ 2018-05-09  2:05 UTC (permalink / raw)
  To: linux-sctp

On Thu, May 03, 2018 at 12:12:24AM +0800, Xin Long wrote:
> 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.

Applied, thanks.

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

end of thread, other threads:[~2018-05-09  2:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-02 16:12 [PATCHv2 lksctp-tools 0/3] add the support for sctp_sendv and sctp_recvv Xin Long
2018-05-07 11:13 ` Neil Horman
2018-05-09  2:05 ` Marcelo Ricardo Leitner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.