]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: add support for SCTP AUTH Information for sendmsg
authorXin Long <lucien.xin@gmail.com>
Wed, 14 Mar 2018 11:05:31 +0000 (19:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Mar 2018 17:48:27 +0000 (13:48 -0400)
commit403140b2d2fa9f13e64ba777d5510e17e9a798d8
tree72a2dd1b695f52b90af548e00097177fd5b8da41
parentfcbc246386b99f296d3d82602d849d06663f9bba
sctp: add support for SCTP AUTH Information for sendmsg

This patch is to add support for SCTP AUTH Information for sendmsg,
as described in section 5.3.8 of RFC6458.

With this option, you can provide shared key identifier used for
sending the user message.

It's also a necessary send info for sctp_sendv.

Note that it reuses sinfo->sinfo_tsn to indicate if this option is
set and sinfo->sinfo_ssn to save the shkey ID which can be 0.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
include/uapi/linux/sctp.h
net/sctp/chunk.c
net/sctp/socket.c