mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 18:11:49 +03:00
[netdevice] Add netdev_is_open() wrapper function
Signed-off-by: Michael Brown <mcb30@etherboot.org>
This commit is contained in:
@@ -118,7 +118,7 @@ static struct ipv4_miniroute * ipv4_route ( struct in_addr *dest ) {
|
||||
|
||||
/* Find first usable route in routing table */
|
||||
list_for_each_entry ( miniroute, &ipv4_miniroutes, list ) {
|
||||
if ( ! ( miniroute->netdev->state & NETDEV_OPEN ) )
|
||||
if ( ! netdev_is_open ( miniroute->netdev ) )
|
||||
continue;
|
||||
local = ( ( ( dest->s_addr ^ miniroute->address.s_addr )
|
||||
& miniroute->netmask.s_addr ) == 0 );
|
||||
|
||||
Reference in New Issue
Block a user