diff options
author | wollman <wollman@FreeBSD.org> | 1995-10-16 18:21:26 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-10-16 18:21:26 +0000 |
commit | e52c654ee229f069ca2d720167cb753d60fac19b (patch) | |
tree | 7e34325964e07f2b5a18be08e2d8e025855344e1 /sys/netinet/tcp_output.c | |
parent | 1c55fdbaae54fa424f0c2cd826657d24bab0cbab (diff) | |
download | FreeBSD-src-e52c654ee229f069ca2d720167cb753d60fac19b.zip FreeBSD-src-e52c654ee229f069ca2d720167cb753d60fac19b.tar.gz |
The ability to administratively change the MTU of an interface presents
a few new wrinkles for MTU discovery which tcp_output() had better
be prepared to handle. ip_output() is also modified to do something
helpful in this case, since it has already calculated the information
we need.
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index b14d645..9afaf97 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_output.c 8.4 (Berkeley) 5/24/95 - * $Id: tcp_output.c,v 1.13 1995/09/20 21:00:58 wollman Exp $ + * $Id: tcp_output.c,v 1.14 1995/09/22 20:05:58 wollman Exp $ */ #include <sys/param.h> @@ -689,6 +689,18 @@ out: tcp_quench(tp->t_inpcb, 0); return (0); } +#ifdef MTUDISC + if (error == EMSGSIZE) { + /* + * ip_output() will have already fixed the route + * for us. tcp_mtudisc() will, as its last action, + * initiate retransmission, so it is important to + * not do so here. + */ + tcp_mtudisc(tp->t_inpcb, 0); + return 0; + } +#endif /* MTUDISC */. if ((error == EHOSTUNREACH || error == ENETDOWN) && TCPS_HAVERCVDSYN(tp->t_state)) { tp->t_softerror = error; |