From de042993c027a1a3d90e041a4124f7c555a96a51 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 10 Jan 2007 20:58:36 +0000 Subject: [PATCH] Warn when net device on an active route is not open. --- src/usr/route.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/usr/route.c b/src/usr/route.c index b2804ce7..b7f02f57 100644 --- a/src/usr/route.c +++ b/src/usr/route.c @@ -36,6 +36,8 @@ void route ( void ) { printf ( "%s", inet_ntoa ( miniroute->netmask ) ); if ( miniroute->gateway.s_addr != INADDR_NONE ) printf ( " gw %s", inet_ntoa ( miniroute->gateway ) ); + if ( ! ( miniroute->netdev->state & NETDEV_OPEN ) ) + printf ( " (inaccessible)" ); printf ( "\n" ); } }