/* This function removes all the Wrap datas in the RcvdDgramQue. */
VOID Udp4FlushRcvdDgram(IN UDP4_INSTANCE_DATA *Instance)
/* This function removes all the Wrap datas in the RcvdDgramQue. */
VOID Udp4FlushRcvdDgram(IN UDP4_INSTANCE_DATA *Instance)
{
  UDP4_RXDATA_WRAP  *Wrap;
  while (!IsListEmpty (&Instance->RcvdDgramQue)) {
    Wrap = NET_LIST_HEAD (&Instance->RcvdDgramQue, UDP4_RXDATA_WRAP, Link);
    Udp4RecycleRxDataWrap (NULL, (VOID *)Wrap);
  }
}