summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/Ip4ConfigDxe
diff options
context:
space:
mode:
authorhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2011-04-28 02:45:19 +0000
committerhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2011-04-28 02:45:19 +0000
commitafbccd0a546ff235c5a49d1995d2df3f6f250d8c (patch)
treee7c4e612af36d0790e8bbbe29e0b1e6e0b0fca7f /MdeModulePkg/Universal/Network/Ip4ConfigDxe
parent3c73ec6c1bed7364580101984c74b8edb4772693 (diff)
1. Fixed a bug to make sure IP,Mask,Gateway survives across rest in case "ifconfig -s eth0 dhcp permenant".
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11603 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Ip4ConfigDxe')
-rw-r--r--MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c
index 9ed9ae82a..f8aa51c8c 100644
--- a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c
+++ b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c
@@ -308,19 +308,7 @@ Ip4ConfigDriverBindingStart (
//
NicConfig = Ip4ConfigReadVariable (Instance);
if (NicConfig != NULL) {
- if (NicConfig->Perment) {
- if (NicConfig->Source == IP4_CONFIG_SOURCE_STATIC) {
- //
- // Don't modify the permanent static configuration.
- //
- } else if (NicConfig->Source == IP4_CONFIG_SOURCE_DHCP) {
- //
- // Remove the previous acquired DHCP parameters.
- //
- ZeroMem (&NicConfig->Ip4Info, sizeof (EFI_IP4_IPCONFIG_DATA));
- Ip4ConfigWriteVariable (Instance, NicConfig);
- }
- } else {
+ if (!NicConfig->Perment) {
//
// Delete the non-permanent configuration.
//