[PATCH 16/29] libnetworking: Add TCP CC options.
Christian Mauderer
christian.mauderer at embedded-brains.de
Mon Apr 25 15:06:50 UTC 2016
From: Christian Mauderer <Christian.Mauderer at embedded-brains.de>
---
cpukit/libnetworking/rtems/rtems_netinet_tcp.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/cpukit/libnetworking/rtems/rtems_netinet_tcp.h b/cpukit/libnetworking/rtems/rtems_netinet_tcp.h
index fe509af..b92a5ca 100644
--- a/cpukit/libnetworking/rtems/rtems_netinet_tcp.h
+++ b/cpukit/libnetworking/rtems/rtems_netinet_tcp.h
@@ -24,6 +24,14 @@ extern "C" {
typedef u_long tcp_cc; /* connection count per rfc1644 */
+#define TCPOPT_CC 11 /* CC options: RFC-1644 */
+#define TCPOPT_CCNEW 12
+#define TCPOPT_CCECHO 13
+#define TCPOLEN_CC 6
+#define TCPOLEN_CC_APPA (TCPOLEN_CC+2)
+#define TCPOPT_CC_HDR(ccopt) \
+ (TCPOPT_NOP<<24|TCPOPT_NOP<<16|(ccopt)<<8|TCPOLEN_CC)
+
#ifdef __cplusplus
}
#endif /* __cplusplus */
--
1.8.4.5
More information about the devel
mailing list