diff options
author | Michael Brown <mcb30@etherboot.org> | 2007-01-10 20:58:36 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2007-01-10 20:58:36 +0000 |
commit | de042993c027a1a3d90e041a4124f7c555a96a51 (patch) | |
tree | 2e797469e1fe99cd2907c74cbef06aefffe713e9 /src/usr | |
parent | d45c5e7ce7e8155dba33ed6e8a36e99f77acc785 (diff) | |
download | ipxe-de042993c027a1a3d90e041a4124f7c555a96a51.tar.gz |
Warn when net device on an active route is not open.
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/route.c | 2 |
1 files changed, 2 insertions, 0 deletions
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" ); } } |