NetSim Source Code Help
Loading...
Searching...
No Matches
Routing.h File Reference
#include "RIP.h"
Include dependency graph for Routing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stru_NetSim_Router
 
union  stru_NetSim_Router::uni_Interior_Routing
 
struct  stru_Router_Buffer
 
struct  stru_ROUTINGTABLES
 

Typedefs

typedef struct stru_ROUTINGTABLES ROUTING_TABLES
 

Functions

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 ()
 
APPLICATION_LAYER_PROTOCOL fnCheckRoutingProtocol (NETSIM_ID deviceId)
 

Variables

int(* fnRouter [10])()
 

Typedef Documentation

◆ ROUTING_TABLES

Definition at line 20 of file Routing.h.

Function Documentation

◆ fn_NetSim_UpdateEntryinRoutingTable()

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 
)

This function is used to update the entries in routing table

Definition at line 30 of file Routing.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fnCheckRoutingPacket()

int fnCheckRoutingPacket ( )

Definition at line 77 of file Routing.c.

Here is the caller graph for this function:

◆ fnCheckRoutingProtocol()

APPLICATION_LAYER_PROTOCOL fnCheckRoutingProtocol ( NETSIM_ID  deviceId)

Definition at line 84 of file Routing.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateInterfaceList()

int UpdateInterfaceList ( )

This function is used to update the protocol status in the interface

Definition at line 45 of file Routing.c.

Here is the call graph for this function:

Variable Documentation

◆ fnRouter

int(* fnRouter[10])() ( )

Definition at line 21 of file Routing.h.