/* Convert one Null-terminated ASCII string (decimal dotted) to EFI_IPv4_ADDRESS. */
EFI_STATUS EFIAPI NetLibAsciiStrToIp4(IN CONST CHAR8 *String, OUT EFI_IPv4_ADDRESS *Ip4Address)
/* Convert one Null-terminated ASCII string (decimal dotted) to EFI_IPv4_ADDRESS. */
EFI_STATUS EFIAPI NetLibAsciiStrToIp4(IN CONST CHAR8 *String, OUT EFI_IPv4_ADDRESS *Ip4Address)
{
  RETURN_STATUS  Status;
  CHAR8          *EndPointer;
  Status = AsciiStrToIpv4Address (String, &EndPointer, Ip4Address, NULL);
  if (RETURN_ERROR (Status) || (*EndPointer != '\0')) {
    return EFI_INVALID_PARAMETER;
  } else {
    return EFI_SUCCESS;
  }
}