Allow applications to get send buffer level
@@ -564,7 +564,7 @@ struct sctp_event_subscribe {
#define SCTP_TIMEOUTS 0x00000106
#define SCTP_PR_STREAM_STATUS 0x00000107
#define SCTP_PR_ASSOC_STATUS 0x00000108
-
+#define SCTP_GET_SNDBUF_USE 0x00001101
/*
* write-only options
*/
@@ -621,6 +621,12 @@ struct sctp_paddrparams {
uint8_t spp_dscp;
};
+struct sctp_sockstat {
+ sctp_assoc_t ss_assoc_id;
+ uint32_t ss_total_sndbuf;
+ uint32_t ss_total_recv_buf;
+};
+
#define SPP_HB_ENABLE 0x00000001
#define SPP_HB_DISABLE 0x00000002
#define SPP_HB_DEMAND 0x00000004
