NetSim Source Code Help
Loading...
Searching...
No Matches
OSPF.c File Reference
#include "main.h"
#include "OSPF.h"
#include "OSPF_enum.h"
#include "OSPF_Msg.h"
Include dependency graph for OSPF.c:

Go to the source code of this file.

Functions

char * GetStringOSPF_Subevent (NETSIM_ID)
 
int fn_NetSim_OSPF_Configure_F (void **var)
 
int fn_NetSim_OSPF_Init_F (struct stru_NetSim_Network *net, NetSim_EVENTDETAILS *pevent, char *appPath, char *iopath, int version, void **fnPointer)
 
int fn_NetSim_OSPF_Finish_F ()
 
int fn_NetSim_OSPF_FreePacket_F (NetSim_PACKET *packet)
 
int fn_NetSim_OSPF_CopyPacket_F (NetSim_PACKET *dst, NetSim_PACKET *src)
 
int fn_NetSim_OSPF_Metrics_F (PMETRICSWRITER metricsWriter)
 
char * fn_NetSim_OSPF_ConfigPacketTrace_F (const void *xmlNetSimNode)
 
int fn_NetSim_OSPF_WritePacketTrace_F (NetSim_PACKET *pstruPacket, char **ppszTrace)
 
static void register_ospf_log ()
 
static void ospf_handle_appin_event ()
 
static void ospf_handle_timer_event ()
 
void ospf_handle_InterfaceUp_Event ()
 
int fn_NetSim_OSPF_Run ()
 
int fn_NetSim_OSPF_Configure (void **var)
 
int fn_NetSim_OSPF_Init (struct stru_NetSim_Network *NETWORK_Formal, NetSim_EVENTDETAILS *pstruEventDetails_Formal, char *pszAppPath_Formal, char *pszWritePath_Formal, int nVersion_Type, void **fnPointer)
 
int fn_NetSim_OSPF_Finish ()
 
char * fn_NetSim_OSPF_Trace (int nSubEvent)
 
int fn_NetSim_OSPF_FreePacket (NetSim_PACKET *pstruPacket)
 
int fn_NetSim_OSPF_CopyPacket (NetSim_PACKET *pstruDestPacket, NetSim_PACKET *pstruSrcPacket)
 
int fn_NetSim_OSPF_Metrics (PMETRICSWRITER metricsWriter)
 
char * fn_NetSim_OSPF_ConfigPacketTrace (const void *xmlNetSimNode)
 
int fn_NetSim_OSPF_WritePacketTrace (NetSim_PACKET *pstruPacket, char **ppszTrace)
 
bool isOSPFHelloLog ()
 
bool isOSPFSPFLog ()
 
char * form_dlogId (char *name, NETSIM_ID d)
 
bool get_ospf_log_status ()
 

Variables

char logId [BUFSIZ]
 

Function Documentation

◆ fn_NetSim_OSPF_ConfigPacketTrace()

char * fn_NetSim_OSPF_ConfigPacketTrace ( const void *  xmlNetSimNode)

Definition at line 109 of file OSPF.c.

Here is the call graph for this function:

◆ fn_NetSim_OSPF_ConfigPacketTrace_F()

char * fn_NetSim_OSPF_ConfigPacketTrace_F ( const void *  xmlNetSimNode)
Here is the caller graph for this function:

◆ fn_NetSim_OSPF_Configure()

int fn_NetSim_OSPF_Configure ( void **  var)

Definition at line 63 of file OSPF.c.

Here is the call graph for this function:

◆ fn_NetSim_OSPF_Configure_F()

int fn_NetSim_OSPF_Configure_F ( void **  var)
Here is the caller graph for this function:

◆ fn_NetSim_OSPF_CopyPacket()

int fn_NetSim_OSPF_CopyPacket ( NetSim_PACKET pstruDestPacket,
NetSim_PACKET pstruSrcPacket 
)

Definition at line 99 of file OSPF.c.

Here is the call graph for this function:

◆ fn_NetSim_OSPF_CopyPacket_F()

int fn_NetSim_OSPF_CopyPacket_F ( NetSim_PACKET dst,
NetSim_PACKET src 
)
Here is the caller graph for this function:

