/* Allocate a route entry then initialize it with the Dest/Netmask and Gateway. */
IP4_ROUTE_ENTRY* Ip4CreateRouteEntry(IN IP4_ADDR Dest, IN IP4_ADDR Netmask, IN IP4_ADDR GateWay)
/* Allocate a route entry then initialize it with the Dest/Netmask and Gateway. */
IP4_ROUTE_ENTRY* Ip4CreateRouteEntry(IN IP4_ADDR Dest, IN IP4_ADDR Netmask, IN IP4_ADDR GateWay)
{
  IP4_ROUTE_ENTRY  *RtEntry;
  RtEntry = AllocatePool (sizeof (IP4_ROUTE_ENTRY));
  if (RtEntry == NULL) {
    return NULL;
  }
  InitializeListHead (&RtEntry->Link);
  RtEntry->RefCnt  = 1;
  RtEntry->Dest    = Dest;
  RtEntry->Netmask = Netmask;
  RtEntry->NextHop = GateWay;
  RtEntry->Flag    = 0;
  return RtEntry;
}