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:
parent
c12bf4cc9f
commit
9633603853
@ -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
|
.\" Copyright (c) 1983, 1990, 1992, 1993
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
.\" 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
|
The use field provides a count of the number of packets
|
||||||
sent using that route. The mtu entry shows the mtu associated with
|
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
|
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 -
|
.Sq -
|
||||||
indicates that the mtu for this route has not been set, and a default
|
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
|
TCP maximum segment size will be used. The interface entry indicates
|
||||||
|
@ -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
|
* Copyright (c) 1983, 1988, 1993
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94";
|
static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -497,7 +497,8 @@ p_rtentry(rt)
|
|||||||
p_flags(rt->rt_flags, "%-6.6s ");
|
p_flags(rt->rt_flags, "%-6.6s ");
|
||||||
printf("%6d %8ld ", rt->rt_refcnt, rt->rt_use);
|
printf("%6d %8ld ", rt->rt_refcnt, rt->rt_use);
|
||||||
if (rt->rt_rmx.rmx_mtu)
|
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
|
else
|
||||||
printf("%6s ", "-");
|
printf("%6s ", "-");
|
||||||
if (rt->rt_ifp) {
|
if (rt->rt_ifp) {
|
||||||
|
Loading…
Reference in New Issue
Block a user