Wed Apr 22 03:07:55 2015 UTC ()
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.


(ozaki-r)
diff -r1.26 -r1.27 src/sbin/route/Makefile

cvs diff -r1.26 -r1.27 src/sbin/route/Makefile (expand / switch to unified diff)

--- src/sbin/route/Makefile 2014/11/06 21:29:32 1.26
+++ src/sbin/route/Makefile 2015/04/22 03:07:55 1.27
@@ -1,22 +1,28 @@ @@ -1,22 +1,28 @@
1# $NetBSD: Makefile,v 1.26 2014/11/06 21:29:32 christos Exp $ 1# $NetBSD: Makefile,v 1.27 2015/04/22 03:07:55 ozaki-r Exp $
2# @(#)Makefile 8.1 (Berkeley) 6/5/93 2# @(#)Makefile 8.1 (Berkeley) 6/5/93
3 3
4.include <bsd.own.mk> 4.include <bsd.own.mk>
5 5
6RUMPPRG=route 6RUMPPRG=route
7MAN= route.8 7MAN= route.8
8SRCS= route.c show.c keywords.c rtutil.c 8SRCS= route.c show.c keywords.c rtutil.c
9 9
 10.PATH: ${.CURDIR}/../../lib/libc/net
 11RUMPSRCS= if_indextoname.c getifaddrs.c
 12.if (${MKRUMP} != "no")
 13CPPFLAGS+= -DRUMP_ACTION
 14.endif
 15
10.if (${USE_INET6} != "no") 16.if (${USE_INET6} != "no")
11CPPFLAGS+=-DINET6 17CPPFLAGS+=-DINET6
12.endif 18.endif
13 19
14# The Makefile over in ../../distrib/utils/x_route 20# The Makefile over in ../../distrib/utils/x_route
15# would like keywords.[ch] to always exist here, so 21# would like keywords.[ch] to always exist here, so
16# they are now checked in as sources. 22# they are now checked in as sources.
17# 23#
18# CPPFLAGS+=-I. 24# CPPFLAGS+=-I.
19# CLEANFILES+= keywords.c keywords.h 25# CLEANFILES+= keywords.c keywords.h
20# keywords.c keywords.h : keywords.sh 26# keywords.c keywords.h : keywords.sh
21# ${HOST_SH} keywords.sh 27# ${HOST_SH} keywords.sh
22 28