/* Parse dad in string format from Args with the "-s" option and convert it to UINT32 format. */
EFI_STATUS IfConfig6ParseDadXmits(IN OUT ARG_LIST **Arg, OUT UINT32 *Xmits)
/* Parse dad in string format from Args with the "-s" option and convert it to UINT32 format. */
EFI_STATUS IfConfig6ParseDadXmits(IN OUT ARG_LIST **Arg, OUT UINT32 *Xmits)
{
  CHAR16  *ValStr;
  if (*Arg == NULL) {
    return EFI_INVALID_PARAMETER;
  }
  ValStr = (*Arg)->Arg;
  *Xmits = 0;
  while (*ValStr != L'\0') {
    if ((*ValStr <= L'9') && (*ValStr >= L'0')) {
      *Xmits = (*Xmits * 10) + (*ValStr - L'0');
    } else {
      return EFI_INVALID_PARAMETER;
    }
    ValStr++;
  }
  *Arg = (*Arg)->Next;
  return EFI_SUCCESS;
}