PERFORCE change 162646 for review
Fang Wang
fangwang at FreeBSD.org
Sun May 24 14:19:38 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=162646
Change 162646 by fangwang at fangwang_utobsd on 2009/05/24 14:18:43
Add TCP UTO(user timeout) relative macro defines in tcp.h.
Affected files ...
.. //depot/projects/soc2009/tcputo/src/sys/netinet/tcp.h#2 edit
Differences ...
==== //depot/projects/soc2009/tcputo/src/sys/netinet/tcp.h#2 (text+ko) ====
@@ -96,6 +96,8 @@
#define TCPOLEN_TSTAMP_APPA (TCPOLEN_TIMESTAMP+2) /* appendix A */
#define TCPOPT_SIGNATURE 19 /* Keyed MD5: RFC 2385 */
#define TCPOLEN_SIGNATURE 18
+#define TCPOPT_UTO 28
+#define TCPOLEN_UTO 4
/* Miscellaneous constants */
#define MAX_SACK_BLKS 6 /* Max # SACK blocks stored at receiver side */
@@ -150,6 +152,7 @@
#define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */
#define TCP_INFO 0x20 /* retrieve tcp_info structure */
#define TCP_CONGESTION 0x40 /* get/set congestion control algorithm */
+#define TCP_UTO 0x80 /* set tcp user timeout */
#define TCP_CA_NAME_MAX 16 /* max congestion control name length */
@@ -158,6 +161,7 @@
#define TCPI_OPT_WSCALE 0x04
#define TCPI_OPT_ECN 0x08
#define TCPI_OPT_TOE 0x10
+#define TCPI_OPT_UTO 0x20
/*
* The TCP_INFO socket option comes from the Linux 2.6 TCP API, and permits
@@ -217,9 +221,10 @@
u_int32_t tcpi_snd_nxt; /* Next egress seqno */
u_int32_t tcpi_rcv_nxt; /* Next ingress seqno */
u_int32_t tcpi_toe_tid; /* HWTID for TOE endpoints */
-
+ u_int32_t tcpi_uto; /* tcp user timeout value */
+
/* Padding to grow without breaking ABI. */
- u_int32_t __tcpi_pad[29]; /* Padding. */
+ u_int32_t __tcpi_pad[28]; /* Padding. */
};
#endif
More information about the p4-projects
mailing list