/* Initialize a MTFTP protocol instance which is the child of MtftpSb. */
VOID Mtftp4InitProtocol(IN MTFTP4_SERVICE *MtftpSb, OUT MTFTP4_PROTOCOL *Instance)
/* Initialize a MTFTP protocol instance which is the child of MtftpSb. */
VOID Mtftp4InitProtocol(IN MTFTP4_SERVICE *MtftpSb, OUT MTFTP4_PROTOCOL *Instance)
{
  ZeroMem (Instance, sizeof (MTFTP4_PROTOCOL));
  Instance->Signature = MTFTP4_PROTOCOL_SIGNATURE;
  InitializeListHead (&Instance->Link);
  CopyMem (&Instance->Mtftp4, &gMtftp4ProtocolTemplate, sizeof (Instance->Mtftp4));
  Instance->State   = MTFTP4_STATE_UNCONFIGED;
  Instance->Service = MtftpSb;
  InitializeListHead (&Instance->Blocks);
}