iPXE
|
Network interface management commands. More...
#include <stdio.h>
#include <errno.h>
#include <getopt.h>
#include <ipxe/netdevice.h>
#include <ipxe/command.h>
#include <ipxe/parseopt.h>
#include <usr/ifmgmt.h>
#include <hci/ifmgmt_cmd.h>
Go to the source code of this file.
Data Structures | |
struct | ifopen_options |
"ifopen" options More... | |
struct | ifclose_options |
"ifclose" options More... | |
struct | ifstat_options |
"ifstat" options More... | |
struct | ifconf_options |
"ifconf" options More... | |
struct | iflinkwait_options |
"iflinkwait" option list More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | ifcommon_exec (int argc, char **argv, struct ifcommon_command_descriptor *ifcmd) |
Execute if<xxx> command. More... | |
static int | ifopen_payload (struct net_device *netdev, struct ifopen_options *opts __unused) |
"ifopen" payload More... | |
static int | ifopen_exec (int argc, char **argv) |
The "ifopen" command. More... | |
static int | ifclose_payload (struct net_device *netdev, struct ifclose_options *opts __unused) |
"ifclose" payload More... | |
static int | ifclose_exec (int argc, char **argv) |
The "ifclose" command. More... | |
static int | ifstat_payload (struct net_device *netdev, struct ifstat_options *opts __unused) |
"ifstat" payload More... | |
static int | ifstat_exec (int argc, char **argv) |
The "ifstat" command. More... | |
static int | ifconf_payload (struct net_device *netdev, struct ifconf_options *opts) |
"ifconf" payload More... | |
int | ifconf_exec (int argc, char **argv) |
The "ifconf" command. More... | |
static int | iflinkwait_payload (struct net_device *netdev, struct iflinkwait_options *opts) |
"iflinkwait" payload More... | |
static int | iflinkwait_exec (int argc, char **argv) |
The "iflinkwait" command. More... | |
Variables | |
static struct option_descriptor | ifopen_opts [] = {} |
"ifopen" option list More... | |
static struct ifcommon_command_descriptor | ifopen_cmd |
"ifopen" command descriptor More... | |
static struct option_descriptor | ifclose_opts [] = {} |
"ifclose" option list More... | |
static struct ifcommon_command_descriptor | ifclose_cmd |
"ifclose" command descriptor More... | |
static struct option_descriptor | ifstat_opts [] = {} |
"ifstat" option list More... | |
static struct ifcommon_command_descriptor | ifstat_cmd |
"ifstat" command descriptor More... | |
static struct option_descriptor | ifconf_opts [] |
"ifconf" option list More... | |
static struct ifcommon_command_descriptor | ifconf_cmd |
"ifconf" command descriptor More... | |
static struct option_descriptor | iflinkwait_opts [] |
"iflinkwait" option list More... | |
static struct ifcommon_command_descriptor | iflinkwait_cmd |
"iflinkwait" command descriptor More... | |
struct command ifmgmt_commands [] | __command |
Interface management commands. More... | |
Network interface management commands.
Definition in file ifmgmt_cmd.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
int ifcommon_exec | ( | int | argc, |
char ** | argv, | ||
struct ifcommon_command_descriptor * | ifcmd | ||
) |
Execute if<xxx> command.
argc | Argument count |
argv | Argument list |
cmd | Command descriptor |
payload | Command to execute |
verb | Verb describing the action of the command |
rc | Return status code |
Definition at line 51 of file ifmgmt_cmd.c.
References cmd, ifcommon_command_descriptor::cmd, ENODEV, for_each_netdev, netdev, optind, opts, parse_netdev(), parse_options(), ifcommon_command_descriptor::payload, rc, and ifcommon_command_descriptor::stop_on_first_success.
Referenced by autoboot_exec(), ifclose_exec(), ifconf_exec(), iflinkwait_exec(), ifopen_exec(), ifstat_exec(), iwlist_exec(), iwstat_exec(), and startpxe_exec().
|
static |
"ifopen" payload
netdev | Network device |
opts | Command options |
rc | Return status code |
Definition at line 100 of file ifmgmt_cmd.c.
|
static |
The "ifopen" command.
argc | Argument count |
argv | Argument list |
rc | Return status code |
Definition at line 118 of file ifmgmt_cmd.c.
References ifcommon_exec(), and ifopen_cmd.
|
static |
"ifclose" payload
netdev | Network device |
opts | Command options |
rc | Return status code |
Definition at line 135 of file ifmgmt_cmd.c.
|
static |
The "ifclose" command.
argc | Argument count |
argv | Argument list |
rc | Return status code |
Definition at line 154 of file ifmgmt_cmd.c.
References ifclose_cmd, and ifcommon_exec().
|
static |
"ifstat" payload
netdev | Network device |
opts | Command options |
rc | Return status code |
Definition at line 171 of file ifmgmt_cmd.c.
|
static |
The "ifstat" command.
argc | Argument count |
argv | Argument list |
rc | Return status code |
Definition at line 190 of file ifmgmt_cmd.c.
References ifcommon_exec(), and ifstat_cmd.
|
static |
"ifconf" payload
netdev | Network device |
opts | Command options |
rc | Return status code |
Definition at line 219 of file ifmgmt_cmd.c.
References ifconf(), netdev, netdev_close(), opts, and rc.
int ifconf_exec | ( | int | argc, |
char ** | argv | ||
) |
The "ifconf" command.
argc | Argument count |
argv | Argument list |
rc | Return status code |
Definition at line 249 of file ifmgmt_cmd.c.
References ifcommon_exec(), and ifconf_cmd.
|
static |
"iflinkwait" payload
netdev | Network device |
opts | Command options |
rc | Return status code |
Definition at line 272 of file ifmgmt_cmd.c.
References iflinkwait(), netdev, netdev_close(), opts, and rc.
|
static |
The "iflinkwait" command.
argc | Argument count |
argv | Argument list |
rc | Return status code |
Definition at line 301 of file ifmgmt_cmd.c.
References ifcommon_exec(), and iflinkwait_cmd.
|
static |
"ifopen" option list
Definition at line 91 of file ifmgmt_cmd.c.
|
static |
"ifopen" command descriptor
Definition at line 106 of file ifmgmt_cmd.c.
Referenced by ifopen_exec().
|
static |
"ifclose" option list
Definition at line 126 of file ifmgmt_cmd.c.
|
static |
"ifclose" command descriptor
Definition at line 142 of file ifmgmt_cmd.c.
Referenced by ifclose_exec().
|
static |
"ifstat" option list
Definition at line 162 of file ifmgmt_cmd.c.
|
static |
"ifstat" command descriptor
Definition at line 178 of file ifmgmt_cmd.c.
Referenced by ifstat_exec().
|
static |
"ifconf" option list
Definition at line 203 of file ifmgmt_cmd.c.
|
static |
"ifconf" command descriptor
Definition at line 237 of file ifmgmt_cmd.c.
Referenced by ifconf_exec().
|
static |
"iflinkwait" option list
Definition at line 260 of file ifmgmt_cmd.c.
|
static |
"iflinkwait" command descriptor
Definition at line 289 of file ifmgmt_cmd.c.
Referenced by iflinkwait_exec().
struct command ifmgmt_commands [] __command |
Interface management commands.
Definition at line 306 of file ifmgmt_cmd.c.