/* Display the VLAN configuration of all, or a specified network interface. */
VOID DisplayVlan(IN CHAR16 *Name OPTIONAL)
/* Display the VLAN configuration of all, or a specified network interface. */
VOID DisplayVlan(IN CHAR16 *Name OPTIONAL)
{
  UINTN       NumberOfHandles;
  EFI_HANDLE  *HandleBuffer;
  UINTN       Index;
  EFI_HANDLE  NicHandle;
  if (Name != NULL) {
    NicHandle = NicNameToHandle (Name);
    if (NicHandle == NULL) {
      return;
    }
    ShowNicVlanInfo (NicHandle, 0);
    return;
  }
  LocateNicHandleBuffer (&NumberOfHandles, &HandleBuffer);
  if (NumberOfHandles == 0) {
    return;
  }
  for (Index = 0; Index < NumberOfHandles; Index++) {
    ShowNicVlanInfo (HandleBuffer[Index], Index);
  }
  FreePool (HandleBuffer);
}