28 int nLoop1=0,nLink_Id=0;
38 RIP_ENTRY *pstruRIPNewEntry,*pstruRIPCurrentEntry;
42 for(nLoop=0;nLoop<nInterfaceCount;nLoop++)
61 while(pstrudatabase!=NULL)
107 sprintf(str,
"Unable to get the connected device IP address for Router %d Interface %d",nDeviceid,nInterfaceId);
NETSIM_IPAddress IP_COPY(NETSIM_IPAddress ip)
#define fnNetSimError(x,...)
void add_dest_to_packet(NetSim_PACKET *packet, NETSIM_ID dest)
#define RIP_PACKET_SIZE_WITH_HEADER
DEVICE_ROUTER * get_RIP_var(NETSIM_ID d)
NETSIM_ID fn_NetSim_Stack_GetConnectedDevice(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NETSIM_ID *nConnectedDevId, NETSIM_ID *nConnectedInterfaceId)
void fn_NetSim_Socket_PassPacketToInterface(NETSIM_ID deviceId, NetSim_PACKET *packet, ptrSOCKETINTERFACE socketInterface)
EXPORTED struct stru_NetSim_Network * NETWORK
NETSIM_IPAddress fn_NetSim_Stack_GetIPAddressAsId(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
bool fn_NetSim_Socket_GetBufferStatus(ptrSOCKETINTERFACE s)
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
int fn_NetSim_RIP_Update_Timer(struct stru_NetSim_Network *pstruNETWORK, NetSim_EVENTDETAILS *pstruEventDetails)
#define fn_NetSim_Packet_CreatePacket(layer)
#define fnpAddEvent(pstruEvent)
struct stru_NetSim_TransportLayer * pstruTransportLayer
struct stru_NetSim_Interface ** ppstruInterfaceList
NETSIM_ID nNumOfInterface
struct stru_NetSim_Packet * pPacket
INTERFACE_TYPE nInterfaceType
NETSIM_IPAddress szAddress
struct stru_NetSim_Device ** ppstruDeviceList
void * Packet_AppProtocol
APPLICATION_LAYER_PROTOCOL nApplicationProtocol
NETWORK_LAYER_PROTOCOL nNetworkProtocol
NETSIM_IPAddress szDestIP
NETSIM_IPAddress szSourceIP
TRANSPORT_LAYER_PROTOCOL nTransportProtocol
unsigned short int nSourcePort
unsigned short int nDestinationPort
struct stru_NetSim_Packet_AppLayer * pstruAppData
struct stru_NetSim_Packet_NetworkLayer * pstruNetworkData
unsigned int nControlDataType
struct stru_NetSim_Packet_TransportLayer * pstruTransportData
unsigned int nVersion
The version field is used to specify the RIP version (version 1 or 2)
struct stru_RIPEntry * pstruRIPEntry
ROUTING_TABLES * pstruRoutingTables
APPLICATION_LAYER_PROTOCOL * RoutingProtocol
union stru_NetSim_Router::uni_Interior_Routing uniInteriorRouting
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_Update_timer
These variable values are get from configuration.xml,in RFC the update timer is mentioned as 30-secon...
unsigned int n_RIP_Version
RIP_ROUTING_DATABASE * pstruRIP_RoutingTable
Routing database structure Reference : RFC 2453, November 1998, Page 8.
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