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 FILE_SECBOOT ( PERMITTED );
12 
13 struct net_device;
15 
16 extern int ifopen ( struct net_device *netdev );
17 extern int ifconf ( struct net_device *netdev,
18  struct net_device_configurator *configurator,
19  unsigned long timeout );
20 extern void ifclose ( struct net_device *netdev );
21 extern void ifstat ( struct net_device *netdev );
22 extern int iflinkwait ( struct net_device *netdev, unsigned long timeout,
23  int verbose );
24 
25 #endif /* _USR_IFMGMT_H */
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static struct net_device * netdev
Definition: gdbudp.c:52
int iflinkwait(struct net_device *netdev, unsigned long timeout, int verbose)
Wait for link-up, with status indication.
Definition: ifmgmt.c:220
A network device.
Definition: netdevice.h:353
void ifstat(struct net_device *netdev)
Print status of network device.
Definition: ifmgmt.c:111
A network device configurator.
Definition: netdevice.h:314
int ifconf(struct net_device *netdev, struct net_device_configurator *configurator, unsigned long timeout)
Perform network device configuration.
Definition: ifmgmt.c:275
FILE_SECBOOT(PERMITTED)
void timeout(int)
void ifclose(struct net_device *netdev)
Close network device.
Definition: ifmgmt.c:83
int ifopen(struct net_device *netdev)
Open network device.
Definition: ifmgmt.c:66