23 unsigned int seqNumber,
24 unsigned int hopCount,
96 precursorsList =
calloc(1,
sizeof* precursorsList);
99 for(loop=0;loop<precursorsList->
count;loop++)
104 if(!precursorsList->
count)
109 precursorsList->
count++;
172 if(!
IP_COMPARE(table->DestinationIPAddress,dest))
177 IP_FREE(table->DestinationIPAddress);
#define AODV_ACTIVE_ROUTE_TIMEOUT
@ AODVsubevent_ACTIVE_ROUTE_TIMEOUT
@ AODV_RoutingFlag_InValid
#define ROUTETABLE_ALLOC()
#define AODV_DEV_VAR(devId)
NETSIM_IPAddress IP_COPY(NETSIM_IPAddress ip)
struct stru_ip * NETSIM_IPAddress
void IP_FREE(NETSIM_IPAddress ip)
#define IP_COMPARE(ip1, ip2)
#define LIST_ADD_LAST(ls, mem)
#define LIST_FREE(ls, mem)
int fn_NetSim_AODV_UpdateRouteTable(NETSIM_IPAddress ip, double lifetime, NetSim_EVENTDETAILS *pstruEventDetails)
AODV_ROUTETABLE * fnFindRouteTable(AODV_ROUTETABLE *table, NETSIM_IPAddress dest)
NETSIM_IPAddress fn_NetSim_AODV_FindNextHop(AODV_DEVICE_VAR *devVar, NETSIM_IPAddress dest, NetSim_EVENTDETAILS *pstruEventDetails)
int fn_NetSim_AODV_InsertInPrecursorsList(NETSIM_IPAddress ip, NetSim_EVENTDETAILS *pstruEventDetails)
int fn_NetSim_AODV_InsertInRouteTable(NETSIM_IPAddress ip, unsigned int seqNumber, unsigned int hopCount, NETSIM_IPAddress nextHop, double lifeTime, NetSim_EVENTDETAILS *pstruEventDetails)
int fn_NetSim_AODV_ActiveRouteTimeout(NetSim_EVENTDETAILS *pstruEventDetails)
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
#define fnpAddEvent(pstruEvent)
AODV_PRECURSORS_LIST * precursorsList
AODV_ROUTETABLE * routeTable
bool ValidDestinationSequenceNumberflag
NETSIM_ID NetworkInterface
AODV_RoutingFlag routingFlags
NETSIM_IPAddress DestinationIPAddress
unsigned int DestinationSequenceNumber
AODV_PRECURSORS_LIST * ListofPrecursors
struct stru_NetSim_Packet * pPacket
netsimDEVICE_TYPE nDeviceType
unsigned long long int nPrevEventId