diff options
author | Michael Brown <mcb30@etherboot.org> | 2010-03-23 00:46:23 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2010-03-23 00:46:35 +0000 |
commit | 88e436376cbdedee73483a9b57203c60a34316ac (patch) | |
tree | 4b23f51f32be9190621b44e497ef392510f1fd69 /src/net/ipv4.c | |
parent | b3533dd2bb3de6682ebd6c6b523c49fa6c406e92 (diff) | |
download | ipxe-88e436376cbdedee73483a9b57203c60a34316ac.zip ipxe-88e436376cbdedee73483a9b57203c60a34316ac.tar.gz ipxe-88e436376cbdedee73483a9b57203c60a34316ac.tar.bz2 |
[netdevice] Add netdev_is_open() wrapper function
Signed-off-by: Michael Brown <mcb30@etherboot.org>
Diffstat (limited to 'src/net/ipv4.c')
-rw-r--r-- | src/net/ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c index 4c1393f..7a8ddd3 100644 --- a/src/net/ipv4.c +++ b/src/net/ipv4.c @@ -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 ); |