NetSim Source Code Help
Loading...
Searching...
No Matches
RouteMaint.c
Go to the documentation of this file.
1/************************************************************************************
2 * Copyright (C) 2020 *
3 * TETCOS, Bangalore. India *
4 * *
5 * Tetcos owns the intellectual property rights in the Product and its content. *
6 * The copying, redistribution, reselling or publication of any or all of the *
7 * Product or its content without express prior written consent of Tetcos is *
8 * prohibited. Ownership and / or any other right relating to the software and all *
9 * intellectual property rights therein shall remain at all times with Tetcos. *
10 * *
11 * Author: Shashi Kant Suman *
12 * *
13 * ---------------------------------------------------------------------------------*/
14#include "main.h"
15#include "AODV.h"
16#include "List.h"
17/**
18This function generates a route error.
19*/
21{
24 if(var->nRerrCount>10)
25 {
28 var->nRerrCount=1;
29 }
30 var->nRerrCount++;
31 return 1;
32}
void set_aodv_curr()
#define AODV_GENERATE_RERR(DevId, UnreachableIP)
Definition: AODV.h:409
#define AODV_DEV_VAR(devId)
Definition: AODV.h:413
#define _declspec(dllexport)
This function is used to trigger the update.
Definition: Linux.h:41
int fn_NetSim_AODV_PacketDropNotification(NetSim_PACKET *packet)
Definition: RouteMaint.c:20
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
Definition: Stack.h:837
unsigned int nRerrCount
Definition: AODV.h:386
NETSIM_ID nDeviceId
Definition: Stack.h:750
NETSIM_IPAddress szNextHopIp
Definition: Packet.h:201
struct stru_NetSim_Packet_NetworkLayer * pstruNetworkData
Definition: Packet.h:275