/* Create an empty route table, includes its internal route cache */
IP4_ROUTE_TABLE* Ip4CreateRouteTable(VOID)
/* Create an empty route table, includes its internal route cache */
IP4_ROUTE_TABLE* Ip4CreateRouteTable(VOID)
{
  IP4_ROUTE_TABLE  *RtTable;
  UINT32           Index;
  RtTable = AllocatePool (sizeof (IP4_ROUTE_TABLE));
  if (RtTable == NULL) {
    return NULL;
  }
  RtTable->RefCnt   = 1;
  RtTable->TotalNum = 0;
  for (Index = 0; Index <= IP4_MASK_MAX; Index++) {
    InitializeListHead (&(RtTable->RouteArea[Index]));
  }
  RtTable->Next = NULL;
  Ip4InitRouteCache (&RtTable->Cache);
  return RtTable;
}