sctp: add support for PR-SCTP Information for sendmsg
authorXin Long <lucien.xin@gmail.com>
Mon, 5 Mar 2018 12:44:18 +0000 (20:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 15:55:29 +0000 (10:55 -0500)
commited63afb8a318f6b3558d76afba7809daee4f28e5
tree15f0e055a67fa53ab73711c95b25c2483bcca5a3
parent5c3d0fd4b2c047cedb1cbdad6e2d6bc9abfec256
sctp: add support for PR-SCTP Information for sendmsg

This patch is to add support for PR-SCTP Information for sendmsg,
as described in section 5.3.7 of RFC6458.

With this option, you can specify pr_policy and pr_value for user
data in sendmsg.

It's also a necessary send info for sctp_sendv.

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/socket.c