summaryrefslogtreecommitdiffstats
path: root/src/usr/route.c
diff options
context:
space:
mode:
authorMichael Brown2010-03-23 01:46:23 +0100
committerMichael Brown2010-03-23 01:46:35 +0100
commit88e436376cbdedee73483a9b57203c60a34316ac (patch)
tree4b23f51f32be9190621b44e497ef392510f1fd69 /src/usr/route.c
parent[phantom] Update interrupt support to match current firmware (diff)
downloadipxe-88e436376cbdedee73483a9b57203c60a34316ac.tar.gz
ipxe-88e436376cbdedee73483a9b57203c60a34316ac.tar.xz
ipxe-88e436376cbdedee73483a9b57203c60a34316ac.zip
[netdevice] Add netdev_is_open() wrapper function
Signed-off-by: Michael Brown <mcb30@etherboot.org>
Diffstat (limited to 'src/usr/route.c')
-rw-r--r--src/usr/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/route.c b/src/usr/route.c
index 18757419..101d1707 100644
--- a/src/usr/route.c
+++ b/src/usr/route.c
@@ -38,7 +38,7 @@ void route ( void ) {
printf ( "%s", inet_ntoa ( miniroute->netmask ) );
if ( miniroute->gateway.s_addr )
printf ( " gw %s", inet_ntoa ( miniroute->gateway ) );
- if ( ! ( miniroute->netdev->state & NETDEV_OPEN ) )
+ if ( ! netdev_is_open ( miniroute->netdev ) )
printf ( " (inaccessible)" );
printf ( "\n" );
}