/* The timer ticking function in TPL_NOTIFY level for the Mtftp service instance. */
VOID EFIAPI Mtftp4OnTimerTickNotifyLevel(IN EFI_EVENT Event, IN VOID *Context)
/* The timer ticking function in TPL_NOTIFY level for the Mtftp service instance. */
VOID EFIAPI Mtftp4OnTimerTickNotifyLevel(IN EFI_EVENT Event, IN VOID *Context)
{
  MTFTP4_SERVICE   *MtftpSb;
  LIST_ENTRY       *Entry;
  LIST_ENTRY       *Next;
  MTFTP4_PROTOCOL  *Instance;
  MtftpSb = (MTFTP4_SERVICE *)Context;
  NET_LIST_FOR_EACH_SAFE (Entry, Next, &MtftpSb->Children) {
    Instance = NET_LIST_USER_STRUCT (Entry, MTFTP4_PROTOCOL, Link);
    if ((Instance->PacketToLive == 0) || (--Instance->PacketToLive > 0)) {
      Instance->HasTimeout = FALSE;
    } else {
      Instance->HasTimeout = TRUE;
    }
  }
}