summaryrefslogtreecommitdiff
path: root/tcp.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2009-08-18 15:02:37 -0700
committerGuy Harris <guy@alum.mit.edu>2009-08-18 15:02:37 -0700
commit832d2c733882358e566df58447c6387945a3d774 (patch)
tree26017b6545e74266b32f86c41d621285569bc539 /tcp.h
parentc91c13825fc023ccb349105cf9acb5e699c11223 (diff)
downloadtcpdump-832d2c733882358e566df58447c6387945a3d774.tar.gz
From Fang Wang:
RFC 5482 specifies a new TCP option -- the TCP User Timeout Option (UTO) -- that allows one end of a TCP connection to advertise its current user timeout value. The Kind of UTO option is 28 and the Length is 4. The tcpdump currently does not recognize UTO option.
Diffstat (limited to 'tcp.h')
-rw-r--r--tcp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tcp.h b/tcp.h
index 757bfd86..ac83714f 100644
--- a/tcp.h
+++ b/tcp.h
@@ -83,6 +83,9 @@ struct tcphdr {
#define TCPOLEN_SIGNATURE 18
#define TCP_SIGLEN 16 /* length of an option 19 digest */
#define TCPOPT_AUTH 20 /* Enhanced AUTH option */
+#define TCPOPT_UTO 28 /* tcp user timeout (rfc5482) */
+#define TCPOLEN_UTO 4
+
#define TCPOPT_TSTAMP_HDR \
(TCPOPT_NOP<<24|TCPOPT_NOP<<16|TCPOPT_TIMESTAMP<<8|TCPOLEN_TIMESTAMP)