Module Name: src
Committed By: ozaki-r
Date: Wed Apr 22 03:07:55 UTC 2015
Modified Files:
src/sbin/route: Makefile
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sbin/route/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/route/Makefile
diff -u src/sbin/route/Makefile:1.26 src/sbin/route/Makefile:1.27
--- src/sbin/route/Makefile:1.26 Thu Nov 6 21:29:32 2014
+++ src/sbin/route/Makefile Wed Apr 22 03:07:55 2015
@@ -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 @@ RUMPPRG=route
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