Added (and documented) a change to the route display, so that mtu values

which have been locked are indicated by an 'L' appended to the MTU value.
Locked routes have path mtu discovery turned off.
This commit is contained in:
kml 1997-10-28 22:38:42 +00:00
parent c12bf4cc9f
commit 9633603853
2 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: netstat.1,v 1.13 1997/10/19 05:50:07 lukem Exp $
.\" $NetBSD: netstat.1,v 1.14 1997/10/28 22:38:42 kml Exp $
.\"
.\" Copyright (c) 1983, 1990, 1992, 1993
.\" The Regents of the University of California. All rights reserved.
@ -247,7 +247,10 @@ to the same destination.
The use field provides a count of the number of packets
sent using that route. The mtu entry shows the mtu associated with
that route. This mtu value is used as the basis for the TCP maximum
segment size. A
segment size. The 'L' flag appended to the mtu value indicates that
the value is locked, and that path mtu discovery is turned off for
that route.
A
.Sq -
indicates that the mtu for this route has not been set, and a default
TCP maximum segment size will be used. The interface entry indicates

View File

@ -1,4 +1,4 @@
/* $NetBSD: route.c,v 1.24 1997/10/20 10:32:06 mrg Exp $ */
/* $NetBSD: route.c,v 1.25 1997/10/28 22:38:48 kml Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94";
#else
__RCSID("$NetBSD: route.c,v 1.24 1997/10/20 10:32:06 mrg Exp $");
__RCSID("$NetBSD: route.c,v 1.25 1997/10/28 22:38:48 kml Exp $");
#endif
#endif /* not lint */
@ -497,7 +497,8 @@ p_rtentry(rt)
p_flags(rt->rt_flags, "%-6.6s ");
printf("%6d %8ld ", rt->rt_refcnt, rt->rt_use);
if (rt->rt_rmx.rmx_mtu)
printf("%6ld ", rt->rt_rmx.rmx_mtu);
printf("%6ld%c", rt->rt_rmx.rmx_mtu,
(rt->rt_rmx.rmx_locks & RTV_MTU) ? 'L' : ' ');
else
printf("%6s ", "-");
if (rt->rt_ifp) {