summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/netinet
diff options
context:
space:
mode:
authorGeorge Shepherd <George.Shepherd@Sun.COM>2008-11-19 07:05:13 -0800
committerGeorge Shepherd <George.Shepherd@Sun.COM>2008-11-19 07:05:13 -0800
commit77ebe684ef29c4e071249d0fcb90f306d3aa1f12 (patch)
tree0c274c1bf4f12ffdaedb6177a1f891701c3922c6 /usr/src/uts/common/netinet
parent8388e56e7eb0b29615534291f733a3c75562ac18 (diff)
downloadillumos-joyent-77ebe684ef29c4e071249d0fcb90f306d3aa1f12.tar.gz
6739142 SCTP does not process unrecognised parameter in INIT-ACK correctly
Diffstat (limited to 'usr/src/uts/common/netinet')
-rw-r--r--usr/src/uts/common/netinet/sctp.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/usr/src/uts/common/netinet/sctp.h b/usr/src/uts/common/netinet/sctp.h
index a6d32bff32..9c43cc77e4 100644
--- a/usr/src/uts/common/netinet/sctp.h
+++ b/usr/src/uts/common/netinet/sctp.h
@@ -19,15 +19,13 @@
* CDDL HEADER END
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _NETINET_SCTP_H
#define _NETINET_SCTP_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -553,6 +551,17 @@ extern ssize_t sctp_sendmsg();
#define SCTP_ALIGN 4
/*
+ * SCTP association optional parameter handling. The top two bits
+ * of the parameter type define how this and further parameters in
+ * the received chunk should be handled.
+ */
+#define SCTP_UNREC_PARAM_MASK 0xc000
+/* Continue processing parameters after an unrecognized optional param? */
+#define SCTP_CONT_PROC_PARAMS 0x8000
+/* Report this unreconized optional parameter or silently ignore it? */
+#define SCTP_REPORT_THIS_PARAM 0x4000
+
+/*
* Data chunk bit manipulations
*/
#define SCTP_DATA_EBIT 0x01