◆ fn_NetSim_OSPF_Finish()

int fn_NetSim_OSPF_Finish ( )

Definition at line 84 of file OSPF.c.

Here is the call graph for this function:

◆ fn_NetSim_OSPF_Finish_F()

int fn_NetSim_OSPF_Finish_F ( )
Here is the caller graph for this function:

◆ fn_NetSim_OSPF_FreePacket()

int fn_NetSim_OSPF_FreePacket ( NetSim_PACKET pstruPacket)

Definition at line 94 of file OSPF.c.

Here is the call graph for this function:

◆ fn_NetSim_OSPF_FreePacket_F()

int fn_NetSim_OSPF_FreePacket_F ( NetSim_PACKET packet)
Here is the caller graph for this function:

◆ fn_NetSim_OSPF_Init()

int fn_NetSim_OSPF_Init ( struct stru_NetSim_Network NETWORK_Formal,
NetSim_EVENTDETAILS pstruEventDetails_Formal,
char *  pszAppPath_Formal,
char *  pszWritePath_Formal,
int  nVersion_Type,
void **  fnPointer 
)

Definition at line 68 of file OSPF.c.

Here is the call graph for this function:

◆ fn_NetSim_OSPF_Init_F()

int fn_NetSim_OSPF_Init_F ( struct stru_NetSim_Network net,
NetSim_EVENTDETAILS pevent,
char *  appPath,
char *  iopath,
int  version,
void **  fnPointer 
)
Here is the caller graph for this function:

◆ fn_NetSim_OSPF_Metrics()

int fn_NetSim_OSPF_Metrics ( PMETRICSWRITER  metricsWriter)

Definition at line 104 of file OSPF.c.

Here is the call graph for this function:

◆ fn_NetSim_OSPF_Metrics_F()

int fn_NetSim_OSPF_Metrics_F ( PMETRICSWRITER  metricsWriter)
Here is the caller graph for this function:

◆ fn_NetSim_OSPF_Run()

int fn_NetSim_OSPF_Run ( )

Definition at line 45 of file OSPF.c.

Here is the call graph for this function:

◆ fn_NetSim_OSPF_Trace()

char * fn_NetSim_OSPF_Trace ( int  nSubEvent)

Definition at line 89 of file OSPF.c.

Here is the call graph for this function:

◆ fn_NetSim_OSPF_WritePacketTrace()

int fn_NetSim_OSPF_WritePacketTrace ( NetSim_PACKET pstruPacket,
char **  ppszTrace 
)

Definition at line 114 of file OSPF.c.

Here is the call graph for this function:

◆ fn_NetSim_OSPF_WritePacketTrace_F()

int fn_NetSim_OSPF_WritePacketTrace_F ( NetSim_PACKET pstruPacket,
char **  ppszTrace 
)
Here is the caller graph for this function:

◆ form_dlogId()

char * form_dlogId ( char *  name,
NETSIM_ID  d 
)

Definition at line 178 of file OSPF.c.

Here is the caller graph for this function:

◆ get_ospf_log_status()

bool get_ospf_log_status ( )

Definition at line 206 of file OSPF.c.

◆ GetStringOSPF_Subevent()

char * GetStringOSPF_Subevent ( NETSIM_ID  )
Here is the caller graph for this function:

◆ isOSPFHelloLog()

bool isOSPFHelloLog ( )

Definition at line 167 of file OSPF.c.

◆ isOSPFSPFLog()

bool isOSPFSPFLog ( )

Definition at line 172 of file OSPF.c.

◆ ospf_handle_appin_event()

static void ospf_handle_appin_event ( )
static

Definition at line 130 of file OSPF.c.

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

◆ ospf_handle_InterfaceUp_Event()

void ospf_handle_InterfaceUp_Event ( )

◆ ospf_handle_timer_event()

static void ospf_handle_timer_event ( )
static

Definition at line 119 of file OSPF.c.

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

◆ register_ospf_log()

static void register_ospf_log ( )
static

Definition at line 186 of file OSPF.c.

Here is the caller graph for this function:

Variable Documentation

◆ logId

char logId[BUFSIZ]

Definition at line 177 of file OSPF.c.