iPXE
|
Network interface management. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | ifopen (struct net_device *netdev) |
Open network device. More... | |
int | ifconf (struct net_device *netdev, struct net_device_configurator *configurator, unsigned long timeout) |
Perform network device configuration. More... | |
void | ifclose (struct net_device *netdev) |
Close network device. More... | |
void | ifstat (struct net_device *netdev) |
Print status of network device. More... | |
int | iflinkwait (struct net_device *netdev, unsigned long timeout, int verbose) |
Wait for link-up, with status indication. More... | |
Network interface management.
Definition in file ifmgmt.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
int ifopen | ( | struct net_device * | netdev | ) |
Open network device.
netdev | Network device |
rc | Return status code |
Definition at line 65 of file ifmgmt.c.
References net_device::name, netdev, netdev_open(), printf(), rc, and strerror().
Referenced by iflinkwait(), ifopen_payload(), loopback_test(), and netboot().
int ifconf | ( | struct net_device * | netdev, |
struct net_device_configurator * | configurator, | ||
unsigned long | timeout | ||
) |
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 274 of file ifmgmt.c.
References net_device_configuration::configurator, ifconf_progress(), iflinkwait(), ifpoller_wait(), LINK_WAIT_TIMEOUT, net_device::ll_addr, net_device::ll_protocol, net_device_configurator::name, net_device::name, netdev, netdev_configure(), netdev_configure_all(), ll_protocol::ntoa, printf(), rc, strerror(), and timeout().
Referenced by ifconf_payload(), and netboot().
void ifclose | ( | struct net_device * | netdev | ) |
Close network device.
netdev | Network device |
Definition at line 82 of file ifmgmt.c.
References netdev, and netdev_close().
Referenced by close_other_netdevs(), and ifclose_payload().
void ifstat | ( | struct net_device * | netdev | ) |
Print status of network device.
netdev | Network device |
Definition at line 110 of file ifmgmt.c.
References net_device_stats::bad, net_device::dev, device::driver_name, net_device_stats::good, ifstat_errors(), net_device::link_rc, net_device::ll_protocol, device::name, ll_protocol::name, net_device::name, netdev, netdev_addr(), netdev_is_open(), netdev_link_blocked(), netdev_link_ok(), printf(), net_device::rx_stats, strerror(), and net_device::tx_stats.
Referenced by ifstat_payload(), iwstat(), loopback_test(), and netboot().
int iflinkwait | ( | struct net_device * | netdev, |
unsigned long | timeout, | ||
int | verbose | ||
) |
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 219 of file ifmgmt.c.
References iflinkwait_progress(), ifopen(), ifpoller_wait(), net_device::name, netdev, netdev_link_ok(), netdev_poll(), NULL, printf(), rc, and timeout().
Referenced by ifconf(), iflinkwait_payload(), and loopback_test().