NetSim Source Code Help
Loading...
Searching...
No Matches
PIM_Route.c File Reference
#include "main.h"
#include "List.h"
#include "IP.h"
#include "PIM_SM.h"
Include dependency graph for PIM_Route.c:

Go to the source code of this file.

Data Structures

struct  stru_pim_route
 

Macros

#define PIM_ROUTE_ALLOC()   (ptrPIM_ROUTE)list_alloc(sizeof(PIM_ROUTE),offsetof(PIM_ROUTE,ele))
 
#define PIM_ROUTE_ADD(ls, m)   LIST_ADD_LAST((void**)ls,m)
 
#define PIM_ROUTE_NEXT(m)   (m = LIST_NEXT(m))
 

Typedefs

typedef struct stru_pim_route PIM_ROUTE
 
typedef struct stru_pim_routeptrPIM_ROUTE
 

Functions

static ptrPIM_ROUTE find_route (NETSIM_ID d, NETSIM_ID i, NETSIM_IPAddress dest)
 
void pim_route_add (NETSIM_ID d, NETSIM_ID i, UINT metric, NETSIM_IPAddress dest)
 
NETSIM_IPAddress pimroute_find_nexthop (NETSIM_ID d, NETSIM_IPAddress dest)
 

Variables

static ptrPIM_ROUTE pimRoute = NULL
 

Macro Definition Documentation

◆ PIM_ROUTE_ADD

#define PIM_ROUTE_ADD (   ls,
 
)    LIST_ADD_LAST((void**)ls,m)

Definition at line 30 of file PIM_Route.c.

◆ PIM_ROUTE_ALLOC

#define PIM_ROUTE_ALLOC ( )    (ptrPIM_ROUTE)list_alloc(sizeof(PIM_ROUTE),offsetof(PIM_ROUTE,ele))

Definition at line 29 of file PIM_Route.c.

◆ PIM_ROUTE_NEXT

#define PIM_ROUTE_NEXT (   m)    (m = LIST_NEXT(m))

Definition at line 31 of file PIM_Route.c.

Typedef Documentation

◆ PIM_ROUTE

typedef struct stru_pim_route PIM_ROUTE

◆ ptrPIM_ROUTE

typedef struct stru_pim_route * ptrPIM_ROUTE

Function Documentation

◆ find_route()

static ptrPIM_ROUTE find_route ( NETSIM_ID  d,
NETSIM_ID  i,
NETSIM_IPAddress  dest 
)
static

Definition at line 34 of file PIM_Route.c.

Here is the caller graph for this function:

◆ pim_route_add()

void pim_route_add ( NETSIM_ID  d,
NETSIM_ID  i,
UINT  metric,
NETSIM_IPAddress  dest 
)

Definition at line 72 of file PIM_Route.c.

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

◆ pimroute_find_nexthop()

NETSIM_IPAddress pimroute_find_nexthop ( NETSIM_ID  d,
NETSIM_IPAddress  dest 
)

Definition at line 165 of file PIM_Route.c.

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

Variable Documentation

◆ pimRoute

ptrPIM_ROUTE pimRoute = NULL
static

Definition at line 32 of file PIM_Route.c.