diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2015-12-03 08:00:50 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2015-12-03 08:00:50 +0000 |
commit | e9fea1d3cadf198bc5dcfcf4ee9de30527c9c529 (patch) | |
tree | 1d987c909d89edf85aeb9a21f8673a60c998ffa7 | |
parent | 32b70fd78e4656e73843dbfacb0f3b11265d97d6 (diff) |
Print the interface index which is part of the route msg header.
mpi@ and benno@ agree
-rw-r--r-- | sbin/route/route.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 5cd81f43049..2f28ecda08c 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.181 2015/11/27 16:26:52 benno Exp $ */ +/* $OpenBSD: route.c,v 1.182 2015/12/03 08:00:49 claudio Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -1319,10 +1319,10 @@ print_rtmsg(struct rt_msghdr *rtm, int msglen) printf("\n"); break; default: - printf(", priority %d, ", rtm->rtm_priority); - printf("table %u, pid: %ld, seq %d, errno %d\nflags:", - rtm->rtm_tableid, (long)rtm->rtm_pid, rtm->rtm_seq, - rtm->rtm_errno); + printf(", priority %d, table %u, ifidx %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); bprintf(stdout, rtm->rtm_flags, routeflags); if (verbose) { #define lock(f) ((rtm->rtm_rmx.rmx_locks & __CONCAT(RTV_,f)) ? 'L' : ' ') |