mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +03:00
[netdevice] Add netdev_is_open() wrapper function
Signed-off-by: Michael Brown <mcb30@etherboot.org>
This commit is contained in:
+1
-1
@@ -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" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user