summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/sctp.h
diff options
context:
space:
mode:
authorXin Long2018-03-05 13:44:20 +0100
committerDavid S. Miller2018-03-07 16:55:29 +0100
commit4910280503f3af2857d5aa77e35b22d93a8960a8 (patch)
tree68a902b5dcfd1b1e8a9b5ba97581666b8c58652b /include/uapi/linux/sctp.h
parentsctp: add support for SCTP_DSTADDRV4/6 Information for sendmsg (diff)
downloadkernel-qcow2-linux-4910280503f3af2857d5aa77e35b22d93a8960a8.tar.gz
kernel-qcow2-linux-4910280503f3af2857d5aa77e35b22d93a8960a8.tar.xz
kernel-qcow2-linux-4910280503f3af2857d5aa77e35b22d93a8960a8.zip
sctp: add support for snd flag SCTP_SENDALL process in sendmsg
This patch is to add support for snd flag SCTP_SENDALL process in sendmsg, as described in section 5.3.4 of RFC6458. With this flag, you can send the same data to all the asocs of this sk once. 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>
Diffstat (limited to 'include/uapi/linux/sctp.h')
-rw-r--r--include/uapi/linux/sctp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/sctp.h b/include/uapi/linux/sctp.h
index a1bc35098033..e94b6d297ad9 100644
--- a/include/uapi/linux/sctp.h
+++ b/include/uapi/linux/sctp.h
@@ -284,6 +284,8 @@ enum sctp_sinfo_flags {
SCTP_ADDR_OVER = (1 << 1), /* Override the primary destination. */
SCTP_ABORT = (1 << 2), /* Send an ABORT message to the peer. */
SCTP_SACK_IMMEDIATELY = (1 << 3), /* SACK should be sent without delay. */
+ /* 2 bits here have been used by SCTP_PR_SCTP_MASK */
+ SCTP_SENDALL = (1 << 6),
SCTP_NOTIFICATION = MSG_NOTIFICATION, /* Next message is not user msg but notification. */
SCTP_EOF = MSG_FIN, /* Initiate graceful shutdown process. */
};