From 88e436376cbdedee73483a9b57203c60a34316ac Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 23 Mar 2010 00:46:23 +0000 Subject: [netdevice] Add netdev_is_open() wrapper function Signed-off-by: Michael Brown --- src/net/ipv4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/ipv4.c') diff --git a/src/net/ipv4.c b/src/net/ipv4.c index 4c1393f22..7a8ddd3b2 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 ); -- cgit v1.2.3-55-g7522