|
iPXE
|
Network interface management. More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| int | ifopen (struct net_device *netdev) |
| Open network device. | |
| int | ifconf (struct net_device *netdev, struct net_device_configurator *configurator, unsigned long timeout) |
| Perform network device configuration. | |
| void | ifclose (struct net_device *netdev) |
| Close network device. | |
| void | ifstat (struct net_device *netdev) |
| Print status of network device. | |
| int | iflinkwait (struct net_device *netdev, unsigned long timeout, int verbose) |
| Wait for link-up, with status indication. | |
Network interface management.
Definition in file ifmgmt.h.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
extern |
Open network device.
| netdev | Network device |
| rc | Return status code |
Definition at line 66 of file ifmgmt.c.
References netdev, netdev_open(), printf(), rc, and strerror().
Referenced by COMMAND(), iflinkwait(), ifopen_payload(), loopback_test(), and netboot().
|
extern |
Perform network device configuration.
| netdev | Network device |
| configurator | Network device configurator, or NULL to use all |
| timeout | Timeout period, in ticks |
| rc | Return status code |
Definition at line 275 of file ifmgmt.c.
References net_device_configuration::configurator, ifconf_progress(), iflinkwait(), ifpoller_wait(), LINK_WAIT_TIMEOUT, net_device_configurator::name, netdev, netdev_configure(), netdev_configure_all(), printf(), rc, strerror(), and timeout().
Referenced by COMMAND(), ifconf_payload(), and netboot().
|
extern |
Close network device.
| netdev | Network device |
Definition at line 83 of file ifmgmt.c.
References netdev, and netdev_close().
Referenced by close_other_netdevs(), COMMAND(), and ifclose_payload().
|
extern |
Print status of network device.
| netdev | Network device |
Definition at line 111 of file ifmgmt.c.
References ifstat_errors(), netdev, netdev_addr(), netdev_is_open(), netdev_link_blocked(), netdev_link_ok(), printf(), and strerror().
Referenced by COMMAND(), ifstat_payload(), iwstat(), loopback_test(), and netboot().
|
extern |
Wait for link-up, with status indication.
| netdev | Network device |
| timeout | Timeout period, in ticks |
| verbose | Always display progress message |
| rc | Return status code |
Definition at line 220 of file ifmgmt.c.
References iflinkwait_progress(), ifopen(), ifpoller_wait(), netdev, netdev_link_ok(), netdev_poll(), NULL, printf(), rc, and timeout().
Referenced by COMMAND(), ifconf(), iflinkwait_payload(), and loopback_test().