TianoCore EDK2 master
|
#include "UefiShellNetwork2CommandsLib.h"
Go to the source code of this file.
Data Structures | |
struct | _IFCONFIG6_INTERFACE_CB |
struct | _ARG_LIST |
struct | _IFCONFIG6_PRIVATE_DATA |
struct | _VAR_CHECK_ITEM |
Macros | |
#define | MACADDRMAXSIZE 32 |
#define | PREFIXMAXLEN 16 |
Typedefs | |
typedef struct _IFCONFIG6_INTERFACE_CB | IFCONFIG6_INTERFACE_CB |
typedef struct _ARG_LIST | ARG_LIST |
typedef struct _IFCONFIG6_PRIVATE_DATA | IFCONFIG6_PRIVATE_DATA |
typedef struct _VAR_CHECK_ITEM | VAR_CHECK_ITEM |
Variables | |
SHELL_PARAM_ITEM | mIfConfig6CheckList [] |
VAR_CHECK_ITEM | mIfConfig6SetCheckList [] |
The implementation for Shell command IfConfig6.
Copyright (c) 2016, Intel Corporation. All rights reserved.
(C) Copyright 2017 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Ifconfig6.c.
#define MACADDRMAXSIZE 32 |
Definition at line 35 of file Ifconfig6.c.
#define PREFIXMAXLEN 16 |
Definition at line 36 of file Ifconfig6.c.
Definition at line 50 of file Ifconfig6.c.
anonymous enum |
Definition at line 12 of file Ifconfig6.c.
enum VAR_CHECK_CODE |
Definition at line 18 of file Ifconfig6.c.
enum VAR_CHECK_FLAG_TYPE |
Definition at line 28 of file Ifconfig6.c.
SHELL_STATUS IfConfig6 | ( | IN IFCONFIG6_PRIVATE_DATA * | Private | ) |
The IfConfig6 main process.
[in] | Private | The pointer of IFCONFIG6_PRIVATE_DATA. |
SHELL_SUCCESS | IfConfig6 processed successfully. |
others | The IfConfig6 process failed. |
Definition at line 1661 of file Ifconfig6.c.
VOID IfConfig6Cleanup | ( | IN IFCONFIG6_PRIVATE_DATA * | Private | ) |
The IfConfig6 cleanup process, free the allocated memory.
[in] | Private | The pointer of IFCONFIG6_PRIVATE_DATA. |
Definition at line 1713 of file Ifconfig6.c.
SHELL_STATUS IfConfig6ClearInterfaceInfo | ( | IN LIST_ENTRY * | IfList, |
IN CHAR16 * | IfName | ||
) |
The clean process of the IfConfig6 application.
[in] | IfList | The pointer of IfList(interface list). |
[in] | IfName | The pointer of interface name. |
SHELL_SUCCESS | The IfConfig6 clean processed successfully. |
others | The IfConfig6 clean process failed. |
Definition at line 1106 of file Ifconfig6.c.
VOID IfConfig6FreeArgList | ( | ARG_LIST * | List | ) |
Free the ARG_LIST.
List | Pointer to ARG_LIST to free. |
Definition at line 157 of file Ifconfig6.c.
EFI_STATUS IfConfig6GetInterfaceInfo | ( | IN EFI_HANDLE | ImageHandle, |
IN CHAR16 * | IfName, | ||
IN LIST_ENTRY * | IfList | ||
) |
The get current status of all handles.
[in] | ImageHandle | The handle of ImageHandle. |
[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 726 of file Ifconfig6.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 318 of file Ifconfig6.c.
EFI_STATUS IfConfig6ParseDadXmits | ( | IN OUT ARG_LIST ** | Arg, |
OUT UINT32 * | Xmits | ||
) |
Parse dad in string format from Args with the "-s" option and convert it to UINT32 format.
[in,out] | Arg | The pointer of the address of ARG_LIST that saves Args with the "-s" option. |
[out] | Xmits | The pointer of Xmits. |
EFI_SUCCESS | The get status processed successfully. |
others | The get status process failed. |
Definition at line 686 of file Ifconfig6.c.
EFI_STATUS IfConfig6ParseGwDnsAddressList | ( | IN OUT ARG_LIST ** | Arg, |
OUT EFI_IPv6_ADDRESS ** | Buf, | ||
OUT UINTN * | BufSize | ||
) |
Pick up gw/dns IPv6 address in string format from Args with "-s" option and convert it to EFI_IPv6_ADDRESS format.
[in,out] | Arg | The pointer of the address of ARG_LIST that save Args with the "-s" option. |
[out] | Buf | The pointer of the address of EFI_IPv6_ADDRESS. |
[out] | BufSize | The pointer of BufSize that describes the size of Buf in bytes. |
EFI_SUCCESS | The conversion is successful. |
Others | Doesn't find the host address, or it is an invalid IPv6 address in string format. |
Definition at line 534 of file Ifconfig6.c.
EFI_STATUS IfConfig6ParseInterfaceId | ( | IN OUT ARG_LIST ** | Arg, |
OUT EFI_IP6_CONFIG_INTERFACE_ID ** | IfId | ||
) |
Parse InterfaceId in string format from Args with the "-s" option and convert it to EFI_IP6_CONFIG_INTERFACE_ID format.
[in,out] | Arg | The pointer of the address of ARG_LIST that saves Args with the "-s" option. |
[out] | IfId | The pointer of EFI_IP6_CONFIG_INTERFACE_ID. |
EFI_SUCCESS | The get status processed successfullly. |
EFI_INVALID_PARAMETER | The get status process failed. |
Definition at line 628 of file Ifconfig6.c.
EFI_STATUS IfConfig6ParseManualAddressList | ( | IN OUT ARG_LIST ** | Arg, |
OUT EFI_IP6_CONFIG_MANUAL_ADDRESS ** | Buf, | ||
OUT UINTN * | BufSize | ||
) |
Pick up host IPv6 address in string format from Args with "-s" option and convert it to EFI_IP6_CONFIG_MANUAL_ADDRESS format.
[in,out] | Arg | The pointer of the address of ARG_LIST which save Args with the "-s" option. |
[out] | Buf | The pointer of the address of EFI_IP6_CONFIG_MANUAL_ADDRESS. |
[out] | BufSize | The pointer of BufSize that describes the size of Buf in bytes. |
EFI_SUCCESS | The convertion is successful. |
Others | Does't find the host address, or it is an invalid IPv6 address in string format. |
Definition at line 429 of file Ifconfig6.c.
VOID IfConfig6PrintIpAddr | ( | IN EFI_IPv6_ADDRESS * | Ip, |
IN UINT8 * | PrefixLen | ||
) |
Print IPv6 address.
[in] | Ip | The pointer of Ip bufffer in EFI_IPv6_ADDRESS format. |
[in] | PrefixLen | The pointer of PrefixLen that describes the size Prefix. |
Definition at line 361 of file Ifconfig6.c.
Print MAC address.
[in] | Node | The pointer of MAC address buffer. |
[in] | Size | The size of MAC address buffer. |
Definition at line 334 of file Ifconfig6.c.
VAR_CHECK_CODE IfConfig6RetriveCheckListByName | ( | 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 257 of file Ifconfig6.c.
SHELL_STATUS IfConfig6SetInterfaceInfo | ( | IN LIST_ENTRY * | IfList, |
IN ARG_LIST * | VarArg | ||
) |
The set process of the IfConfig6 application.
[in] | IfList | The pointer of IfList(interface list). |
[in] | VarArg | The pointer of ARG_LIST(Args with "-s" option). |
SHELL_SUCCESS | The IfConfig6 set processed successfully. |
others | The IfConfig6 set process failed. |
Definition at line 1180 of file Ifconfig6.c.
SHELL_STATUS IfConfig6ShowInterfaceInfo | ( | IN LIST_ENTRY * | IfList | ) |
The list process of the IfConfig6 application.
[in] | IfList | The pointer of IfList(interface list). |
SHELL_SUCCESS | The IfConfig6 list processed successfully. |
others | The IfConfig6 list process failed. |
Definition at line 978 of file Ifconfig6.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 182 of file Ifconfig6.c.
SHELL_STATUS EFIAPI ShellCommandRunIfconfig6 | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Function for 'ifconfig6' command.
[in] | ImageHandle | Handle to the Image (NULL if Internal). |
[in] | SystemTable | Pointer to the System Table (NULL if Internal). |
SHELL_SUCCESS | ifconfig6 command processed successfully. |
others | The ifconfig6 command process failed. |
Definition at line 1774 of file Ifconfig6.c.
SHELL_PARAM_ITEM mIfConfig6CheckList[] |
Definition at line 73 of file Ifconfig6.c.
VAR_CHECK_ITEM mIfConfig6SetCheckList[] |
Definition at line 100 of file Ifconfig6.c.