ShellPkg: Merge Ping6 and Ifconfig6 tools to Shell command.
According to the new Shell spec, we add Network2 profile and merge Ping6 and Ifconfig6 tools to Shell command. Cc: Carsey Jaben <jaben.carsey@intel.com> Cc: Wu Jiaxin <jiaxin.wu@intel.com> Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo <lubo.zhang@intel.com> Reviewed-By: Jaben Carsey <Jaben.carsey@intel.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
GUIDs for HII package list installed by Shell libraries.
|
GUIDs for HII package list installed by Shell libraries.
|
||||||
|
|
||||||
Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -54,6 +54,12 @@
|
|||||||
{ \
|
{ \
|
||||||
0xf3d301bb, 0xf4a5, 0x45a8, { 0xb0, 0xb7, 0xfa, 0x99, 0x9c, 0x62, 0x37, 0xae } \
|
0xf3d301bb, 0xf4a5, 0x45a8, { 0xb0, 0xb7, 0xfa, 0x99, 0x9c, 0x62, 0x37, 0xae } \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define SHELL_NETWORK2_HII_GUID \
|
||||||
|
{ \
|
||||||
|
0x174b2b5, 0xf505, 0x4b12, { 0xaa, 0x60, 0x59, 0xdf, 0xf8, 0xd6, 0xea, 0x37 } \
|
||||||
|
}
|
||||||
|
|
||||||
#define SHELL_TFTP_HII_GUID \
|
#define SHELL_TFTP_HII_GUID \
|
||||||
{ \
|
{ \
|
||||||
0x738a9314, 0x82c1, 0x4592, { 0x8f, 0xf7, 0xc1, 0xbd, 0xf1, 0xb2, 0x0e, 0xd4 } \
|
0x738a9314, 0x82c1, 0x4592, { 0x8f, 0xf7, 0xc1, 0xbd, 0xf1, 0xb2, 0x0e, 0xd4 } \
|
||||||
@ -73,6 +79,7 @@ extern EFI_GUID gShellLevel1HiiGuid;
|
|||||||
extern EFI_GUID gShellLevel2HiiGuid;
|
extern EFI_GUID gShellLevel2HiiGuid;
|
||||||
extern EFI_GUID gShellLevel3HiiGuid;
|
extern EFI_GUID gShellLevel3HiiGuid;
|
||||||
extern EFI_GUID gShellNetwork1HiiGuid;
|
extern EFI_GUID gShellNetwork1HiiGuid;
|
||||||
|
extern EFI_GUID gShellNetwork2HiiGuid;
|
||||||
extern EFI_GUID gShellTftpHiiGuid;
|
extern EFI_GUID gShellTftpHiiGuid;
|
||||||
extern EFI_GUID gShellBcfgHiiGuid;
|
extern EFI_GUID gShellBcfgHiiGuid;
|
||||||
|
|
||||||
|
1839
ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c
Normal file
1839
ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c
Normal file
File diff suppressed because it is too large
Load Diff
1247
ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c
Normal file
1247
ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,91 @@
|
|||||||
|
/** @file
|
||||||
|
Main file for NULL named library for network2 shell command functions.
|
||||||
|
|
||||||
|
Copyright (c) 2016, Intel Corporation. All rights reserved. <BR>
|
||||||
|
This program and the accompanying materials are licensed and made available under
|
||||||
|
the terms and conditions of the BSD License which accompanies this distribution.
|
||||||
|
The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
|
**/
|
||||||
|
#include "UefiShellNetwork2CommandsLib.h"
|
||||||
|
|
||||||
|
CONST CHAR16 gShellNetwork2FileName[] = L"ShellCommands";
|
||||||
|
EFI_HANDLE gShellNetwork2HiiHandle = NULL;
|
||||||
|
|
||||||
|
/**
|
||||||
|
return the file name of the help text file if not using HII.
|
||||||
|
|
||||||
|
@return The string pointer to the file name.
|
||||||
|
**/
|
||||||
|
CONST CHAR16*
|
||||||
|
EFIAPI
|
||||||
|
ShellCommandGetManFileNameNetwork2 (
|
||||||
|
VOID
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return (gShellNetwork2FileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Constructor for the Shell Network2 Commands library.
|
||||||
|
|
||||||
|
Install the handlers for Network2 UEFI Shell 2.0 profile commands.
|
||||||
|
|
||||||
|
@param ImageHandle The image handle of the process.
|
||||||
|
@param SystemTable The EFI System Table pointer.
|
||||||
|
|
||||||
|
@retval EFI_SUCCESS The shell command handlers were installed sucessfully.
|
||||||
|
@retval EFI_UNSUPPORTED The shell level required was not found.
|
||||||
|
**/
|
||||||
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
ShellNetwork2CommandsLibConstructor (
|
||||||
|
IN EFI_HANDLE ImageHandle,
|
||||||
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
|
)
|
||||||
|
{
|
||||||
|
gShellNetwork2HiiHandle = NULL;
|
||||||
|
|
||||||
|
//
|
||||||
|
// check our bit of the profiles mask
|
||||||
|
//
|
||||||
|
if ((PcdGet8(PcdShellProfileMask) & BIT4) == 0) {
|
||||||
|
return (EFI_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
|
gShellNetwork2HiiHandle = HiiAddPackages (&gShellNetwork2HiiGuid, gImageHandle, UefiShellNetwork2CommandsLibStrings, NULL);
|
||||||
|
if (gShellNetwork2HiiHandle == NULL) {
|
||||||
|
return (EFI_DEVICE_ERROR);
|
||||||
|
}
|
||||||
|
//
|
||||||
|
// install our shell command handlers
|
||||||
|
//
|
||||||
|
ShellCommandRegisterCommandName(L"ping6", ShellCommandRunPing6 , ShellCommandGetManFileNameNetwork2, 0, L"network2", TRUE , gShellNetwork2HiiHandle, STRING_TOKEN(STR_GET_HELP_PING6));
|
||||||
|
ShellCommandRegisterCommandName(L"ifconfig6",ShellCommandRunIfconfig6 , ShellCommandGetManFileNameNetwork2, 0, L"network2", TRUE , gShellNetwork2HiiHandle, STRING_TOKEN(STR_GET_HELP_IFCONFIG6));
|
||||||
|
|
||||||
|
return EFI_SUCCESS;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Destructor for the library. free any resources.
|
||||||
|
|
||||||
|
@param ImageHandle The image handle of the process.
|
||||||
|
@param SystemTable The EFI System Table pointer.
|
||||||
|
**/
|
||||||
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
ShellNetwork2CommandsLibDestructor (
|
||||||
|
IN EFI_HANDLE ImageHandle,
|
||||||
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
|
)
|
||||||
|
{
|
||||||
|
if (gShellNetwork2HiiHandle != NULL) {
|
||||||
|
HiiRemovePackages(gShellNetwork2HiiHandle);
|
||||||
|
}
|
||||||
|
return EFI_SUCCESS;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,72 @@
|
|||||||
|
/** @file
|
||||||
|
Main file for NULL named library for network2 shell command functions.
|
||||||
|
|
||||||
|
Copyright (c) 2016, Intel Corporation. All rights reserved. <BR>
|
||||||
|
This program and the accompanying materials are licensed and made available under
|
||||||
|
the terms and conditions of the BSD License which accompanies this distribution.
|
||||||
|
The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
|
**/
|
||||||
|
|
||||||
|
#ifndef _UEFI_SHELL_NETWORK2_COMMANDS_LIB_H_
|
||||||
|
#define _UEFI_SHELL_NETWORK2_COMMANDS_LIB_H_
|
||||||
|
|
||||||
|
#include <Protocol/Cpu.h>
|
||||||
|
#include <Protocol/ServiceBinding.h>
|
||||||
|
#include <Protocol/Ip6.h>
|
||||||
|
#include <Protocol/Ip6Config.h>
|
||||||
|
|
||||||
|
#include <Guid/ShellLibHiiGuid.h>
|
||||||
|
|
||||||
|
#include <Library/ShellLib.h>
|
||||||
|
#include <Library/ShellCommandLib.h>
|
||||||
|
#include <Library/BaseMemoryLib.h>
|
||||||
|
#include <Library/BaseLib.h>
|
||||||
|
#include <Library/PcdLib.h>
|
||||||
|
#include <Library/MemoryAllocationLib.h>
|
||||||
|
#include <Library/DebugLib.h>
|
||||||
|
#include <Library/UefiBootServicesTableLib.h>
|
||||||
|
#include <Library/HiiLib.h>
|
||||||
|
#include <Library/NetLib.h>
|
||||||
|
|
||||||
|
extern EFI_HANDLE gShellNetwork2HiiHandle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Function for 'ping6' command.
|
||||||
|
|
||||||
|
@param[in] ImageHandle Handle to the Image (NULL if Internal).
|
||||||
|
@param[in] SystemTable Pointer to the System Table (NULL if Internal).
|
||||||
|
|
||||||
|
@retval SHELL_SUCCESS The ping6 processed successfullly.
|
||||||
|
@retval others The ping6 processed unsuccessfully.
|
||||||
|
|
||||||
|
**/
|
||||||
|
SHELL_STATUS
|
||||||
|
EFIAPI
|
||||||
|
ShellCommandRunPing6 (
|
||||||
|
IN EFI_HANDLE ImageHandle,
|
||||||
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Function for 'ifconfig6' command.
|
||||||
|
|
||||||
|
@param[in] ImageHandle Handle to the Image (NULL if Internal).
|
||||||
|
@param[in] SystemTable Pointer to the System Table (NULL if Internal).
|
||||||
|
|
||||||
|
@retval SHELL_SUCCESS The ifconfig6 command processed successfully.
|
||||||
|
@retval others The ifconfig6 command process failed.
|
||||||
|
|
||||||
|
**/
|
||||||
|
SHELL_STATUS
|
||||||
|
EFIAPI
|
||||||
|
ShellCommandRunIfconfig6 (
|
||||||
|
IN EFI_HANDLE ImageHandle,
|
||||||
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,63 @@
|
|||||||
|
## @file
|
||||||
|
# Provides shell network2 functions
|
||||||
|
#
|
||||||
|
# Copyright (c) 2016, Intel Corporation. All rights reserved. <BR>
|
||||||
|
#
|
||||||
|
# This program and the accompanying materials
|
||||||
|
# are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
# which accompanies this distribution. The full text of the license may be found at
|
||||||
|
# http://opensource.org/licenses/bsd-license.php
|
||||||
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
##
|
||||||
|
|
||||||
|
[Defines]
|
||||||
|
INF_VERSION = 0x00010006
|
||||||
|
BASE_NAME = UefiShellNetwork2CommandsLib
|
||||||
|
FILE_GUID = D94E3B82-908E-46bf-A7B9-C7B7F17B1B7D
|
||||||
|
MODULE_TYPE = UEFI_APPLICATION
|
||||||
|
VERSION_STRING = 1.0
|
||||||
|
LIBRARY_CLASS = NULL|UEFI_APPLICATION UEFI_DRIVER
|
||||||
|
CONSTRUCTOR = ShellNetwork2CommandsLibConstructor
|
||||||
|
DESTRUCTOR = ShellNetwork2CommandsLibDestructor
|
||||||
|
|
||||||
|
[Sources.common]
|
||||||
|
UefiShellNetwork2CommandsLib.uni
|
||||||
|
UefiShellNetwork2CommandsLib.c
|
||||||
|
UefiShellNetwork2CommandsLib.h
|
||||||
|
Ping6.c
|
||||||
|
Ifconfig6.c
|
||||||
|
|
||||||
|
[Packages]
|
||||||
|
MdePkg/MdePkg.dec
|
||||||
|
ShellPkg/ShellPkg.dec
|
||||||
|
MdeModulePkg/MdeModulePkg.dec
|
||||||
|
|
||||||
|
[LibraryClasses]
|
||||||
|
MemoryAllocationLib
|
||||||
|
BaseLib
|
||||||
|
BaseMemoryLib
|
||||||
|
DebugLib
|
||||||
|
ShellCommandLib
|
||||||
|
ShellLib
|
||||||
|
UefiLib
|
||||||
|
UefiRuntimeServicesTableLib
|
||||||
|
UefiBootServicesTableLib
|
||||||
|
PcdLib
|
||||||
|
HiiLib
|
||||||
|
FileHandleLib
|
||||||
|
NetLib
|
||||||
|
|
||||||
|
[Pcd]
|
||||||
|
gEfiShellPkgTokenSpaceGuid.PcdShellProfileMask ## CONSUMES
|
||||||
|
|
||||||
|
[Protocols]
|
||||||
|
gEfiCpuArchProtocolGuid ## CONSUMES
|
||||||
|
gEfiIp6ProtocolGuid ## SOMETIMES_CONSUMES
|
||||||
|
gEfiIp6ServiceBindingProtocolGuid ## SOMETIMES_CONSUMES
|
||||||
|
gEfiIp6ConfigProtocolGuid ## SOMETIMES_CONSUMES
|
||||||
|
|
||||||
|
[Guids]
|
||||||
|
gShellNetwork2HiiGuid ## SOMETIMES_CONSUMES ## HII
|
@ -0,0 +1,151 @@
|
|||||||
|
/** @file
|
||||||
|
|
||||||
|
String definitions for UEFI Shell network 2 commands
|
||||||
|
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
|
This program and the accompanying materials
|
||||||
|
are licensed and made available under the terms and conditions
|
||||||
|
of the BSD License which accompanies this distribution. The full
|
||||||
|
text of the license may be found at<BR>
|
||||||
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
|
Module Name:
|
||||||
|
|
||||||
|
UefiShellNetwork2CommandsLib.uni
|
||||||
|
|
||||||
|
Abstract:
|
||||||
|
|
||||||
|
String definitions for UEFI Shell 2.0 network 2 commands
|
||||||
|
**/
|
||||||
|
|
||||||
|
#langdef en-US "english"
|
||||||
|
|
||||||
|
#string STR_PING6_INVALID_IP #language en-US "%Ping6: Invalid IP6 address, %s\r\n"
|
||||||
|
#string STR_PING6_INVALID_INPUT #language en-US "%Ping6: Invalid input, please type 'Ping6 -?'for help\r\n"
|
||||||
|
#string STR_PING6_INVALID_SEND_NUMBER #language en-US "%Ping6: Invalid send number, %s\r\n"
|
||||||
|
#string STR_PING6_INVALID_BUFFER_SIZE #language en-US "%Ping6: Invalid buffer size, %s\r\n"
|
||||||
|
#string STR_PING6_INVALID_SOURCE #language en-US "%Ping6: Require source interface option\r\n"
|
||||||
|
#string STR_PING6_IP6_CONFIG #language en-US "%Ping6: The process of Ip6 Configure %r\r\n"
|
||||||
|
#string STR_PING6_IP6CFG_GETDATA #language en-US "%Ping6: Get data of the interface information %r\r\n"
|
||||||
|
#string STR_PING6_SEND_REQUEST #language en-US "Echo request sequence %d fails.\r\n"
|
||||||
|
#string STR_PING6_SOURCE_NOT_FOUND #language en-US "Source %s not found.\r\n"
|
||||||
|
#string STR_PING6_NOSOURCE_INDOMAIN #language en-US "No sources in %s's multicast domain.\r\n"
|
||||||
|
#string STR_PING6_START #language en-US "Ping %s %d data bytes\r\n"
|
||||||
|
#string STR_PING6_TIMEOUT #language en-US "Echo request sequence %d timeout.\r\n"
|
||||||
|
#string STR_PING6_REPLY_INFO #language en-US "%d bytes from %s : icmp_seq=%d ttl=%d time%c%dms\r\n"
|
||||||
|
#string STR_PING6_STAT #language en-US "\n%d packets transmitted, %d received, %d%% packet loss, time %dms\r\n"
|
||||||
|
#string STR_PING6_RTT #language en-US "\nRtt(round trip time) min=%dms max=%dms avg=%dms\r\n"
|
||||||
|
|
||||||
|
#string STR_IFCONFIG6_ERR_IP6CFG_GETDATA #language en-US "Get data of the interface information %hr\r\n"
|
||||||
|
#string STR_IFCONFIG6_INFO_BREAK #language en-US "-----------------------------------------------------------------"
|
||||||
|
#string STR_IFCONFIG6_INFO_COLON #language en-US ":"
|
||||||
|
#string STR_IFCONFIG6_INFO_JOINT #language en-US " >> "
|
||||||
|
#string STR_IFCONFIG6_INFO_NEWLINE #language en-US "\r\n"
|
||||||
|
#string STR_IFCONFIG6_INFO_IF_NAME #language en-US "\n%Hname : %s%N\r\n"
|
||||||
|
#string STR_IFCONFIG6_INFO_POLICY_AUTO #language en-US "%Hpolicy : automatic%N\r\n"
|
||||||
|
#string STR_IFCONFIG6_INFO_POLICY_MAN #language en-US "%Hpolicy : manual%N\r\n"
|
||||||
|
#string STR_IFCONFIG6_INFO_DAD_TRANSMITS #language en-US "%Hdad xmits : %d%N\r\n"
|
||||||
|
#string STR_IFCONFIG6_INFO_INTERFACE_ID_HEAD #language en-US "%Hinterface id : %N"
|
||||||
|
#string STR_IFCONFIG6_INFO_MAC_ADDR_HEAD #language en-US "%Hmac addr : %N"
|
||||||
|
#string STR_IFCONFIG6_INFO_MAC_ADDR_BODY #language en-US "%02x"
|
||||||
|
#string STR_IFCONFIG6_INFO_IP_ADDR_HEAD #language en-US "\n%Hhost addr : %N\r\n"
|
||||||
|
#string STR_IFCONFIG6_INFO_DNS_ADDR_HEAD #language en-US "\n%Hdns server : %N\r\n"
|
||||||
|
#string STR_IFCONFIG6_INFO_IP_ADDR_BODY #language en-US "%02x"
|
||||||
|
#string STR_IFCONFIG6_INFO_IP_ADDR_BODY4BIT #language en-US "%x"
|
||||||
|
#string STR_IFCONFIG6_INFO_ROUTE_HEAD #language en-US "\n%Hroute table : %N\r\n"
|
||||||
|
#string STR_IFCONFIG6_INFO_PREFIX_LEN #language en-US "/%d"
|
||||||
|
#string STR_IFCONFIG6_LINE_HELP #language en-US "Displays or modifies the IPv6 configuration"
|
||||||
|
#string STR_IFCONFIG6_ERR_LACK_INTERFACE #language en-US "Lack interface name.\r\n"
|
||||||
|
"Usage: IfConfig6 -s <Name> \r\n"
|
||||||
|
"Example: IfConfig6 -s eth0 auto\r\n"
|
||||||
|
#string STR_IFCONFIG6_LACK_OPTION #language en-US "Flags lack. Please type 'IfConfig6 -?' for help info.\r\n"
|
||||||
|
#string STR_IFCONFIG6_CONFLICT_OPTIONS #language en-US "Flags conflict. Please type 'IfConfig6 -?' for help info.\r\n"
|
||||||
|
#string STR_IFCONFIG6_ERR_LACK_COMMAND #language en-US "Lack interface config option.\r\n"
|
||||||
|
"Hint: Please type 'IfConfig6 -?' for help info.\r\n"
|
||||||
|
#string STR_IFCONFIG6_ERR_INVALID_INTERFACE #language en-US "Invalid interface name.\r\n"
|
||||||
|
"Hint: Use {IfConfig6 -l} to check existing interface names.\r\n"
|
||||||
|
#string STR_IFCONFIG6_ERR_INVALID_COMMAND #language en-US "Invalid command. Bad command %H%s%N is skipped.\r\n"
|
||||||
|
"Hint: Incorrect option or arguments. Please type 'IfConfig6 -?' for help info.\r\n"
|
||||||
|
#string STR_IFCONFIG6_ERR_LACK_ARGUMENTS #language en-US "Lack arguments. Bad command %H%s%N is skipped.\r\n"
|
||||||
|
"Hint: Please type 'IfConfig6 -?' for help info.\r\n"
|
||||||
|
#string STR_IFCONFIG6_ERR_LACK_OPTION #language en-US "Lack options.\r\n"
|
||||||
|
"Hint: Please type 'IfConfig6 -?' for help info.\r\n"
|
||||||
|
#string STR_IFCONFIG6_ERR_MAN_HOST #language en-US "Manual address configuration failed. Please retry.\r\n"
|
||||||
|
#string STR_IFCONFIG6_ERR_DUPLICATE_COMMAND #language en-US "Duplicate commands. Bad command %H%s%N is skipped.\r\n"
|
||||||
|
"Hint: Please type 'IfConfig6 -?' for help info.\r\n"
|
||||||
|
#string STR_IFCONFIG6_ERR_CONFLICT_COMMAND #language en-US "Conflict commands. Bad command %H%s%N is skipped.\r\n"
|
||||||
|
"Hint: Please type 'IfConfig6 -?' for help info.\r\n"
|
||||||
|
#string STR_IFCONFIG6_ERR_UNKNOWN_COMMAND #language en-US "Unknown commands. Bad command %H%s%N is skipped.\r\n"
|
||||||
|
"Hint: Please type 'IfConfig6 -?' for help info.\r\n"
|
||||||
|
#string STR_IFCONFIG6_ERR_ADDRESS_FAILED #language en-US "It failed to set .\r\n"
|
||||||
|
|
||||||
|
|
||||||
|
#string STR_GET_HELP_PING6 #language en-US ""
|
||||||
|
".TH ping6 0 "Ping a target machine with UEFI IPv6 network stack."\r\n"
|
||||||
|
".SH NAME\r\n"
|
||||||
|
"Ping a target machine with UEFI IPv6 network stack.\r\n"
|
||||||
|
".SH SYNOPSIS\r\n"
|
||||||
|
" \r\n"
|
||||||
|
"Ping6 [-l size] [-n count] [-s SourceIp] TargetIp\r\n"
|
||||||
|
".SH OPTIONS\r\n"
|
||||||
|
" \r\n"
|
||||||
|
" -l size Send buffer size, in bytes(default=16, min=16, max=32768).\r\n"
|
||||||
|
" -n count Send request count, (default=10, min=1, max=10000).\r\n"
|
||||||
|
" -s SourceIp Source IPv6 address.\r\n"
|
||||||
|
" TargetIp Target IPv6 address.\r\n"
|
||||||
|
".SH EXAMPLES\r\n"
|
||||||
|
" \r\n"
|
||||||
|
"Examples:\r\n"
|
||||||
|
" * To ping the target host by sending 5 request with 1000 bytes from 2002::1\r\n"
|
||||||
|
" Shell:\> Ping6 -s 2002::1 2002::2 -l 1000 -n 5\r\n"
|
||||||
|
" \r\n"
|
||||||
|
" * To ping the target host with 1000 bytes\r\n"
|
||||||
|
" Shell:\> Ping6 2002::2 -l 1000\r\n"
|
||||||
|
|
||||||
|
#string STR_GET_HELP_IFCONFIG6 #language en-US ""
|
||||||
|
".TH ifconfig6 0 "Displays or modifies IPv6 configuration for network interface."\r\n"
|
||||||
|
".SH NAME\r\n"
|
||||||
|
"Displays or modifies IPv6 configuration for network interface.\r\n"
|
||||||
|
".SH SYNOPSIS\r\n"
|
||||||
|
" \r\n"
|
||||||
|
"IfConfig6 -r [Name] | -l [Name] \r\n"
|
||||||
|
"IfConfig6 -s <Name> [dad <Num>] [auto | [man [id <mac>] [host <IPv6> gw <IPv6>]\r\n"
|
||||||
|
" [dns <IPv6>]]]\r\n"
|
||||||
|
".SH OPTIONS\r\n"
|
||||||
|
" \r\n"
|
||||||
|
" Name Adapter name, i.e., eth0\r\n"
|
||||||
|
" -r [Name] Reconfigure all or specified interface, and set\r\n"
|
||||||
|
" automatic policy. If specified interface is already\r\n"
|
||||||
|
" set to automatic,then refresh the IPv6 configuration.\r\n"
|
||||||
|
" -l [Name] List the configuration of the specified interface.\r\n"
|
||||||
|
" -s <Name> dad <Num> Set dad transmits count of the specified interface.\r\n"
|
||||||
|
" -s <Name> auto Set automatic policy of the specified interface.\r\n"
|
||||||
|
" -s <Name> man id <Mac> Set alternative interface id of the specified \r\n"
|
||||||
|
" interface. Must under manual policy.\r\n"
|
||||||
|
" -s <Name> man host <IPv6> gw <IPv6>\r\n"
|
||||||
|
" Set static host IP and gateway address of the\r\n"
|
||||||
|
" specified interface. Must under manual policy.\r\n"
|
||||||
|
" -s <Name> man dns <IPv6> Set DNS server IP addresses of the specified\r\n"
|
||||||
|
" interface.Must under manual policy.\r\n"
|
||||||
|
".SH EXAMPLES\r\n"
|
||||||
|
" \r\n"
|
||||||
|
"EXAMPLES:\r\n"
|
||||||
|
" * To list the configuration for the interface eth0:\r\n"
|
||||||
|
" Shell:\> ifConfig6 -l eth0\r\n"
|
||||||
|
" \r\n"
|
||||||
|
" * To use automatic configuration to request the IPv6 address configuration\r\n"
|
||||||
|
" dynamically for the interface eth0:\r\n"
|
||||||
|
" Shell:\> ifconfig6 -s eth0 auto\r\n"
|
||||||
|
" \r\n"
|
||||||
|
" * To set the dad transmits count for eth0 under automatic policy:\r\n"
|
||||||
|
" Shell:\> ifconfig6 -s eth0 auto dad 10\r\n"
|
||||||
|
" \r\n"
|
||||||
|
" * To set the alternative interface id of eth0 under manual policy:\r\n"
|
||||||
|
" Shell:\> ifconfig6 -s eth0 man id ff:dd:aa:88:66:cc\r\n"
|
||||||
|
" \r\n"
|
||||||
|
" * To use the static IP6 addresses configuration for the interface eth0,\r\n"
|
||||||
|
" and this configuration survives the network reload:\r\n"
|
||||||
|
" Shell:\> ifconfig6 -s eth0 man host 2002::1/64 2002::2/64 gw 2002::3/64\r\n"
|
@ -2,7 +2,7 @@
|
|||||||
# This Package provides all definitions for EFI and UEFI Shell
|
# This Package provides all definitions for EFI and UEFI Shell
|
||||||
#
|
#
|
||||||
# (C) Copyright 2013-2014 Hewlett-Packard Development Company, L.P.<BR>
|
# (C) Copyright 2013-2014 Hewlett-Packard Development Company, L.P.<BR>
|
||||||
# Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
#
|
#
|
||||||
# This program and the accompanying materials are licensed and made available under
|
# This program and the accompanying materials are licensed and made available under
|
||||||
# the terms and conditions of the BSD License which accompanies this distribution.
|
# the terms and conditions of the BSD License which accompanies this distribution.
|
||||||
@ -53,6 +53,7 @@
|
|||||||
gShellLevel2HiiGuid = {0xf95a7ccc, 0x4c55, 0x4426, {0xa7, 0xb4, 0xdc, 0x89, 0x61, 0x95, 0xb, 0xae}}
|
gShellLevel2HiiGuid = {0xf95a7ccc, 0x4c55, 0x4426, {0xa7, 0xb4, 0xdc, 0x89, 0x61, 0x95, 0xb, 0xae}}
|
||||||
gShellLevel3HiiGuid = {0x4344558d, 0x4ef9, 0x4725, {0xb1, 0xe4, 0x33, 0x76, 0xe8, 0xd6, 0x97, 0x4f}}
|
gShellLevel3HiiGuid = {0x4344558d, 0x4ef9, 0x4725, {0xb1, 0xe4, 0x33, 0x76, 0xe8, 0xd6, 0x97, 0x4f}}
|
||||||
gShellNetwork1HiiGuid = {0xf3d301bb, 0xf4a5, 0x45a8, {0xb0, 0xb7, 0xfa, 0x99, 0x9c, 0x62, 0x37, 0xae}}
|
gShellNetwork1HiiGuid = {0xf3d301bb, 0xf4a5, 0x45a8, {0xb0, 0xb7, 0xfa, 0x99, 0x9c, 0x62, 0x37, 0xae}}
|
||||||
|
gShellNetwork2HiiGuid = {0x174b2b5, 0xf505, 0x4b12, {0xaa, 0x60, 0x59, 0xdf, 0xf8, 0xd6, 0xea, 0x37}}
|
||||||
gShellTftpHiiGuid = {0x738a9314, 0x82c1, 0x4592, {0x8f, 0xf7, 0xc1, 0xbd, 0xf1, 0xb2, 0x0e, 0xd4}}
|
gShellTftpHiiGuid = {0x738a9314, 0x82c1, 0x4592, {0x8f, 0xf7, 0xc1, 0xbd, 0xf1, 0xb2, 0x0e, 0xd4}}
|
||||||
gShellBcfgHiiGuid = {0x5f5f605d, 0x1583, 0x4a2d, {0xa6, 0xb2, 0xeb, 0x12, 0xda, 0xb4, 0xa2, 0xb6}}
|
gShellBcfgHiiGuid = {0x5f5f605d, 0x1583, 0x4a2d, {0xa6, 0xb2, 0xeb, 0x12, 0xda, 0xb4, 0xa2, 0xb6}}
|
||||||
|
|
||||||
@ -94,6 +95,7 @@
|
|||||||
# bit 1 = Debug1
|
# bit 1 = Debug1
|
||||||
# bit 2 = Install1
|
# bit 2 = Install1
|
||||||
# bit 3 = Network1
|
# bit 3 = Network1
|
||||||
|
# bit 4 = Network2
|
||||||
gEfiShellPkgTokenSpaceGuid.PcdShellProfileMask|0xFF|UINT8|0x0000000D
|
gEfiShellPkgTokenSpaceGuid.PcdShellProfileMask|0xFF|UINT8|0x0000000D
|
||||||
|
|
||||||
## This is the character count for allocation for consistent mappings
|
## This is the character count for allocation for consistent mappings
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
||||||
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf
|
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf
|
||||||
DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
|
DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
|
||||||
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
||||||
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
||||||
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
||||||
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
|
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
|
||||||
@ -46,7 +46,7 @@
|
|||||||
ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
|
ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
|
||||||
ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
|
ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
|
||||||
HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
|
HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
|
||||||
|
|
||||||
PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
|
PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
|
||||||
BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
|
BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
|
||||||
IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
|
IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
|
||||||
@ -88,6 +88,7 @@
|
|||||||
ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
|
ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
|
||||||
ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
|
ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
|
||||||
ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
|
ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
|
||||||
|
ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
|
||||||
ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.inf
|
ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.inf
|
||||||
|
|
||||||
ShellPkg/Library/UefiDpLib/UefiDpLib.inf {
|
ShellPkg/Library/UefiDpLib/UefiDpLib.inf {
|
||||||
@ -107,6 +108,7 @@
|
|||||||
NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
|
NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
|
||||||
NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
|
NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
|
||||||
NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
|
NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
|
||||||
|
NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
|
||||||
!ifdef $(INCLUDE_DP)
|
!ifdef $(INCLUDE_DP)
|
||||||
NULL|ShellPkg/Library/UefiDpLib/UefiDpLib.inf
|
NULL|ShellPkg/Library/UefiDpLib/UefiDpLib.inf
|
||||||
!endif #$(INCLUDE_DP)
|
!endif #$(INCLUDE_DP)
|
||||||
|
Reference in New Issue
Block a user