diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-09-25 09:41:04 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-09-25 09:41:04 +0000 |
commit | 21ec68ea5cb480546e3029e7711a3058bd602541 (patch) | |
tree | d829e6c42ada204f7a9d701c47f371c135efc3f1 /sys/netinet/tcp_input.c | |
parent | 5d20f3bacaeefec3f807d34780c431ba952d1747 (diff) |
on expiry of pmtu route, retry higher mtu. okay angelos@
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index afe65c4d4cb..14c135f7ee5 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.76 2000/09/23 01:07:38 chris Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.77 2000/09/25 09:41:02 provos Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -2871,8 +2871,10 @@ tcp_mss(tp, offer) * unless we received an offer at least that large from peer. * However, do not accept offers under 32 bytes. */ - if (offer && offer != -1) - mss = min(mss, offer); + if (offer > 0) + tp->t_peermss = offer; + if (tp->t_peermss) + mss = min(mss, tp->t_peermss); mss = max(mss, 64); /* sanity - at least max opt. space */ /* |