Date: Tue, 2 Jun 2009 13:26:07 GMT From: Fang Wang <fangwang@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 163351 for review Message-ID: <200906021326.n52DQ7fO043721@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=163351 Change 163351 by fangwang@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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906021326.n52DQ7fO043721>