mirror of
https://github.com/ipxe/ipxe
synced 2026-01-02 09:52:49 +03:00
Add ability for network devices to flag link up/down state to the networking core. Autobooting code will now wait for link-up before attempting DHCP. IPoIB reflects the Infiniband link state as the network device link state (which is not strictly correct; we also need a succesful IPoIB IPv4 broadcast group join), but is probably more informative.
18 lines
375 B
C
18 lines
375 B
C
#ifndef _USR_IFMGMT_H
|
|
#define _USR_IFMGMT_H
|
|
|
|
/** @file
|
|
*
|
|
* Network interface management
|
|
*
|
|
*/
|
|
|
|
struct net_device;
|
|
|
|
extern int ifopen ( struct net_device *netdev );
|
|
extern void ifclose ( struct net_device *netdev );
|
|
extern void ifstat ( struct net_device *netdev );
|
|
extern int iflinkwait ( struct net_device *netdev, unsigned int max_wait_ms );
|
|
|
|
#endif /* _USR_IFMGMT_H */
|