summaryrefslogtreecommitdiff
path: root/sbin/route/route.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-11-16 12:58:34 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-11-16 12:58:34 +0000
commitd9abbf713e3200de943d55196030a6b4563cd7cc (patch)
tree2a93170fcbda30072704ca00549487ab72e0ad69 /sbin/route/route.c
parent98ba445ecc7984e66d8ee5aa2be83ce638f23293 (diff)
When printing RTM_PROPOSAL messages use "if#" like all the other
messages, not "ifidx". ok bluhm@
Diffstat (limited to 'sbin/route/route.c')
-rw-r--r--sbin/route/route.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 635a832cdb0..6433f1287ab 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.240 2019/11/16 12:47:53 krw Exp $ */
+/* $OpenBSD: route.c,v 1.241 2019/11/16 12:58:33 krw Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
@@ -1296,7 +1296,7 @@ print_rtmsg(struct rt_msghdr *rtm, int msglen)
printf("unknown");
break;
}
- printf(" table %u, ifidx %u, ",
+ printf(" table %u, if# %u, ",
rtm->rtm_tableid, rtm->rtm_index);
printf("pid: %ld, seq %d, errno %d\nflags:",
(long)rtm->rtm_pid, rtm->rtm_seq, rtm->rtm_errno);
@@ -1362,7 +1362,7 @@ print_rtmsg(struct rt_msghdr *rtm, int msglen)
}
break;
default:
- printf(", priority %u, table %u, ifidx %u, ",
+ printf(", priority %u, table %u, if# %u, ",
rtm->rtm_priority, rtm->rtm_tableid, rtm->rtm_index);
printf("pid: %ld, seq %d, errno %d\nflags:",
(long)rtm->rtm_pid, rtm->rtm_seq, rtm->rtm_errno);