/* This function checks the input Handle to see if it's one of these handles in ChildHandleBuffer. */
BOOLEAN EFIAPI NetIsInHandleBuffer(IN EFI_HANDLE Handle, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer OPTIONAL)
/* This function checks the input Handle to see if it's one of these handles in ChildHandleBuffer. */
BOOLEAN EFIAPI NetIsInHandleBuffer(IN EFI_HANDLE Handle, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer OPTIONAL)
{
  UINTN  Index;
  if ((NumberOfChildren == 0) || (ChildHandleBuffer == NULL)) {
    return FALSE;
  }
  for (Index = 0; Index < NumberOfChildren; Index++) {
    if (Handle == ChildHandleBuffer[Index]) {
      return TRUE;
    }
  }
  return FALSE;
}