diff options
author | wollman <wollman@FreeBSD.org> | 1995-12-05 17:46:50 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-12-05 17:46:50 +0000 |
commit | da652f957ab098fb344b067be81e47188f1b90bd (patch) | |
tree | 2f45b4242e5f41f2e595831c86ed08e6d14756ea /sys/netinet/tcp_output.c | |
parent | 04f89ec795e5fc73e4befd24eab6f726c36af3db (diff) | |
download | FreeBSD-src-da652f957ab098fb344b067be81e47188f1b90bd.zip FreeBSD-src-da652f957ab098fb344b067be81e47188f1b90bd.tar.gz |
Path MTU Discovery is now standard.
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index f238761..52dd4df 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.15 1995/10/16 18:21:12 wollman Exp $ + * $Id: tcp_output.c,v 1.16 1995/11/03 22:08:08 olah Exp $ */ #include <sys/param.h> @@ -653,13 +653,13 @@ send: else #endif { -#ifdef MTUDISC +#if 1 struct rtentry *rt; #endif ((struct ip *)ti)->ip_len = m->m_pkthdr.len; ((struct ip *)ti)->ip_ttl = tp->t_inpcb->inp_ip.ip_ttl; /* XXX */ ((struct ip *)ti)->ip_tos = tp->t_inpcb->inp_ip.ip_tos; /* XXX */ -#ifdef MTUDISC +#if 1 /* * See if we should do MTU discovery. We do it only if the following * are true: @@ -672,7 +672,7 @@ send: && !(rt->rt_rmx.rmx_locks & RTV_MTU)) { ((struct ip *)ti)->ip_off |= IP_DF; } -#endif /* MTUDISC */ +#endif error = ip_output(m, tp->t_inpcb->inp_options, &tp->t_inpcb->inp_route, so->so_options & SO_DONTROUTE, 0); } @@ -682,7 +682,7 @@ out: tcp_quench(tp->t_inpcb, 0); return (0); } -#ifdef MTUDISC +#if 1 if (error == EMSGSIZE) { /* * ip_output() will have already fixed the route @@ -693,7 +693,7 @@ out: tcp_mtudisc(tp->t_inpcb, 0); return 0; } -#endif /* MTUDISC */. +#endif if ((error == EHOSTUNREACH || error == ENETDOWN) && TCPS_HAVERCVDSYN(tp->t_state)) { tp->t_softerror = error; |