From e9fea1d3cadf198bc5dcfcf4ee9de30527c9c529 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 3 Dec 2015 08:00:50 +0000 Subject: Print the interface index which is part of the route msg header. mpi@ and benno@ agree --- sbin/route/route.c | 10 +++++----- 1 file 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' : ' ') -- cgit v1.2.3