mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-24 00:57:03 +08:00
Inlined netif_is_up() and netif_is_link_up() as defines for speed reasons; fixed type and macro definition.
This commit is contained in:
@@ -445,14 +445,6 @@ void netif_set_down(struct netif *netif)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Ask if an interface is up
|
||||
*/
|
||||
u8_t netif_is_up(struct netif *netif)
|
||||
{
|
||||
return (netif->flags & NETIF_FLAG_UP)?1:0;
|
||||
}
|
||||
|
||||
#if LWIP_NETIF_STATUS_CALLBACK
|
||||
/**
|
||||
* Set callback to be called when interface is brought up/down
|
||||
@@ -511,14 +503,6 @@ void netif_set_link_down(struct netif *netif )
|
||||
NETIF_LINK_CALLBACK(netif);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ask if a link is up
|
||||
*/
|
||||
u8_t netif_is_link_up(struct netif *netif)
|
||||
{
|
||||
return (netif->flags & NETIF_FLAG_LINK_UP) ? 1 : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set callback to be called when link is brought up/down
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user