History

sctp: get pr_assoc and pr_stream all status with SCTP_PR_SCTP_ALL instead

According to rfc7496 section 4.3 or 4.4: sprstat_policy: This parameter indicates for which PR-SCTP policy the user wants the information. It is an error to use SCTP_PR_SCTP_NONE in sprstat_policy. If SCTP_PR_SCTP_ALL is used, the counters provided are aggregated over all supported policies. We change to dump pr_assoc and pr_stream all status by SCTP_PR_SCTP_ALL instead, and return error for SCTP_PR_SCTP_NONE, as it also said "It is an error to use SCTP_PR_SCTP_NONE in sprstat_policy. "

Xin Long committed 8 years ago

Commit 0ac10771 parent bd8be2c2 files · +5 −4Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/sctp.h+1−0
@@ -301,6 +301,7 @@ enum sctp_sinfo_flags { · 300 unmodified lines
301301 SCTP_SACK_IMMEDIATELY = (1 << 3), /* SACK should be sent without delay. */
302302 /* 2 bits here have been used by SCTP_PR_SCTP_MASK */
303303 SCTP_SENDALL = (1 << 6),
304+ SCTP_PR_SCTP_ALL = (1 << 7),
304305 SCTP_NOTIFICATION = MSG_NOTIFICATION, /* Next message is not user msg but notification. */
305306 SCTP_EOF = MSG_FIN, /* Initiate graceful shutdown process. */
306307 };