14#ifndef _CRT_SECURE_NO_DEPRECATE
15#define _CRT_SECURE_NO_DEPRECATE
27int fn_NetSim_RIP_Garbage_Collection_Timer(
struct stru_NetSim_Network *pstruNETWORK,NetSim_EVENTDETAILS *pstruEventDetails)
29 RIP_ROUTING_DATABASE *pstruTmpHeadEntry;
30 RIP_ROUTING_DATABASE *pstruTempTableList;
31 RIP_ROUTING_DATABASE *pstruNewTable;
34 pstruTmpHeadEntry=NETWORK->ppstruDeviceList[pstruEventDetails->nDeviceId-1]->pstruNetworkLayer->RoutingVar;
35 pstruTempTableList=pstruTmpHeadEntry;
37 while(pstruTempTableList)
40 if(pstruTempTableList->
nMetric==EXPIRED_ROUTE)
42 pstruNewTable = pstruTempTableList;
43 pstruTempTableList=pstruTempTableList->pstru_Router_NextEntry;
44 pstruNewTable->pstru_Router_NextEntry = NULL;
46 if(NETWORK->ppstruDeviceList[pstruEventDetails->nDeviceId-1]->pstruNetworkLayer->RoutingVar == pstruNewTable)
47 NETWORK->ppstruDeviceList[pstruEventDetails->nDeviceId-1]->pstruNetworkLayer->RoutingVar = pstruTempTableList;
55 fnpFreeMemory(pstruNewTable);
58 pstruTempTableList=pstruTempTableList->pstru_Router_NextEntry;
unsigned int nMetric
Distance to the destination.
NETSIM_IPAddress szRouter
The first router along the route to the destination.
NETSIM_IPAddress szAddress
IP address of the destination host or destination network.