goto REMOVE_VARIABLE;\r
}\r
\r
- Variable = NetAllocatePool (Size);\r
+ Variable = AllocatePool (Size);\r
\r
if (Variable == NULL) {\r
return NULL;\r
\r
ON_ERROR:\r
if (Variable != NULL) {\r
- NetFreePool (Variable);\r
+ gBS->FreePool (Variable);\r
}\r
\r
return NULL;\r
//\r
// Copy the data to Temp to avoid the alignment problems\r
//\r
- NetCopyMem (&Temp, Cur, sizeof (NIC_IP4_CONFIG_INFO));\r
+ CopyMem (&Temp, Cur, sizeof (NIC_IP4_CONFIG_INFO));\r
Len = SIZEOF_NIC_IP4_CONFIG_INFO (&Temp);\r
\r
//\r
// a block of memory then copy it out.\r
//\r
if (NIC_ADDR_EQUAL (&Temp.NicAddr, NicAddr)) {\r
- Config = NetAllocatePool (Len);\r
+ Config = AllocatePool (Len);\r
\r
if (Config == NULL) {\r
return NULL;\r
}\r
\r
- NetCopyMem (Config, Cur, Len);\r
+ CopyMem (Config, Cur, Len);\r
return Config;\r
}\r
\r
\r
if (Old != NULL) {\r
TotalLen -= SIZEOF_NIC_IP4_CONFIG_INFO (Old);\r
- NetFreePool (Old);\r
+ gBS->FreePool (Old);\r
}\r
\r
if (Config != NULL) {\r
\r
ASSERT (TotalLen >= sizeof (IP4_CONFIG_VARIABLE));\r
\r
- NewVar = NetAllocateZeroPool (TotalLen);\r
+ NewVar = AllocateZeroPool (TotalLen);\r
\r
if (NewVar == NULL) {\r
return NULL;\r
Next = (UINT8 *)&NewVar->ConfigInfo;\r
\r
for (Index = 0; Index < Count; Index++) {\r
- NetCopyMem (&Temp, Cur, sizeof (NIC_IP4_CONFIG_INFO));\r
+ CopyMem (&Temp, Cur, sizeof (NIC_IP4_CONFIG_INFO));\r
Len = SIZEOF_NIC_IP4_CONFIG_INFO (&Temp);\r
\r
if (!NIC_ADDR_EQUAL (&Temp.NicAddr, NicAddr)) {\r
- NetCopyMem (Next, Cur, Len);\r
+ CopyMem (Next, Cur, Len);\r
Next += Len;\r
NewVar->Count++;\r
}\r
if (Config != NULL) {\r
Len = SIZEOF_NIC_IP4_CONFIG_INFO (Config);\r
\r
- NetCopyMem (Next, Config, Len);\r
+ CopyMem (Next, Config, Len);\r
NewVar->Count++;\r
}\r
\r