/* Convert the decimal-constant string or hex-constant string into a numerical value. */
UINTN IScsiNetNtoi(IN CHAR8 *Str)
/* Convert the decimal-constant string or hex-constant string into a numerical value. */
UINTN IScsiNetNtoi(IN CHAR8 *Str)
{
  if ((Str[0] == '0') && ((Str[1] == 'x') || (Str[1] == 'X'))) {
    Str += 2;
    return AsciiStrHexToUintn (Str);
  }
  return AsciiStrDecimalToUintn (Str);
}