summaryrefslogtreecommitdiff
path: root/sbin/route
diff options
context:
space:
mode:
authorMichele Marchetto <michele@cvs.openbsd.org>2009-06-27 11:35:58 +0000
committerMichele Marchetto <michele@cvs.openbsd.org>2009-06-27 11:35:58 +0000
commitfbc6f123930a792090f559e2758ef76d27d2ff7b (patch)
tree9254e39003cb08bf6a2b1dc92cd1bc310335c957 /sbin/route
parentc457a3dd709b31cca2c555a898f410a2872ed079 (diff)
Mark MPLS routes with T (tagged) in route output.
suggested by dlg@, ok claudio@, laurent@, blambert@
Diffstat (limited to 'sbin/route')
-rw-r--r--sbin/route/route.c4
-rw-r--r--sbin/route/show.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 88af3f94a6e..fcb83dbdf6a 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.134 2009/06/25 15:42:24 claudio Exp $ */
+/* $OpenBSD: route.c,v 1.135 2009/06/27 11:35:57 michele Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
@@ -1203,7 +1203,7 @@ char metricnames[] =
"\011priority\010rttvar\7rtt\6ssthresh\5sendpipe\4recvpipe\3expire\2hopcount\1mtu";
char routeflags[] =
"\1UP\2GATEWAY\3HOST\4REJECT\5DYNAMIC\6MODIFIED\7DONE\010MASK_PRESENT\011CLONING"
-"\012XRESOLVE\013LLINFO\014STATIC\015BLACKHOLE\016PROTO3\017PROTO2\020PROTO1\021CLONED\022SOURCE\023MPATH\024JUMBO";
+"\012XRESOLVE\013LLINFO\014STATIC\015BLACKHOLE\016PROTO3\017PROTO2\020PROTO1\021CLONED\022SOURCE\023MPATH\024JUMBO\025MPLS";
char ifnetflags[] =
"\1UP\2BROADCAST\3DEBUG\4LOOPBACK\5PTP\6NOTRAILERS\7RUNNING\010NOARP\011PPROMISC"
"\012ALLMULTI\013OACTIVE\014SIMPLEX\015LINK0\016LINK1\017LINK2\020MULTICAST";
diff --git a/sbin/route/show.c b/sbin/route/show.c
index 68a6dad167b..9ccb0662ccd 100644
--- a/sbin/route/show.c
+++ b/sbin/route/show.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: show.c,v 1.79 2009/05/31 18:02:28 claudio Exp $ */
+/* $OpenBSD: show.c,v 1.80 2009/06/27 11:35:57 michele Exp $ */
/* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */
/*
@@ -100,6 +100,7 @@ static const struct bits bits[] = {
{ RTF_CLONED, 'c' },
{ RTF_JUMBO, 'J' },
{ RTF_MPATH, 'P' },
+ { RTF_MPLS, 'T' },
{ 0 }
};