summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp.h
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-02-10 10:30:25 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-02-10 10:30:25 +0000
commit04fc09e9697c3885bb44b66d1eb64b908c5eceb4 (patch)
tree52b7d0635508bdbb7145063965df3325a1cb060b /sys/netinet/tcp.h
parent3173c27d2e8308fe5b249684fca9fd9b7c4e177a (diff)
check TF_SIGNATURE when calculating the mss; add TCPOLEN_SIGLEN and
avoid magic constants; ok henning@
Diffstat (limited to 'sys/netinet/tcp.h')
-rw-r--r--sys/netinet/tcp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h
index b6d7bd83f43..22e836e957c 100644
--- a/sys/netinet/tcp.h
+++ b/sys/netinet/tcp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp.h,v 1.14 2004/01/31 21:09:15 henning Exp $ */
+/* $OpenBSD: tcp.h,v 1.15 2004/02/10 10:30:24 markus Exp $ */
/* $NetBSD: tcp.h,v 1.8 1995/04/17 05:32:58 cgd Exp $ */
/*
@@ -85,6 +85,7 @@ struct tcphdr {
#define TCPOLEN_TSTAMP_APPA (TCPOLEN_TIMESTAMP+2) /* appendix A */
#define TCPOPT_SIGNATURE 19
#define TCPOLEN_SIGNATURE 18
+#define TCPOLEN_SIGLEN (TCPOLEN_SIGNATURE+2) /* padding */
#define MAX_TCPOPTLEN 40 /* Absolute maximum TCP options len */