diff options
author | Michael Brown | 2010-03-23 01:46:23 +0100 |
---|---|---|
committer | Michael Brown | 2010-03-23 01:46:35 +0100 |
commit | 88e436376cbdedee73483a9b57203c60a34316ac (patch) | |
tree | 4b23f51f32be9190621b44e497ef392510f1fd69 /src/usr/route.c | |
parent | [phantom] Update interrupt support to match current firmware (diff) | |
download | ipxe-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.c | 2 |
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" ); } |