http://git.etherboot.org
/
people
/
meteger
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d45c5e7
)
Warn when net device on an active route is not open.
author
Michael Brown
<mcb30@etherboot.org>
Wed, 10 Jan 2007 20:58:36 +0000
(20:58 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Wed, 10 Jan 2007 20:58:36 +0000
(20:58 +0000)
src/usr/route.c
patch
|
blob
|
history
diff --git
a/src/usr/route.c
b/src/usr/route.c
index
b2804ce
..
b7f02f5
100644
(file)
--- 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" );
}
}