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. "
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -301,6 +301,7 @@ enum sctp_sinfo_flags { · 300 unmodified lines | |||
| 301 | SCTP_SACK_IMMEDIATELY = (1 << 3), /* SACK should be sent without delay. */ | 301 | SCTP_SACK_IMMEDIATELY = (1 << 3), /* SACK should be sent without delay. */ |
| 302 | /* 2 bits here have been used by SCTP_PR_SCTP_MASK */ | 302 | /* 2 bits here have been used by SCTP_PR_SCTP_MASK */ |
| 303 | SCTP_SENDALL = (1 << 6), | 303 | SCTP_SENDALL = (1 << 6), |
| 304 | SCTP_PR_SCTP_ALL = (1 << 7), | ||
| 304 | SCTP_NOTIFICATION = MSG_NOTIFICATION, /* Next message is not user msg but notification. */ | 305 | SCTP_NOTIFICATION = MSG_NOTIFICATION, /* Next message is not user msg but notification. */ |
| 305 | SCTP_EOF = MSG_FIN, /* Initiate graceful shutdown process. */ | 306 | SCTP_EOF = MSG_FIN, /* Initiate graceful shutdown process. */ |
| 306 | }; | 307 | }; |