From 74b2e208b285ce79638292a215a39ab0dcb29ad5 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Fri, 9 May 2008 07:14:57 +0000 Subject: using the rtm_priority to translate priority number into nice name is working much better than using rtm_version for that --- sbin/route/route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin') diff --git a/sbin/route/route.c b/sbin/route/route.c index 30fc48ea469..1463c1035a0 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.118 2008/05/09 06:52:47 henning Exp $ */ +/* $OpenBSD: route.c,v 1.119 2008/05/09 07:14:56 henning Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -1344,7 +1344,7 @@ print_getmsg(struct rt_msghdr *rtm, int msglen) if (ifa) printf(" if address: %s\n", routename(ifa)); printf(" priority: %u (%s)\n", rtm->rtm_priority, - priorityname(rtm->rtm_version)); + priorityname(rtm->rtm_priority)); printf(" flags: "); bprintf(stdout, rtm->rtm_flags, routeflags); printf("\n"); -- cgit v1.2.3