/** @file\r
The driver binding and service binding protocol for DnsDxe driver.\r
\r
-Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
// Create the timer used to time out the procedure which is used to\r
// get the default IP address.\r
//\r
- if (DnsSb->IpVersion == IP_VERSION_4) {\r
- Status = gBS->CreateEvent (\r
- EVT_TIMER,\r
- TPL_CALLBACK,\r
- NULL,\r
- NULL,\r
- &DnsSb->TimerToGetMap\r
- );\r
- if (EFI_ERROR (Status)) {\r
- FreePool (DnsSb);\r
- return Status;\r
- }\r
+ Status = gBS->CreateEvent (\r
+ EVT_TIMER,\r
+ TPL_CALLBACK,\r
+ NULL,\r
+ NULL,\r
+ &DnsSb->TimerToGetMap\r
+ );\r
+ if (EFI_ERROR (Status)) {\r
+ FreePool (DnsSb);\r
+ return Status;\r
}\r
\r
//\r
/** @file\r
DnsDxe support functions implementation.\r
\r
-Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
FreePool (Ip6Mode.IcmpTypeList);\r
}\r
\r
- if (Ip6Mode.IsConfigured) {\r
+ if (!Ip6Mode.IsStarted || Ip6Mode.IsConfigured) {\r
Udp->Configure (Udp, NULL);\r
- return (BOOLEAN) (Udp->Configure (Udp, UdpCfgData) == EFI_SUCCESS);\r
+ if (Udp->Configure (Udp, UdpCfgData) == EFI_SUCCESS) {\r
+ return TRUE;\r
+ }\r
}\r
}\r
}\r
//\r
// Config UDP\r
//\r
+ gBS->RestoreTPL (OldTpl);\r
Status = Dns6ConfigUdp (Instance, Instance->UdpIo);\r
+ OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
if (EFI_ERROR (Status)) {\r
if (Instance->Dns6CfgData.DnsServerList != NULL) {\r
FreePool (Instance->Dns6CfgData.DnsServerList);\r