NetworkPkg: Refine the code of shell app under networkPkg.

refine the code of ifconfig6 and ping6 application.

Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
Zhang, Lubo 2016-03-09 14:20:40 +08:00 committed by Jiaxin Wu
parent bad53b3d40
commit d1bc021ab3
4 changed files with 10 additions and 10 deletions

View File

@ -28,6 +28,11 @@
#include "IfConfig6.h" #include "IfConfig6.h"
//
// String token ID of ifconfig6 command help message text.
//
GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringIfconfig6HelpTokenId = STRING_TOKEN (STR_IFCONFIG6_HELP);
EFI_HII_HANDLE mHiiHandle; EFI_HII_HANDLE mHiiHandle;
SHELL_PARAM_ITEM mIfConfig6CheckList[] = { SHELL_PARAM_ITEM mIfConfig6CheckList[] = {

View File

@ -16,11 +16,6 @@
#ifndef _IFCONFIG6_H_ #ifndef _IFCONFIG6_H_
#define _IFCONFIG6_H_ #define _IFCONFIG6_H_
//
// String token ID of ifconfig6 command help message text.
//
GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringIfconfig6HelpTokenId = STRING_TOKEN (STR_IFCONFIG6_HELP);
enum { enum {
IfConfig6OpList = 1, IfConfig6OpList = 1,
IfConfig6OpSet = 2, IfConfig6OpSet = 2,

View File

@ -30,6 +30,11 @@
#include "Ping6.h" #include "Ping6.h"
//
// String token ID of Ping6 command help message text.
//
GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringPing6HelpToken = STRING_TOKEN (STR_PING6_HELP);
SHELL_PARAM_ITEM Ping6ParamList[] = { SHELL_PARAM_ITEM Ping6ParamList[] = {
{ {
L"-l", L"-l",

View File

@ -21,11 +21,6 @@
#define PING6_MAX_BUFFER_SIZE 32768 #define PING6_MAX_BUFFER_SIZE 32768
#define PING6_ONE_SECOND 10000000 #define PING6_ONE_SECOND 10000000
//
// String token ID of Ping6 command help message text.
//
GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringPing6HelpToken = STRING_TOKEN (STR_PING6_HELP);
// //
// A similar amount of time that passes in femtoseconds // A similar amount of time that passes in femtoseconds
// for each increment of TimerValue. It is for NT32 only. // for each increment of TimerValue. It is for NT32 only.