From 80b8dd9b813083362d42dc3c62d7bd586028951d Mon Sep 17 00:00:00 2001 From: Thomas Nikolajsen Date: Wed, 9 Jul 2008 09:29:17 +0000 Subject: [PATCH] Add PF_MPLSOPS, route flag `m', to netstat.8. Add mpls as -f option: `netstat -f mpls'. --- usr.bin/netstat/main.c | 4 +++- usr.bin/netstat/netstat.1 | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index a0d04e8cb0..a4598e40ca 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1983, 1988, 1993 Regents of the University of California. All rights reserved. * @(#)main.c 8.4 (Berkeley) 3/1/94 * $FreeBSD: src/usr.bin/netstat/main.c,v 1.34.2.12 2001/09/17 15:17:46 ru Exp $ - * $DragonFly: src/usr.bin/netstat/main.c,v 1.14 2007/11/25 18:10:07 swildner Exp $ + * $DragonFly: src/usr.bin/netstat/main.c,v 1.15 2008/07/09 09:29:17 thomas Exp $ */ #include @@ -389,6 +389,8 @@ main(int argc, char **argv) #endif else if (strcmp(optarg, "link") == 0) af = AF_LINK; + else if (strcmp(optarg, "mpls") == 0) + af = AF_MPLS; else { errx(1, "%s: unknown address family", optarg); } diff --git a/usr.bin/netstat/netstat.1 b/usr.bin/netstat/netstat.1 index 120c7ffcc0..2681560403 100644 --- a/usr.bin/netstat/netstat.1 +++ b/usr.bin/netstat/netstat.1 @@ -31,7 +31,7 @@ .\" .\" @(#)netstat.1 8.8 (Berkeley) 4/18/94 .\" $FreeBSD: src/usr.bin/netstat/netstat.1,v 1.22.2.13 2003/05/03 22:10:02 keramida Exp $ -.\" $DragonFly: src/usr.bin/netstat/netstat.1,v 1.7 2006/06/25 11:02:40 corecode Exp $ +.\" $DragonFly: src/usr.bin/netstat/netstat.1,v 1.8 2008/07/09 09:29:17 thomas Exp $ .\" .Dd September 7, 2001 .Dt NETSTAT 1 @@ -300,6 +300,7 @@ The following address families and protocols are recognized: .\".Cm clnp , cltp , esis , tp .It Cm unix Pq Dv AF_UNIX .It Cm link Pq Dv AF_LINK +.It Cm mpls Pq Dv AF_MPLS .El .Pp The program will complain if @@ -392,6 +393,7 @@ The mapping between letters and flags is: .It Li H Ta Dv RTF_HOST Ta "Host entry (net otherwise)" .It Li L Ta Dv RTF_LLINFO Ta "Valid protocol to link address translation" .It Li M Ta Dv RTF_MODIFIED Ta "Modified dynamically (by redirect)" +.It Li m Ta Dv RTF_MPLSOPS Ta "MPLS label operations" .It Li R Ta Dv RTF_REJECT Ta "Host or net unreachable" .It Li S Ta Dv RTF_STATIC Ta "Manually added" .It Li U Ta Dv RTF_UP Ta "Route usable" -- 2.11.4.GIT