summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorfrantzen <frantzen@openbsd.org>2004-04-26 18:12:25 +0000
committerfrantzen <frantzen@openbsd.org>2004-04-26 18:12:25 +0000
commit5011cf9884bedb774cdf82761a58d1af00975b2c (patch)
tree1b4cd242c4f7a36f4fd56218d51e52996dfc4162 /sys/netinet/tcp_output.c
parentoh we need to model check and not crank > 256 for older cards... do that later (diff)
downloadwireguard-openbsd-5011cf9884bedb774cdf82761a58d1af00975b2c.tar.xz
wireguard-openbsd-5011cf9884bedb774cdf82761a58d1af00975b2c.zip
- allow the user to force the TCP mss below the fail-safe 216 with a low
interface MTU. - break a tcp_output() -> tcp_mtudisc() -> tcp_output() infinite recursion when the TCP mss ends up larger than the interface MTU (when the if_mtu is smaller than the tcp header). connections will still stall feedback from itojun@, claudio@ and provos and testing from beck@
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index ceeac82cdb9..fd9e97cb04b 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_output.c,v 1.65 2004/02/16 21:51:03 markus Exp $ */
+/* $OpenBSD: tcp_output.c,v 1.66 2004/04/26 18:12:25 frantzen Exp $ */
/* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */
/*
@@ -1190,7 +1190,7 @@ out:
* initiate retransmission, so it is important to
* not do so here.
*/
- tcp_mtudisc(tp->t_inpcb, 0);
+ tcp_mtudisc(tp->t_inpcb, -1);
return (0);
}
if ((error == EHOSTUNREACH || error == ENETDOWN) &&