/* Clean up the assemble table: remove all the fragments and assemble entries. */
VOID Ip4CleanAssembleTable(IN IP4_ASSEMBLE_TABLE *Table)
/* Clean up the assemble table: remove all the fragments and assemble entries. */
VOID Ip4CleanAssembleTable(IN IP4_ASSEMBLE_TABLE *Table)
{
  LIST_ENTRY          *Entry;
  LIST_ENTRY          *Next;
  IP4_ASSEMBLE_ENTRY  *Assemble;
  UINT32              Index;
  for (Index = 0; Index < IP4_ASSEMLE_HASH_SIZE; Index++) {
    NET_LIST_FOR_EACH_SAFE (Entry, Next, &Table->Bucket[Index]) {
      Assemble = NET_LIST_USER_STRUCT (Entry, IP4_ASSEMBLE_ENTRY, Link);
      RemoveEntryList (Entry);
      Ip4FreeAssembleEntry (Assemble);
    }
  }
}