28#define RIP_PACKET_SIZE_WITH_HEADER 512
31#define EXPIRED_ROUTE 16
175 _declspec(dllexport)
int fn_NetSim_RIP_Configure_F(
void** var);
#define _declspec(dllexport)
This function is used to trigger the update.
int fn_NetSim_RIP_CopyPacket(NetSim_PACKET *pstruDestPacket, NetSim_PACKET *pstruSrcPacket)
int fn_NetSim_RIP_Init(struct stru_NetSim_Network *NETWORK_Formal, NetSim_EVENTDETAILS *pstruEventDetails_Formal, char *pszAppPath_Formal, char *pszWritePath_Formal, int nVersion_Type, void **fnPointer)
int fn_NetSim_RIP_Finish()
char * fn_NetSim_RIP_Trace(int nSubEvent)
int fn_NetSim_RIP_TriggeredUpdate(struct stru_NetSim_Network *pstruNETWORK, NetSim_EVENTDETAILS *pstruEventDetails)
int fn_NetSim_RIP_Metrics(PMETRICSWRITER metricsWriter)
int fn_NetSim_RIP_FreePacket(NetSim_PACKET *pstruPacket)
enum_RIP_command
This enumeration is to denote the command field in RIP packet.
NetSim_PACKET *int fn_NetSim_RIP_CopyPacket_F(NetSim_PACKET *, NetSim_PACKET *)
NetSim_EVENTDETAILS NetSim_EVENTDETAILS *int fn_NetSim_RIP_Run_F()
int fn_NetSim_RIP_DistanceVectorAlgorithm(struct stru_NetSim_Network *NETWORK, NetSim_EVENTDETAILS *pstruEventDetails)
int fn_NetSim_RIP_Finish_F()
void set_RIP_var(NETSIM_ID d, DEVICE_ROUTER *rip)
int fn_NetSim_RIP_InitialTable_Creation(NETSIM_ID nDeviceId)
This function is for forming the initial table for each router
enum enum_RIP_Subevent_Type SUB_EVENT
int fn_NetSim_RIP_Timeout_Timer(struct stru_NetSim_Network *pstruNETWORK, NetSim_EVENTDETAILS *pstruEventDetails)
int fn_NetSim_RIP_Garbage_Collection_Timer(struct stru_NetSim_Network *pstruNETWORK, NetSim_EVENTDETAILS *pstruEventDetails)
NetSim_EVENTDETAILS * pstruEventDetails_Formal
enum_RIP_ControlPacketType
struct stru_RIP_TempRouting_database RIP_TEMPROUTING_DATABASE
int fn_NetSim_RIP_Update_Timer(struct stru_NetSim_Network *pstruNETWORK, NetSim_EVENTDETAILS *pstruEventDetails)
int fn_NetSim_RIP_Init_F(struct stru_NetSim_Network *, NetSim_EVENTDETAILS *, char *, char *, int, void **fnPointer)
enum enum_RIP_command RIP_COMMAND
NetSim_EVENTDETAILS char * pszAppPath_Formal
int fn_NetSim_RIP_Metrics_F(PMETRICSWRITER metricsWriter)
int fn_NetSim_RIP_UpdatingEntriesinRoutingDatabase(struct stru_NetSim_Network *, int, NETSIM_IPAddress, NETSIM_IPAddress, NETSIM_IPAddress, NETSIM_ID, double, unsigned int)
This function is used to update the database of router.
NetSim_EVENTDETAILS char char int nVersion_Type
char * fn_NetSim_RIP_Trace_F(int nSubEvent)
bool isRIPConfigured(NETSIM_ID d)
int fn_NetSim_RIPTrace(struct stru_NetSim_Network *, NETSIM_ID, int)
NetSim_EVENTDETAILS char char * pszWritePath_Formal
DEVICE_ROUTER * get_RIP_var(NETSIM_ID d)
int fn_NetSim_RIP_FreePacket_F(NetSim_PACKET *)
NetSim_EVENTDETAILS char char int void ** fnPointer
int fn_NetSim_RIP_ReceivingOf_RIP_Message(struct stru_NetSim_Network *pstruNETWORK, NetSim_EVENTDETAILS *pstruEventDetails)
EXPORTED struct stru_NetSim_Network * NETWORK
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
unsigned int nVersion
The version field is used to specify the RIP version (version 1 or 2)
struct stru_RIPEntry * pstruRIPEntry
unsigned int nMetric
Cost to reach the destination.
unsigned int nAddress_family_identifier
This is used to identify the Address family of the IP address.
NETSIM_IPAddress szSubnet_Mask
Destination Subnet Mask
NETSIM_IPAddress szIPv4_address
Destination IPv4 address
NETSIM_IPAddress szNext_Hop
struct stru_RIPEntry * pstru_RIP_NextEntry
int n_garbage_collection_timer
char * pszFilePath
Stores File path
unsigned short int nStatus
int n_Update_timer
These variable values are get from configuration.xml,in RFC the update timer is mentioned as 30-secon...
unsigned int nRIP_Update
Used to check the updates in the router
int nDataDropped
Used to store the dropped packets
char * pszFileName
Stores File Name
unsigned int n_RIP_Version
Routing database structure Reference : RFC 2453, November 1998, Page 8.
NETSIM_ID nInterface
The physical network which must be used to reach the first router
double dTimer
The amount of time since the entry was last updated.
unsigned int nMetric
Distance to the destination
NETSIM_IPAddress szRouter
The first router along the route to the destination
struct stru_Router_RIP_Routing_database * pstru_Router_NextEntry
NETSIM_IPAddress szAddress
IP address of the destination host or destination network
NETSIM_IPAddress szSubnetmask
Subnet mask for the destination network