PERFORCE change 163351 for review
Fang Wang
fangwang at FreeBSD.org
Tue Jun 2 13:26:09 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=163351
Change 163351 by fangwang at fangwang_utobsd on 2009/06/02 13:25:39
Add uto relative variables to struct tcpch.
Add some macro defines.
Affected files ...
.. //depot/projects/soc2009/tcputo/src/sys/netinet/tcp_var.h#2 edit
Differences ...
==== //depot/projects/soc2009/tcputo/src/sys/netinet/tcp_var.h#2 (text+ko) ====
@@ -190,6 +190,15 @@
struct toe_usrreqs *t_tu; /* offload operations vector */
void *t_toe; /* TOE pcb pointer */
int t_bytes_acked; /* # bytes acked during current RTT */
+
+/* user timeout variables (RFC 5482) */
+ u_int t_rcvuto; /* received user timeout value */
+ u_char rcv_uto_granularity:1; /* received user timeout granularity */
+ u_int t_snduto; /* send user timeout value */
+ u_char snd_uto_granularity:1; /* received user timeout granularity */
+ u_char uto_enable:1; /* flag controls whether the UTO option is enabled for a connection */
+ u_char uto_changeable:1; /* flag that controls whether USER_TIMEOUT may be changed based on t_rcvuto */
+ u_int t_uto; /* implemented user timeout value */
};
/*
@@ -221,6 +230,7 @@
#define TF_ECN_PERMIT 0x4000000 /* connection ECN-ready */
#define TF_ECN_SND_CWR 0x8000000 /* ECN CWR in queue */
#define TF_ECN_SND_ECE 0x10000000 /* ECN ECE in queue */
+#define TF_RCVD_UTO 0x20000000 /* a user timeout was received in SYN */
#define IN_FASTRECOVERY(tp) (tp->t_flags & TF_FASTRECOVERY)
#define ENTER_FASTRECOVERY(tp) tp->t_flags |= TF_FASTRECOVERY
@@ -264,6 +274,7 @@
#define TOF_SIGNATURE 0x0040 /* TCP-MD5 signature option (RFC2385) */
#define TOF_SACK 0x0080 /* Peer sent SACK option */
#define TOF_MAXOPT 0x0100
+#define TOF_UTO 0x0200 /* user timeout (RFC5482) */
u_int32_t to_tsval; /* new timestamp */
u_int32_t to_tsecr; /* reflected timestamp */
u_int16_t to_mss; /* maximum segment size */
More information about the p4-projects
mailing list