mirror of https://github.com/acidanthera/audk.git
NetworkPkg: Remove ping6 and ifconfig shell application.
Edk2 has duplicated ping6/ifconfig6 implementation in NetworkPkg and ShellPkg. The usage and parameter format of these 2 versions are exactly same. These two commands have been added to Shell specification so the copy under ShellPkg\Library\UefiShellNetwork2CommandsLib\ will be actively maintained in future. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com>
This commit is contained in:
parent
5ce99ab99e
commit
b9e5df4336
File diff suppressed because it is too large
Load Diff
|
@ -1,79 +0,0 @@
|
|||
/** @file
|
||||
The interface function declaration of shell application IfConfig6.
|
||||
|
||||
Copyright (c) 2009 - 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 _IFCONFIG6_H_
|
||||
#define _IFCONFIG6_H_
|
||||
|
||||
enum {
|
||||
IfConfig6OpList = 1,
|
||||
IfConfig6OpSet = 2,
|
||||
IfConfig6OpClear = 3
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
VarCheckReserved = -1,
|
||||
VarCheckOk = 0,
|
||||
VarCheckDuplicate,
|
||||
VarCheckConflict,
|
||||
VarCheckUnknown,
|
||||
VarCheckLackValue,
|
||||
VarCheckOutOfMem
|
||||
} VAR_CHECK_CODE;
|
||||
|
||||
typedef enum {
|
||||
FlagTypeSingle = 0,
|
||||
FlagTypeNeedVar,
|
||||
FlagTypeNeedSet,
|
||||
FlagTypeSkipUnknown
|
||||
} VAR_CHECK_FLAG_TYPE;
|
||||
|
||||
#define MACADDRMAXSIZE 32
|
||||
#define PREFIXMAXLEN 16
|
||||
|
||||
typedef struct _IFCONFIG6_INTERFACE_CB {
|
||||
EFI_HANDLE NicHandle;
|
||||
LIST_ENTRY Link;
|
||||
EFI_IP6_CONFIG_PROTOCOL *IfCfg;
|
||||
EFI_IP6_CONFIG_INTERFACE_INFO *IfInfo;
|
||||
EFI_IP6_CONFIG_INTERFACE_ID *IfId;
|
||||
EFI_IP6_CONFIG_POLICY Policy;
|
||||
EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS Xmits;
|
||||
UINT32 DnsCnt;
|
||||
EFI_IPv6_ADDRESS DnsAddr[1];
|
||||
} IFCONFIG6_INTERFACE_CB;
|
||||
|
||||
typedef struct _ARG_LIST ARG_LIST;
|
||||
|
||||
struct _ARG_LIST {
|
||||
ARG_LIST *Next;
|
||||
CHAR16 *Arg;
|
||||
};
|
||||
|
||||
typedef struct _IFCONFIG6_PRIVATE_DATA {
|
||||
EFI_HANDLE ImageHandle;
|
||||
LIST_ENTRY IfList;
|
||||
|
||||
UINT32 OpCode;
|
||||
CHAR16 *IfName;
|
||||
ARG_LIST *VarArg;
|
||||
} IFCONFIG6_PRIVATE_DATA;
|
||||
|
||||
typedef struct _VAR_CHECK_ITEM{
|
||||
CHAR16 *FlagStr;
|
||||
UINT32 FlagID;
|
||||
UINT32 ConflictMask;
|
||||
VAR_CHECK_FLAG_TYPE FlagType;
|
||||
} VAR_CHECK_ITEM;
|
||||
#endif
|
|
@ -1,67 +0,0 @@
|
|||
## @file
|
||||
# Shell application IfConfig6.
|
||||
#
|
||||
# It is shell application which is used to set and get configurations for the
|
||||
# EFI IPv6 network stack.
|
||||
#
|
||||
# Copyright (c) 2009 - 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 = IfConfig6
|
||||
FILE_GUID = 6F71926E-60CE-428d-AA58-A3D9FB879429
|
||||
MODULE_TYPE = UEFI_APPLICATION
|
||||
VERSION_STRING = 1.0
|
||||
ENTRY_POINT = IfConfig6Initialize
|
||||
MODULE_UNI_FILE = IfConfig6.uni
|
||||
|
||||
#
|
||||
#
|
||||
# This flag specifies whether HII resource section is generated into PE image.
|
||||
#
|
||||
UEFI_HII_RESOURCE_SECTION = TRUE
|
||||
|
||||
#
|
||||
# The following information is for reference only and not required by the build tools.
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64 IPF
|
||||
#
|
||||
[Sources]
|
||||
IfConfig6Strings.uni
|
||||
IfConfig6.c
|
||||
IfConfig6.h
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
ShellPkg/ShellPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
BaseLib
|
||||
UefiBootServicesTableLib
|
||||
UefiApplicationEntryPoint
|
||||
UefiHiiServicesLib
|
||||
BaseMemoryLib
|
||||
ShellLib
|
||||
MemoryAllocationLib
|
||||
DebugLib
|
||||
HiiLib
|
||||
NetLib
|
||||
|
||||
[Protocols]
|
||||
gEfiIp6ServiceBindingProtocolGuid ## CONSUMES
|
||||
gEfiIp6ConfigProtocolGuid ## CONSUMES
|
||||
gEfiHiiPackageListProtocolGuid ## CONSUMES
|
||||
|
||||
[UserExtensions.TianoCore."ExtraFiles"]
|
||||
IfConfig6Extra.uni
|
|
@ -1,23 +0,0 @@
|
|||
// /** @file
|
||||
// Shell application IfConfig6.
|
||||
//
|
||||
// It is shell application which is used to set and get configurations for the
|
||||
// EFI IPv6 network stack.
|
||||
//
|
||||
// Copyright (c) 2009 - 2014, 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.
|
||||
//
|
||||
// **/
|
||||
|
||||
|
||||
#string STR_MODULE_ABSTRACT #language en-US "Shell application IfConfig6"
|
||||
|
||||
#string STR_MODULE_DESCRIPTION #language en-US "It is shell application which is used to set and get configurations for the EFI IPv6 network stack."
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
// /** @file
|
||||
// IfConfig6 Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, 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.
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"IfConfig6 App"
|
||||
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
/** @file
|
||||
String definitions for the Shell application IfConfig6.
|
||||
|
||||
Copyright (c) 2009 - 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.
|
||||
|
||||
**/
|
||||
|
||||
#langdef en-US "English"
|
||||
|
||||
#string STR_IFCONFIG6_ERR_IP6CFG_GETDATA #language en-US "Ip6Config->GetData return %hr\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 "\n"
|
||||
#string STR_IFCONFIG6_INFO_IF_NAME #language en-US "\n%Hname : %s%N\n"
|
||||
#string STR_IFCONFIG6_INFO_POLICY_AUTO #language en-US "%Hpolicy : automatic%N\n"
|
||||
#string STR_IFCONFIG6_INFO_POLICY_MAN #language en-US "%Hpolicy : manual%N\n"
|
||||
#string STR_IFCONFIG6_INFO_DAD_TRANSMITS #language en-US "%Hdad xmits : %d%N\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\n"
|
||||
#string STR_IFCONFIG6_INFO_DNS_ADDR_HEAD #language en-US "\n%Hdns server : %N\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\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.\n"
|
||||
"Usage: IfConfig6 -s {ifname} {config options ...}\n"
|
||||
"Example: IfConfig6 -s eth0 auto\n"
|
||||
#string STR_IFCONFIG6_LACK_OPTION #language en-US "Flags lack. Please type 'IfConfig6 -?' for help info.\n"
|
||||
#string STR_IFCONFIG6_CONFLICT_OPTIONS #language en-US "Flags conflict. Please type 'IfConfig6 -?' for help info.\n"
|
||||
#string STR_IFCONFIG6_ERR_LACK_COMMAND #language en-US "Lack interface config option.\n"
|
||||
"Usage: IfConfig6 -s {ifname} {config options ...}\n"
|
||||
"Example: IfConfig6 -s eth0 auto\n"
|
||||
#string STR_IFCONFIG6_ERR_INVALID_INTERFACE #language en-US "Invalid interface name.\n"
|
||||
"Hint: Use {IfConfig6 -l} to check existing interface names.\n"
|
||||
#string STR_IFCONFIG6_ERR_INVALID_COMMAND #language en-US "Invalid command. Bad command %H%s%N is skipped.\n"
|
||||
"Hint: Incorrect option or arguments. Please type 'IfConfig6 -?' for help info.\n"
|
||||
#string STR_IFCONFIG6_ERR_LACK_ARGUMENTS #language en-US "Lack arguments. Bad command %H%s%N is skipped.\n"
|
||||
"Hint: Please type 'IfConfig6 -?' for help info.\n"
|
||||
#string STR_IFCONFIG6_ERR_LACK_OPTION #language en-US "Lack options.\n"
|
||||
"Hint: Please type 'IfConfig6 -?' for help info.\n"
|
||||
#string STR_IFCONFIG6_ERR_MAN_HOST #language en-US "Manual address configuration failed. Please retry.\n"
|
||||
#string STR_IFCONFIG6_ERR_DUPLICATE_COMMAND #language en-US "Duplicate commands. Bad command %H%s%N is skipped.\n"
|
||||
"Hint: Please type 'IfConfig6 -?' for help info.\n"
|
||||
#string STR_IFCONFIG6_ERR_CONFLICT_COMMAND #language en-US "Conflict commands. Bad command %H%s%N is skipped.\n"
|
||||
"Hint: Please type 'IfConfig6 -?' for help info.\n"
|
||||
#string STR_IFCONFIG6_ERR_UNKNOWN_COMMAND #language en-US "Unknown commands. Bad command %H%s%N is skipped.\n"
|
||||
"Hint: Please type 'IfConfig6 -?' for help info.\n"
|
||||
#string STR_IFCONFIG6_ERR_ADDRESS_FAILED #language en-US "It failed to set .\n"
|
||||
#string STR_IFCONFIG6_INVALID_IP #language en-US "%IfConfig6: Invalid IP6 address, %s\n"
|
||||
|
||||
#string STR_IFCONFIG6_HELP #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 [-b] [-r {ifname}] [-l {ifname}] [-s {ifname} {command ...}] [-?]\r\n"
|
||||
".SH OPTIONS\r\n"
|
||||
" \r\n"
|
||||
" -b (break) enable page break.\r\n"
|
||||
" -r (renew) renew configuration of interface and set automatic policy.\r\n"
|
||||
" -l (list) list the configuration of interface.\r\n"
|
||||
" -s (set) set configuration of interface as follows.\r\n"
|
||||
" |man/auto manual or automatic policy\r\n"
|
||||
" |id {mac} alternative interface id.\r\n"
|
||||
" |dad {num} dad transmits count.\r\n"
|
||||
" |host{ip} static host ip address, must under manual policy.\r\n"
|
||||
" |gw {ip} gateway ip address, must under manual policy.\r\n"
|
||||
" |dns {ip} dns server ip address, must under manual policy.\r\n"
|
||||
".SH EXAMPLES\r\n"
|
||||
" \r\n"
|
||||
"Examples:\r\n"
|
||||
" IfConfig6 -l\r\n"
|
||||
" IfConfig6 -b -l\r\n"
|
||||
" IfConfig6 -r eth0\r\n"
|
||||
" IfConfig6 -s eth0 auto dad 10\r\n"
|
||||
" IfConfig6 -s eth0 man id ff:dd:aa:88:66:cc\r\n"
|
||||
" IfConfig6 -s eth1 man host 2002::1/64 2002::2/64 gw 2002::3\r\n"
|
|
@ -1,28 +0,0 @@
|
|||
/** @file
|
||||
The implement to read TSC in IA32 platform.
|
||||
|
||||
Copyright (c) 2009 - 2010, 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 <Library/BaseLib.h>
|
||||
|
||||
/**
|
||||
Reads and returns the current value of the Time Stamp Counter (TSC).
|
||||
|
||||
@return The current value of TSC.
|
||||
|
||||
**/
|
||||
UINT64
|
||||
ReadTime ()
|
||||
{
|
||||
return AsmReadTsc ();
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
/** @file
|
||||
The implement to read ITC in IA64 platform.
|
||||
|
||||
Copyright (c) 2009 - 2010, 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 <Library/BaseLib.h>
|
||||
|
||||
/**
|
||||
Reads and returns the current value of the Interval Timer Counter Register (ITC).
|
||||
|
||||
@return The current value of ITC.
|
||||
|
||||
**/
|
||||
UINT64
|
||||
ReadTime ()
|
||||
{
|
||||
return AsmReadItc ();
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,87 +0,0 @@
|
|||
/** @file
|
||||
The interface function declaration of shell application Ping6 (Ping for v6 series).
|
||||
|
||||
Copyright (c) 2009 - 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 _PING6_H_
|
||||
#define _PING6_H_
|
||||
|
||||
#define PING6_DEFAULT_TIMEOUT 5000
|
||||
#define PING6_MAX_SEND_NUMBER 10000
|
||||
#define PING6_MAX_BUFFER_SIZE 32768
|
||||
#define PING6_ONE_SECOND 10000000
|
||||
|
||||
//
|
||||
// A similar amount of time that passes in femtoseconds
|
||||
// for each increment of TimerValue. It is for NT32 only.
|
||||
//
|
||||
#define NTTIMERPERIOD 358049
|
||||
|
||||
#pragma pack(1)
|
||||
|
||||
typedef struct _ICMP6_ECHO_REQUEST_REPLY {
|
||||
UINT8 Type;
|
||||
UINT8 Code;
|
||||
UINT16 Checksum;
|
||||
UINT16 Identifier;
|
||||
UINT16 SequenceNum;
|
||||
UINT64 TimeStamp;
|
||||
UINT8 Data[1];
|
||||
} ICMP6_ECHO_REQUEST_REPLY;
|
||||
|
||||
#pragma pack()
|
||||
|
||||
typedef struct _PING6_ICMP6_TX_INFO {
|
||||
LIST_ENTRY Link;
|
||||
UINT16 SequenceNum;
|
||||
UINT64 TimeStamp;
|
||||
EFI_IP6_COMPLETION_TOKEN *Token;
|
||||
} PING6_ICMP6_TX_INFO;
|
||||
|
||||
typedef struct _PING6_PRIVATE_DATA {
|
||||
EFI_HANDLE ImageHandle;
|
||||
EFI_HANDLE NicHandle;
|
||||
EFI_HANDLE Ip6ChildHandle;
|
||||
EFI_IP6_PROTOCOL *Ip6;
|
||||
EFI_EVENT Timer;
|
||||
|
||||
EFI_STATUS Status;
|
||||
LIST_ENTRY TxList;
|
||||
EFI_IP6_COMPLETION_TOKEN RxToken;
|
||||
UINT16 RxCount;
|
||||
UINT16 TxCount;
|
||||
UINT64 RttSum;
|
||||
UINT64 RttMin;
|
||||
UINT64 RttMax;
|
||||
UINT32 SequenceNum;
|
||||
|
||||
EFI_IPv6_ADDRESS SrcAddress;
|
||||
EFI_IPv6_ADDRESS DstAddress;
|
||||
UINT32 SendNum;
|
||||
UINT32 BufferSize;
|
||||
} PING6_PRIVATE_DATA;
|
||||
|
||||
/**
|
||||
Reads and returns the current value of register.
|
||||
In IA64, the register is the Interval Timer Vector (ITV).
|
||||
In X86(IA32/X64), the register is the Time Stamp Counter (TSC)
|
||||
|
||||
@return The current value of the register.
|
||||
|
||||
**/
|
||||
UINT64
|
||||
ReadTime (
|
||||
VOID
|
||||
);
|
||||
|
||||
#endif
|
|
@ -1,78 +0,0 @@
|
|||
## @file
|
||||
# Shell application Ping6.
|
||||
#
|
||||
# It is an shell application which is used to Ping the target host with IPv6 stack.
|
||||
#
|
||||
# Copyright (c) 2009 - 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 = Ping6
|
||||
FILE_GUID = F35F733F-5235-4d7b-83FA-97780CEBCB20
|
||||
MODULE_TYPE = UEFI_APPLICATION
|
||||
VERSION_STRING = 1.0
|
||||
ENTRY_POINT = InitializePing6
|
||||
MODULE_UNI_FILE = Ping6.uni
|
||||
|
||||
#
|
||||
#
|
||||
# This flag specifies whether HII resource section is generated into PE image.
|
||||
#
|
||||
UEFI_HII_RESOURCE_SECTION = TRUE
|
||||
|
||||
#
|
||||
# The following information is for reference only and not required by the build tools.
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64 IPF
|
||||
#
|
||||
|
||||
[Sources]
|
||||
Ping6.c
|
||||
Ping6Strings.uni
|
||||
Ping6.h
|
||||
|
||||
[Sources.IA32]
|
||||
Ia32/Tsc.c
|
||||
|
||||
[Sources.X64]
|
||||
X64/Tsc.c
|
||||
|
||||
[Sources.IPF]
|
||||
Ipf/Itc.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
ShellPkg/ShellPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
BaseLib
|
||||
UefiBootServicesTableLib
|
||||
UefiApplicationEntryPoint
|
||||
UefiHiiServicesLib
|
||||
BaseMemoryLib
|
||||
ShellLib
|
||||
MemoryAllocationLib
|
||||
DebugLib
|
||||
HiiLib
|
||||
NetLib
|
||||
|
||||
[Protocols]
|
||||
gEfiCpuArchProtocolGuid ## CONSUMES
|
||||
gEfiIp6ProtocolGuid ## CONSUMES
|
||||
gEfiIp6ServiceBindingProtocolGuid ## CONSUMES
|
||||
gEfiIp6ConfigProtocolGuid ## CONSUMES
|
||||
gEfiHiiPackageListProtocolGuid ## CONSUMES
|
||||
|
||||
[UserExtensions.TianoCore."ExtraFiles"]
|
||||
Ping6Extra.uni
|
|
@ -1,22 +0,0 @@
|
|||
// /** @file
|
||||
// Shell application Ping6.
|
||||
//
|
||||
// It is an shell application which is used to Ping the target host with IPv6 stack.
|
||||
//
|
||||
// Copyright (c) 2009 - 2014, 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.
|
||||
//
|
||||
// **/
|
||||
|
||||
|
||||
#string STR_MODULE_ABSTRACT #language en-US "Shell application Ping6"
|
||||
|
||||
#string STR_MODULE_DESCRIPTION #language en-US "It is an shell application which is used to Ping the target host with IPv6 stack."
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
// /** @file
|
||||
// Ping6 Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, 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.
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Ping6 App"
|
||||
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
/** @file
|
||||
String definitions for the Shell Ping6 application.
|
||||
|
||||
Copyright (c) 2009 - 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.
|
||||
|
||||
**/
|
||||
|
||||
#langdef en-US "English"
|
||||
|
||||
#string STR_PING6_INVALID_IP #language en-US "%Ping6: Invalid IP6 address, %s\n"
|
||||
#string STR_PING6_INVALID_INPUT #language en-US "%Ping6: Invalid input, please type 'Ping6 -?'for help\n"
|
||||
#string STR_PING6_INVALID_SEND_NUMBER #language en-US "%Ping6: Invalid send number, %s\n"
|
||||
#string STR_PING6_INVALID_BUFFER_SIZE #language en-US "%Ping6: Invalid buffer size, %s\n"
|
||||
#string STR_PING6_INVALID_SOURCE #language en-US "%Ping6: Require source interface option\n"
|
||||
#string STR_PING6_IP6_CONFIG #language en-US "%Ping6: Ip6->Config %r\n"
|
||||
#string STR_PING6_IP6_GETMODE #language en-US "%Ping6: Ip6->GetModeData %r\n"
|
||||
#string STR_PING6_IP6CFG_GETDATA #language en-US "%Ping6: Ip6Config->GetData %r\n"
|
||||
#string STR_PING6_SEND_REQUEST #language en-US "Echo request sequence %d fails.\n"
|
||||
#string STR_PING6_SOURCE_NOT_FOUND #language en-US "Source %s not found.\n"
|
||||
#string STR_PING6_NOSOURCE_INDOMAIN #language en-US "No sources in %s's multicast domain.\n"
|
||||
#string STR_PING6_START #language en-US "Ping %s %d data bytes\n\n"
|
||||
#string STR_PING6_TIMEOUT #language en-US "Echo request sequence %d timeout.\n"
|
||||
#string STR_PING6_REPLY_INFO #language en-US "%d bytes from %s : icmp_seq=%d ttl=%d time%c%dms\n"
|
||||
#string STR_PING6_STAT #language en-US "\n%d packets transmitted, %d received, %d%% packet loss, time %dms\n"
|
||||
#string STR_PING6_RTT #language en-US "\nRtt(round trip time) min=%dms max=%dms avg=%dms\n"
|
||||
#string STR_PING6_LINE_HELP #language en-US "Ping a target machine with UEFI IPv6 network stack"
|
||||
|
||||
#string STR_PING6_HELP #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"
|
||||
" Ping6 -s 2002::1 2002::2 -l 1000 -n 5\r\n"
|
||||
" Ping6 2002::2 -l 1000\r\n"
|
|
@ -1,28 +0,0 @@
|
|||
/** @file
|
||||
The implement to read TSC in X64 platform.
|
||||
|
||||
Copyright (c) 2009 - 2010, 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 <Library/BaseLib.h>
|
||||
|
||||
/**
|
||||
Reads and returns the current value of Time Stamp Counter (TSC).
|
||||
|
||||
@return The current value of TSC
|
||||
|
||||
**/
|
||||
UINT64
|
||||
ReadTime ()
|
||||
{
|
||||
return AsmReadTsc ();
|
||||
}
|
|
@ -116,7 +116,6 @@
|
|||
NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
||||
NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
||||
|
||||
NetworkPkg/Application/IfConfig6/IfConfig6.inf
|
||||
NetworkPkg/Application/IpsecConfig/IpSecConfig.inf
|
||||
NetworkPkg/Application/VConfig/VConfig.inf
|
||||
|
||||
|
@ -126,8 +125,6 @@
|
|||
NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
||||
NetworkPkg/TlsDxe/TlsDxe.inf
|
||||
NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf
|
||||
|
||||
NetworkPkg/Application/Ping6/Ping6.inf
|
||||
|
||||
[BuildOptions]
|
||||
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|
||||
|
|
Loading…
Reference in New Issue