/* Get the Nic handle using any child handle in the IPv6 stack. */
EFI_HANDLE PxeBcGetNicByIp6Children(IN EFI_HANDLE ControllerHandle)
/* Get the Nic handle using any child handle in the IPv6 stack. */
EFI_HANDLE PxeBcGetNicByIp6Children(IN EFI_HANDLE ControllerHandle)
{
  EFI_HANDLE  NicHandle;
  NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiIp6ProtocolGuid);
  if (NicHandle == NULL) {
    NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiUdp6ProtocolGuid);
    if (NicHandle == NULL) {
      NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiDhcp6ProtocolGuid);
      if (NicHandle == NULL) {
        NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiMtftp6ProtocolGuid);
        if (NicHandle == NULL) {
          return NULL;
        }
      }
    }
  }
  return NicHandle;
}