TianoCore EDK2 master
|
#include "UefiShellNetwork1CommandsLib.h"
Go to the source code of this file.
Data Structures | |
struct | _IFCONFIG_INTERFACE_CB |
struct | _ARG_LIST |
struct | _IFCONFIG4_PRIVATE_DATA |
struct | _VAR_CHECK_ITEM |
Macros | |
#define | MACADDRMAXSIZE 32 |
Typedefs | |
typedef struct _IFCONFIG_INTERFACE_CB | IFCONFIG_INTERFACE_CB |
typedef struct _ARG_LIST | ARG_LIST |
typedef struct _IFCONFIG4_PRIVATE_DATA | IFCONFIG_PRIVATE_DATA |
typedef struct _VAR_CHECK_ITEM | VAR_CHECK_ITEM |
Functions | |
VOID | FreeArgList (ARG_LIST *List) |
ARG_LIST * | SplitStrToList (IN CONST CHAR16 *String, IN CHAR16 Separator) |
VAR_CHECK_CODE | IfConfigRetriveCheckListByName (IN VAR_CHECK_ITEM *CheckList, IN CHAR16 *Name, IN BOOLEAN Init) |
VOID EFIAPI | IfConfigManualAddressNotify (IN EFI_EVENT Event, IN VOID *Context) |
VOID | IfConfigPrintMacAddr (IN UINT8 *Node, IN UINT32 Size) |
EFI_STATUS | IfConfigGetInterfaceInfo (IN CHAR16 *IfName, IN LIST_ENTRY *IfList) |
SHELL_STATUS | IfConfigShowInterfaceInfo (IN LIST_ENTRY *IfList) |
SHELL_STATUS | IfConfigClearInterfaceInfo (IN LIST_ENTRY *IfList, IN CHAR16 *IfName) |
SHELL_STATUS | IfConfigSetInterfaceInfo (IN LIST_ENTRY *IfList, IN ARG_LIST *VarArg) |
SHELL_STATUS | IfConfig (IN IFCONFIG_PRIVATE_DATA *Private) |
VOID | IfConfigCleanup (IN IFCONFIG_PRIVATE_DATA *Private) |
SHELL_STATUS EFIAPI | ShellCommandRunIfconfig (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
SHELL_PARAM_ITEM | mIfConfigCheckList [] |
VAR_CHECK_ITEM | mSetCheckList [] |
STATIC CONST CHAR16 | PermanentString [10] = L"PERMANENT" |
The implementation for Shell command ifconfig based on IP4Config2 protocol.
(C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Ifconfig.c.
#define MACADDRMAXSIZE 32 |
Definition at line 36 of file Ifconfig.c.
Definition at line 48 of file Ifconfig.c.
enum IFCONFIG_OPCODE |
Definition at line 13 of file Ifconfig.c.
enum VAR_CHECK_CODE |
Definition at line 19 of file Ifconfig.c.
enum VAR_CHECK_FLAG_TYPE |
Definition at line 29 of file Ifconfig.c.
VOID FreeArgList | ( | ARG_LIST * | List | ) |
Free the ARG_LIST.
List | Pointer to ARG_LIST to free. |
Definition at line 132 of file Ifconfig.c.
SHELL_STATUS IfConfig | ( | IN IFCONFIG_PRIVATE_DATA * | Private | ) |
The ifconfig command main process.
[in] | Private | The pointer of IFCONFIG_PRIVATE_DATA. |
SHELL_SUCCESS | ifconfig command processed successfully. |
others | The ifconfig command process failed. |
Definition at line 1193 of file Ifconfig.c.
VOID IfConfigCleanup | ( | IN IFCONFIG_PRIVATE_DATA * | Private | ) |
The ifconfig command cleanup process, free the allocated memory.
[in] | Private | The pointer of IFCONFIG_PRIVATE_DATA. |
Definition at line 1242 of file Ifconfig.c.
SHELL_STATUS IfConfigClearInterfaceInfo | ( | IN LIST_ENTRY * | IfList, |
IN CHAR16 * | IfName | ||
) |
The clean process of the ifconfig command to clear interface info.
[in] | IfList | The pointer of IfList(interface list). |
[in] | IfName | The pointer of interface name. |
SHELL_SUCCESS | The ifconfig command clean processed successfully. |
others | The ifconfig command clean process failed. |
Definition at line 751 of file Ifconfig.c.
EFI_STATUS IfConfigGetInterfaceInfo | ( | IN CHAR16 * | IfName, |
IN LIST_ENTRY * | IfList | ||
) |
The get current status of all handles.
[in] | IfName | The pointer of IfName(interface name). |
[in] | IfList | The pointer of IfList(interface list). |
EFI_SUCCESS | The get status processed successfully. |
others | The get status process failed. |
Definition at line 342 of file Ifconfig.c.
The notify function of create event when performing a manual config.
[in] | Event | The event this notify function registered to. |
[in] | Context | Pointer to the context data registered to the event. |
Definition at line 296 of file Ifconfig.c.
Print MAC address.
[in] | Node | The pointer of MAC address buffer. |
[in] | Size | The size of MAC address buffer. |
Definition at line 312 of file Ifconfig.c.
VAR_CHECK_CODE IfConfigRetriveCheckListByName | ( | IN VAR_CHECK_ITEM * | CheckList, |
IN CHAR16 * | Name, | ||
IN BOOLEAN | Init | ||
) |
Check the correctness of input Args with '-s' option.
[in] | CheckList | The pointer of VAR_CHECK_ITEM array. |
[in] | Name | The pointer of input arg. |
[in] | Init | The switch to execute the check. |
Definition at line 235 of file Ifconfig.c.
SHELL_STATUS IfConfigSetInterfaceInfo | ( | IN LIST_ENTRY * | IfList, |
IN ARG_LIST * | VarArg | ||
) |
The set process of the ifconfig command.
[in] | IfList | The pointer of IfList(interface list). |
[in] | VarArg | The pointer of ARG_LIST(Args with "-s" option). |
SHELL_SUCCESS | The ifconfig command set processed successfully. |
others | The ifconfig command set process failed. |
Definition at line 823 of file Ifconfig.c.
SHELL_STATUS IfConfigShowInterfaceInfo | ( | IN LIST_ENTRY * | IfList | ) |
The list process of the ifconfig command.
[in] | IfList | The pointer of IfList(interface list). |
SHELL_SUCCESS | The ifconfig command list processed successfully. |
others | The ifconfig command list process failed. |
Definition at line 542 of file Ifconfig.c.
SHELL_STATUS EFIAPI ShellCommandRunIfconfig | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Function for 'ifconfig' command.
[in] | ImageHandle | Handle to the Image (NULL if Internal). |
[in] | SystemTable | Pointer to the System Table (NULL if Internal). |
EFI_SUCCESS | ifconfig command processed successfully. |
others | The ifconfig command process failed. |
Definition at line 1293 of file Ifconfig.c.
Split a string with specified separator and save the substring to a list.
[in] | String | The pointer of the input string. |
[in] | Separator | The specified separator. |
Definition at line 157 of file Ifconfig.c.
SHELL_PARAM_ITEM mIfConfigCheckList[] |
Definition at line 70 of file Ifconfig.c.
VAR_CHECK_ITEM mSetCheckList[] |
Definition at line 97 of file Ifconfig.c.
Definition at line 124 of file Ifconfig.c.