diff options
author | wollman <wollman@FreeBSD.org> | 1995-12-08 16:46:06 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-12-08 16:46:06 +0000 |
commit | ed86a6f0a2a787d2c7097489a375138bc7794424 (patch) | |
tree | 2557a1dcb1c32c5c56c16a52f98d60c2f8a93ed8 /sys | |
parent | 1900eea896e2aaeae8a9fa8affa5fded2068c9b4 (diff) | |
download | FreeBSD-src-ed86a6f0a2a787d2c7097489a375138bc7794424.zip FreeBSD-src-ed86a6f0a2a787d2c7097489a375138bc7794424.tar.gz |
Added a conditionalized printf for debugging MTU discovery.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_icmp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index f66acc1..c23de5b 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_icmp.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_icmp.c,v 1.13 1995/12/05 17:45:59 wollman Exp $ + * $Id: ip_icmp.c,v 1.14 1995/12/06 23:37:29 bde Exp $ */ #include <sys/param.h> @@ -336,7 +336,11 @@ icmp_input(m, hlen) if (!mtu) mtu = ip_next_mtu(rt->rt_rmx.rmx_mtu, 1); - if (!mtu || mtu < 296) { +#ifdef DEBUG_MTUDISC + printf("MTU for %s reduced to %d\n", + inet_ntoa(icmpsrc.sin_addr), mtu); +#endif + if (mtu < 296) { /* rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; */ rt->rt_rmx.rmx_locks |= RTV_MTU; |