summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp.h
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2011-01-29 19:55:29 +0000
committerrrs <rrs@FreeBSD.org>2011-01-29 19:55:29 +0000
commit181e76925b50ce041a6d66c7cd4ae9ab59f899fe (patch)
tree884eed6be8a57a18544af44bfa09d9cf42de648d /sys/netinet/sctp.h
parent48530618fa80ecf1ff9a984c3bcc14a07bb41986 (diff)
downloadFreeBSD-src-181e76925b50ce041a6d66c7cd4ae9ab59f899fe.zip
FreeBSD-src-181e76925b50ce041a6d66c7cd4ae9ab59f899fe.tar.gz
Fixes to ECN in SCTP.
1) ECN was on an association basis, this is incorrect and will not work with CMT or for that matter if the user is sending to multiple addresses. This commit makes ECN on a per path basis. 2) Adopt the new format for the ECN internet draft. This also maintains compatability with old format chunks as well. 3) Keep track of the real time of a RTT down to micro seconds. For some future conditional features (for like a data center this is good information to have). MFC after: 1 month
Diffstat (limited to 'sys/netinet/sctp.h')
-rw-r--r--sys/netinet/sctp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/sctp.h b/sys/netinet/sctp.h
index 8e9c0c1..135ce8d 100644
--- a/sys/netinet/sctp.h
+++ b/sys/netinet/sctp.h
@@ -417,6 +417,10 @@ struct sctp_error_unrecognized_chunk {
#define SCTP_BADCRC 0x02
#define SCTP_PACKET_TRUNCATED 0x04
+/* Flag for ECN -CWR */
+#define SCTP_CWR_REDUCE_OVERRIDE 0x01
+#define SCTP_CWR_IN_SAME_WINDOW 0x02
+
#define SCTP_SAT_NETWORK_MIN 400 /* min ms for RTT to set satellite
* time */
#define SCTP_SAT_NETWORK_BURST_INCR 2 /* how many times to multiply maxburst
OpenPOWER on IntegriCloud