30_declspec(dllexport)
int fn_NetSim_UpdateEntryinRoutingTable(
struct stru_NetSim_Network *
NETWORK,
NetSim_EVENTDETAILS *
pstruEventDetails,
NETSIM_ID nDeviceId,
NETSIM_ID nInterfaceId,
unsigned int bgpRemoteAS,
NETSIM_IPAddress szDestinationIP,
NETSIM_IPAddress szNexthop,
NETSIM_IPAddress szSubnetmask,
unsigned int prefix_len,
int nCost,
int nFlag)
49 NETSIM_ID nDeviceCount,nInterfaceCount,nConnectedDevId,nConnectedInterId;
51 for(i=0;i<nDeviceCount;i++)
64 for(j=0;j<nInterfaceCount;j++)
#define _declspec(dllexport)
This function is used to trigger the update.
int fn_NetSim_RIP_TriggeredUpdate(struct stru_NetSim_Network *pstruNETWORK, NetSim_EVENTDETAILS *pstruEventDetails)
int fn_NetSim_RIP_Run_F()
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.
DEVICE_ROUTER * get_RIP_var(NETSIM_ID d)
int fn_NetSim_Routing_Run()
APPLICATION_LAYER_PROTOCOL fnCheckRoutingProtocol(NETSIM_ID deviceId)
int fn_NetSim_UpdateEntryinRoutingTable(struct stru_NetSim_Network *NETWORK, NetSim_EVENTDETAILS *pstruEventDetails, NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, unsigned int bgpRemoteAS, NETSIM_IPAddress szDestinationIP, NETSIM_IPAddress szNexthop, NETSIM_IPAddress szSubnetmask, unsigned int prefix_len, int nCost, int nFlag)
int UpdateInterfaceList()
int fnCheckRoutingPacket()
NETSIM_ID fn_NetSim_Stack_GetConnectedDevice(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NETSIM_ID *nConnectedDevId, NETSIM_ID *nConnectedInterfaceId)
EXPORTED struct stru_NetSim_Network * NETWORK
bool fn_NetSim_Stack_isProtocolConfigured(NETSIM_ID d, LAYER_TYPE layer, UINT protocol)
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
enum enum_AppProtocol APPLICATION_LAYER_PROTOCOL
struct stru_NetSim_Interface ** ppstruInterfaceList
NETSIM_ID nNumOfInterface
struct stru_NetSim_ApplicationLayer * pstruApplicationLayer
struct stru_NetSim_Packet * pPacket
INTERFACE_TYPE nInterfaceType
struct stru_NetSim_Device ** ppstruDeviceList
unsigned int nControlDataType
APPLICATION_LAYER_PROTOCOL AppIntRoutingProtocol
APPLICATION_LAYER_PROTOCOL * RoutingProtocol