/* Converts a text format to the network protocol ID. */
UINTN NetworkProtocolFromText(CHAR16 *Text)
/* Converts a text format to the network protocol ID. */
UINTN NetworkProtocolFromText(CHAR16 *Text)
{
  if (StrCmp (Text, L"UDP") == 0) {
    return RFC_1700_UDP_PROTOCOL;
  }
  if (StrCmp (Text, L"TCP") == 0) {
    return RFC_1700_TCP_PROTOCOL;
  }
  return Strtoi (Text);
}