summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-01-09 12:31:45 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-01-09 12:31:45 +0000
commitba221a2187e53f62751f7712abbc226f0f15a2ec (patch)
tree5217594884c88b68763b356ac4a84284c3e3befb
parenta245f64bf6efe20aad24c64606ffdf6fd6561e81 (diff)
decrease min mss to (256 - 40); ok deraadt
-rw-r--r--sys/netinet/tcp_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 07717cc8fed..e9758ffd4e3 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.140 2004/01/07 20:48:10 markus Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.141 2004/01/09 12:31:44 markus Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -2888,13 +2888,13 @@ tcp_mss(tp, offer)
* If we compute a larger value, return it for use in sending
* a max seg size option, but don't store it for use
* unless we received an offer at least that large from peer.
- * However, do not accept offers under 256 bytes.
+ * However, do not accept offers under 216 bytes.
*/
if (offer > 0)
tp->t_peermss = offer;
if (tp->t_peermss)
mss = min(mss, tp->t_peermss);
- mss = max(mss, 256); /* sanity - at least max opt. space */
+ mss = max(mss, 216); /* sanity - at least max opt. space */
/*
* maxopd stores the maximum length of data AND options