|
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) | |
| FILE_SECBOOT (PERMITTED) | |
| 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... | |
| COMMAND (ifopen, ifopen_exec) | |
| Interface management commands. More... | |
| COMMAND (ifclose, ifclose_exec) | |
| COMMAND (ifstat, ifstat_exec) | |
| COMMAND (ifconf, ifconf_exec) | |
| COMMAND (iflinkwait, iflinkwait_exec) | |
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... | |
Network interface management commands.
Definition in file ifmgmt_cmd.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
| 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 52 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 101 of file ifmgmt_cmd.c.
|
static |
The "ifopen" command.
| argc | Argument count |
| argv | Argument list |
| rc | Return status code |
Definition at line 119 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 136 of file ifmgmt_cmd.c.
|
static |
The "ifclose" command.
| argc | Argument count |
| argv | Argument list |
| rc | Return status code |
Definition at line 155 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 172 of file ifmgmt_cmd.c.
|
static |
The "ifstat" command.
| argc | Argument count |
| argv | Argument list |
| rc | Return status code |
Definition at line 191 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 220 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 250 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 273 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 302 of file ifmgmt_cmd.c.
References ifcommon_exec(), and iflinkwait_cmd.
| COMMAND | ( | ifopen | , |
| ifopen_exec | |||
| ) |
Interface management commands.
| COMMAND | ( | ifclose | , |
| ifclose_exec | |||
| ) |
| COMMAND | ( | ifstat | , |
| ifstat_exec | |||
| ) |
| COMMAND | ( | ifconf | , |
| ifconf_exec | |||
| ) |
| COMMAND | ( | iflinkwait | , |
| iflinkwait_exec | |||
| ) |
|
static |
"ifopen" option list
Definition at line 92 of file ifmgmt_cmd.c.
|
static |
"ifopen" command descriptor
Definition at line 107 of file ifmgmt_cmd.c.
Referenced by ifopen_exec().
|
static |
"ifclose" option list
Definition at line 127 of file ifmgmt_cmd.c.
|
static |
"ifclose" command descriptor
Definition at line 143 of file ifmgmt_cmd.c.
Referenced by ifclose_exec().
|
static |
"ifstat" option list
Definition at line 163 of file ifmgmt_cmd.c.
|
static |
"ifstat" command descriptor
Definition at line 179 of file ifmgmt_cmd.c.
Referenced by ifstat_exec().
|
static |
"ifconf" option list
Definition at line 204 of file ifmgmt_cmd.c.
|
static |
"ifconf" command descriptor
Definition at line 238 of file ifmgmt_cmd.c.
Referenced by ifconf_exec().
|
static |
"iflinkwait" option list
Definition at line 261 of file ifmgmt_cmd.c.
|
static |
"iflinkwait" command descriptor
Definition at line 290 of file ifmgmt_cmd.c.
Referenced by iflinkwait_exec().
1.8.15