From 5011cf9884bedb774cdf82761a58d1af00975b2c Mon Sep 17 00:00:00 2001 From: frantzen Date: Mon, 26 Apr 2004 18:12:25 +0000 Subject: - 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@ --- sys/netinet/tcp_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet/tcp_output.c') 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) && -- cgit v1.2.3-59-g8ed1b