diff options
author | 2019-11-16 12:58:33 +0000 | |
---|---|---|
committer | 2019-11-16 12:58:33 +0000 | |
commit | fa8f1c2f2181cec227da7f7f5a3a0af04257898b (patch) | |
tree | 2063cdc5b5b762357e2419b1094287033a96a399 | |
parent | More %d -> %u for unsigned values. (diff) | |
download | wireguard-openbsd-fa8f1c2f2181cec227da7f7f5a3a0af04257898b.tar.xz wireguard-openbsd-fa8f1c2f2181cec227da7f7f5a3a0af04257898b.zip |
When printing RTM_PROPOSAL messages use "if#" like all the other
messages, not "ifidx".
ok bluhm@
-rw-r--r-- | sbin/route/route.c | 6 |
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); |