summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_uio.h
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2011-06-27 22:03:33 +0000
committertuexen <tuexen@FreeBSD.org>2011-06-27 22:03:33 +0000
commit0d864997ca182472eae6ca74ba9ff37ef79453c7 (patch)
tree8a5c66ba6688989fc03472b802cecf16a3bdd18a /sys/netinet/sctp_uio.h
parent86a602b0bf1853f59794afbf6a837090b0090257 (diff)
downloadFreeBSD-src-0d864997ca182472eae6ca74ba9ff37ef79453c7.zip
FreeBSD-src-0d864997ca182472eae6ca74ba9ff37ef79453c7.tar.gz
Add support for SCTP_PR_SCTP_NONE which I misded to add.
This constant is defined in the socket API ID. MFC after: 2 months.
Diffstat (limited to 'sys/netinet/sctp_uio.h')
-rw-r--r--sys/netinet/sctp_uio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/sctp_uio.h b/sys/netinet/sctp_uio.h
index a798682..d3b186d 100644
--- a/sys/netinet/sctp_uio.h
+++ b/sys/netinet/sctp_uio.h
@@ -251,12 +251,13 @@ struct sctp_snd_all_completes {
/* for the endpoint */
/* The lower byte is an enumeration of PR-SCTP policies */
+#define SCTP_PR_SCTP_NONE 0x0000/* Reliable transfer */
#define SCTP_PR_SCTP_TTL 0x0001/* Time based PR-SCTP */
#define SCTP_PR_SCTP_BUF 0x0002/* Buffer based PR-SCTP */
#define SCTP_PR_SCTP_RTX 0x0003/* Number of retransmissions based PR-SCTP */
#define PR_SCTP_POLICY(x) ((x) & 0x0f)
-#define PR_SCTP_ENABLED(x) (PR_SCTP_POLICY(x) != 0)
+#define PR_SCTP_ENABLED(x) (PR_SCTP_POLICY(x) != SCTP_PR_SCTP_NONE)
#define PR_SCTP_TTL_ENABLED(x) (PR_SCTP_POLICY(x) == SCTP_PR_SCTP_TTL)
#define PR_SCTP_BUF_ENABLED(x) (PR_SCTP_POLICY(x) == SCTP_PR_SCTP_BUF)
#define PR_SCTP_RTX_ENABLED(x) (PR_SCTP_POLICY(x) == SCTP_PR_SCTP_RTX)
OpenPOWER on IntegriCloud