NetSim Source Code Help
Loading...
Searching...
No Matches
OSPF_RoutingTable.c File Reference
#include "main.h"
#include "NetSim_utility.h"
#include "../IP/IP.h"
#include "OSPF.h"
#include "OSPF_enum.h"
#include "OSPF_Msg.h"
#include "OSPF_Neighbor.h"
#include "OSPF_Interface.h"
#include "OSPF_RoutingTable.h"
#include "OSPF_List.h"
Include dependency graph for OSPF_RoutingTable.c:

Go to the source code of this file.

Functions

static bool ospf_rtTable_compareDestType (OSPFDESTTYPE destType1, OSPFDESTTYPE destType2)
 
static ptrOSPFROUTINGTABLEROW ospf_rtTable_getIntraAreaRoute (ptrOSPF_PDS ospf, NETSIM_IPAddress destAddr, OSPFDESTTYPE destType, OSPFID areaId)
 
static ptrOSPFROUTINGTABLEROW ospf_rtTable_getRoute (ptrOSPF_PDS ospf, NETSIM_IPAddress destAddr, OSPFDESTTYPE destType)
 
static bool ospf_rtTable_isRouteMatch (ptrOSPFROUTINGTABLEROW newRoute, ptrOSPFROUTINGTABLEROW oldRoute)
 
static void ospf_rtTable_addRowToTable (ptrOSPF_PDS ospf, ptrOSPFROUTINGTABLE table, ptrOSPFROUTINGTABLEROW row)
 
void ospf_rtTable_addRoute (ptrOSPF_PDS ospf, ptrOSPFROUTINGTABLEROW newRoute)
 
ptrOSPFROUTINGTABLEROW ospf_rtTable_getValidHostRoute (ptrOSPF_PDS ospf, NETSIM_IPAddress destAddr, OSPFDESTTYPE destType)
 
ptrOSPFROUTINGTABLEROW ospf_rtTable_getValidRoute (ptrOSPF_PDS ospf, NETSIM_IPAddress destAddr, OSPFDESTTYPE destType)
 
void ospf_rtTable_freeRoute (ptrOSPF_PDS ospf, ptrOSPFROUTINGTABLEROW row)
 
void ospf_rtTable_freeAllInvalidRoute (ptrOSPF_PDS ospf)
 
static void ospf_rtTable_deleteAllIPRoute (ptrOSPF_PDS ospf)
 
static void ospf_rtTable_addIPRoute (ptrOSPF_PDS ospf, void *iproute)
 
void ospf_rtTable_updateIPTable (ptrOSPF_PDS ospf)
 
void ospf_Table_updateIPTable_Dijkstra (ptrOSPF_PDS ospf, ptrOSPF_COST_LIST list)
 

Function Documentation

◆ ospf_rtTable_addIPRoute()

static void ospf_rtTable_addIPRoute ( ptrOSPF_PDS  ospf,
void *  iproute 
)
static

Definition at line 293 of file OSPF_RoutingTable.c.

Here is the caller graph for this function:

◆ ospf_rtTable_addRoute()

void ospf_rtTable_addRoute ( ptrOSPF_PDS  ospf,
ptrOSPFROUTINGTABLEROW  newRoute 
)

Definition at line 146 of file OSPF_RoutingTable.c.

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

◆ ospf_rtTable_addRowToTable()

static void ospf_rtTable_addRowToTable ( ptrOSPF_PDS  ospf,
ptrOSPFROUTINGTABLE  table,
ptrOSPFROUTINGTABLEROW  row 
)
static

Definition at line 131 of file OSPF_RoutingTable.c.

Here is the caller graph for this function:

◆ ospf_rtTable_compareDestType()

static bool ospf_rtTable_compareDestType ( OSPFDESTTYPE  destType1,
OSPFDESTTYPE  destType2 
)
static

Definition at line 25 of file OSPF_RoutingTable.c.

Here is the caller graph for this function:

◆ ospf_rtTable_deleteAllIPRoute()

static void ospf_rtTable_deleteAllIPRoute ( ptrOSPF_PDS  ospf)
static

Definition at line 279 of file OSPF_RoutingTable.c.

Here is the caller graph for this function:

◆ ospf_rtTable_freeAllInvalidRoute()

void ospf_rtTable_freeAllInvalidRoute ( ptrOSPF_PDS  ospf)

Definition at line 265 of file OSPF_RoutingTable.c.

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

◆ ospf_rtTable_freeRoute()

void ospf_rtTable_freeRoute ( ptrOSPF_PDS  ospf,
ptrOSPFROUTINGTABLEROW  row 
)

Definition at line 240 of file OSPF_RoutingTable.c.

Here is the caller graph for this function:

◆ ospf_rtTable_getIntraAreaRoute()

static ptrOSPFROUTINGTABLEROW ospf_rtTable_getIntraAreaRoute ( ptrOSPF_PDS  ospf,
NETSIM_IPAddress  destAddr,
OSPFDESTTYPE  destType,
OSPFID  areaId 
)
static

Definition at line 44 of file OSPF_RoutingTable.c.

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

◆ ospf_rtTable_getRoute()

static ptrOSPFROUTINGTABLEROW ospf_rtTable_getRoute ( ptrOSPF_PDS  ospf,
NETSIM_IPAddress  destAddr,
OSPFDESTTYPE  destType 
)
static

Definition at line 87 of file OSPF_RoutingTable.c.

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

◆ ospf_rtTable_getValidHostRoute()

ptrOSPFROUTINGTABLEROW ospf_rtTable_getValidHostRoute ( ptrOSPF_PDS  ospf,
NETSIM_IPAddress  destAddr,
OSPFDESTTYPE  destType 
)

Definition at line 183 of file OSPF_RoutingTable.c.

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

◆ ospf_rtTable_getValidRoute()

ptrOSPFROUTINGTABLEROW ospf_rtTable_getValidRoute ( ptrOSPF_PDS  ospf,
NETSIM_IPAddress  destAddr,
OSPFDESTTYPE  destType 
)

Definition at line 203 of file OSPF_RoutingTable.c.

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

◆ ospf_rtTable_isRouteMatch()

static bool ospf_rtTable_isRouteMatch ( ptrOSPFROUTINGTABLEROW  newRoute,
ptrOSPFROUTINGTABLEROW  oldRoute 
)
static

Definition at line 121 of file OSPF_RoutingTable.c.

Here is the caller graph for this function:

◆ ospf_rtTable_updateIPTable()

void ospf_rtTable_updateIPTable ( ptrOSPF_PDS  ospf)

Definition at line 304 of file OSPF_RoutingTable.c.

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

◆ ospf_Table_updateIPTable_Dijkstra()

void ospf_Table_updateIPTable_Dijkstra ( ptrOSPF_PDS  ospf,
ptrOSPF_COST_LIST  list 
)

Definition at line 352 of file OSPF_RoutingTable.c.

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