mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
ShellPkg: Fix ‘ifconfig’ so it will build with NIC_IP4_CONFIG_INFO.Permanent change, and update the STR_IFCONFIG_PERMANENT_STATUS string token.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips <chrisp@hp.com> reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14744 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
928927dd8e
commit
891e9f0581
@ -1,6 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
The implementation for ifcommand shell command.
|
The implementation for ifcommand shell command.
|
||||||
|
|
||||||
|
Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
|
||||||
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
@ -1388,7 +1389,7 @@ IfconfigSetNicAddr (
|
|||||||
}
|
}
|
||||||
|
|
||||||
CopyMem (&Config->NicAddr, &Info->NicAddress, sizeof (NIC_ADDR));
|
CopyMem (&Config->NicAddr, &Info->NicAddress, sizeof (NIC_ADDR));
|
||||||
Config->Perment = Permanent;
|
Config->Permanent = Permanent;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Use HII service to set NIC address
|
// Use HII service to set NIC address
|
||||||
@ -1474,9 +1475,9 @@ IfconfigShowNicInfo (
|
|||||||
}
|
}
|
||||||
|
|
||||||
ShellPrintHiiEx(-1, -1, NULL,
|
ShellPrintHiiEx(-1, -1, NULL,
|
||||||
STRING_TOKEN (STR_IFCONFIG_PERMENT_STATUS),
|
STRING_TOKEN (STR_IFCONFIG_PERMANENT_STATUS),
|
||||||
gShellNetwork1HiiHandle,
|
gShellNetwork1HiiHandle,
|
||||||
(NicInfo->ConfigInfo->Perment? L"TRUE":L"FALSE")
|
(NicInfo->ConfigInfo->Permanent? L"TRUE":L"FALSE")
|
||||||
);
|
);
|
||||||
|
|
||||||
Ip4Config = &NicInfo->ConfigInfo->Ip4Info;
|
Ip4Config = &NicInfo->ConfigInfo->Ip4Info;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user