aboutsummaryrefslogtreecommitdiff
path: root/src/usr/route.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2007-01-10 20:58:36 +0000
committerMichael Brown <mcb30@etherboot.org>2007-01-10 20:58:36 +0000
commitde042993c027a1a3d90e041a4124f7c555a96a51 (patch)
tree2e797469e1fe99cd2907c74cbef06aefffe713e9 /src/usr/route.c
parentd45c5e7ce7e8155dba33ed6e8a36e99f77acc785 (diff)
downloadipxe-de042993c027a1a3d90e041a4124f7c555a96a51.zip
ipxe-de042993c027a1a3d90e041a4124f7c555a96a51.tar.gz
ipxe-de042993c027a1a3d90e041a4124f7c555a96a51.tar.bz2
Warn when net device on an active route is not open.
Diffstat (limited to 'src/usr/route.c')
-rw-r--r--src/usr/route.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usr/route.c b/src/usr/route.c
index b2804ce..b7f02f5 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" );
}
}