Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/route Fix rump.route shows host's interface names
details: https://anonhg.NetBSD.org/src/rev/178ad12a95a8
branches: trunk
changeset: 337637:178ad12a95a8
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Apr 22 03:07:55 2015 +0000
description:
Fix rump.route shows host's interface names
Let it use rump-ified if_indextoname and getifaddrs
to get rump kernel's interfaces, which is the same way
as ifconfig.
diffstat:
sbin/route/Makefile | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r bd656487b9b8 -r 178ad12a95a8 sbin/route/Makefile
--- a/sbin/route/Makefile Tue Apr 21 23:56:30 2015 +0000
+++ b/sbin/route/Makefile Wed Apr 22 03:07:55 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2014/11/06 21:29:32 christos Exp $
+# $NetBSD: Makefile,v 1.27 2015/04/22 03:07:55 ozaki-r Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
.include <bsd.own.mk>
@@ -7,6 +7,12 @@
MAN= route.8
SRCS= route.c show.c keywords.c rtutil.c
+.PATH: ${.CURDIR}/../../lib/libc/net
+RUMPSRCS= if_indextoname.c getifaddrs.c
+.if (${MKRUMP} != "no")
+CPPFLAGS+= -DRUMP_ACTION
+.endif
+
.if (${USE_INET6} != "no")
CPPFLAGS+=-DINET6
.endif
Home |
Main Index |
Thread Index |
Old Index