iPXE
ifmgmt.h
Go to the documentation of this file.
1 #ifndef _USR_IFMGMT_H
2 #define _USR_IFMGMT_H
3 
4 /** @file
5  *
6  * Network interface management
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 struct net_device;
14 
15 extern int ifopen ( struct net_device *netdev );
16 extern int ifconf ( struct net_device *netdev,
17  struct net_device_configurator *configurator,
18  unsigned long timeout );
19 extern void ifclose ( struct net_device *netdev );
20 extern void ifstat ( struct net_device *netdev );
21 extern int iflinkwait ( struct net_device *netdev, unsigned long timeout );
22 
23 #endif /* _USR_IFMGMT_H */
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static struct net_device * netdev
Definition: gdbudp.c:52
A network device.
Definition: netdevice.h:348
void ifstat(struct net_device *netdev)
Print status of network device.
Definition: ifmgmt.c:110
A network device configurator.
Definition: netdevice.h:309
int ifconf(struct net_device *netdev, struct net_device_configurator *configurator, unsigned long timeout)
Perform network device configuration.
Definition: ifmgmt.c:270
void timeout(int)
void ifclose(struct net_device *netdev)
Close network device.
Definition: ifmgmt.c:82
int ifopen(struct net_device *netdev)
Open network device.
Definition: ifmgmt.c:65
int iflinkwait(struct net_device *netdev, unsigned long timeout)
Wait for link-up, with status indication.
Definition: ifmgmt.c:216