175 OUT EFI_IPv4_ADDRESS **PtrIpList,
187 EndIndex = BeginIndex;
203 while (*(Str + Index) != L
'\0') {
204 if (*(Str + Index) == L
' ') {
223 *PtrIpList = AllocateZeroPool (*IpCount *
sizeof (EFI_IPv4_ADDRESS));
224 if (*PtrIpList == NULL) {
225 return EFI_OUT_OF_RESOURCES;
232 while (*(Str + Index) != L
'\0') {
233 if (*(Str + Index) == L
' ') {
235 StrTemp = AllocateZeroPool ((EndIndex - BeginIndex + 1) *
sizeof (CHAR16));
236 if (StrTemp == NULL) {
237 FreePool (*PtrIpList);
240 return EFI_OUT_OF_RESOURCES;
243 CopyMem (StrTemp, Str + BeginIndex, (EndIndex - BeginIndex) *
sizeof (CHAR16));
244 *(StrTemp + (EndIndex - BeginIndex)) = L
'\0';
248 FreePool (*PtrIpList);
251 return EFI_INVALID_PARAMETER;
254 BeginIndex = EndIndex;
270 if (*(Str + Index) == L
'\0') {
272 StrTemp = AllocateZeroPool ((EndIndex - BeginIndex + 1) *
sizeof (CHAR16));
273 if (StrTemp == NULL) {
274 FreePool (*PtrIpList);
277 return EFI_OUT_OF_RESOURCES;
280 CopyMem (StrTemp, Str + BeginIndex, (EndIndex - BeginIndex) *
sizeof (CHAR16));
281 *(StrTemp + (EndIndex - BeginIndex)) = L
'\0';
285 FreePool (*PtrIpList);
288 return EFI_INVALID_PARAMETER;