diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2008-05-09 07:14:57 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2008-05-09 07:14:57 +0000 |
commit | 74b2e208b285ce79638292a215a39ab0dcb29ad5 (patch) | |
tree | faab86e2101eaee77b647a8a53a502d2122f0824 /sbin | |
parent | 9855ab6db4f2745302b4b67de100d1cdad97bdbf (diff) |
using the rtm_priority to translate priority number into nice name is
working much better than using rtm_version for that
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/route/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |