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

Go to the source code of this file.

Macros

#define OSPF_HELLO_GET_DR_FROM_IF(i)   (i->designaterRouter?i->designaterRouter:NullID)
 
#define OSPF_HELLO_GET_BDR_FROM_IF(i)   (i->backupDesignaterRouter?i->backupDesignaterRouter:NullID)
 

Functions

void OSPF_HELLO_MSG_NEW (ptrOSPFPACKETHDR hdr)
 
ptrOSPFHELLO OSPF_HELLO_MSG_COPY (ptrOSPFHELLO hello)
 
void OSPF_HELLO_MSG_FREE (ptrOSPFHELLO hello)
 
void start_interval_hello_timer ()
 
static void add_next_hello_timer ()
 
static UINT16 add_neighborToHello (ptrOSPFHELLO hello, ptrOSPF_IF ospf)
 
static void set_hello_param (NetSim_PACKET *packet, ptrOSPFPACKETHDR hdr)
 
static void ospf_hello_update_dst (NetSim_PACKET *packet)
 
static void send_hello ()
 
void ospf_handle_helloTimer_event ()
 
static bool validate_hello_msg ()
 
static bool is_ip_present_in_hello (ptrOSPFHELLO hello, NETSIM_IPAddress ip)
 
static bool ospf_hello_findNeighbor (ptrOSPF_IF thisInterface, NETSIM_IPAddress srcAddr, OSPFID rid, ptrOSPF_NEIGHBOR *neighbor)
 
void ospf_process_hello ()
 

Macro Definition Documentation

◆ OSPF_HELLO_GET_BDR_FROM_IF

#define OSPF_HELLO_GET_BDR_FROM_IF (   i)    (i->backupDesignaterRouter?i->backupDesignaterRouter:NullID)

Definition at line 22 of file OSPF_Hello.c.

◆ OSPF_HELLO_GET_DR_FROM_IF

#define OSPF_HELLO_GET_DR_FROM_IF (   i)    (i->designaterRouter?i->designaterRouter:NullID)

Definition at line 21 of file OSPF_Hello.c.

Function Documentation

◆ add_neighborToHello()

static UINT16 add_neighborToHello ( ptrOSPFHELLO  hello,
ptrOSPF_IF  ospf 
)
static

Definition at line 95 of file OSPF_Hello.c.

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

◆ add_next_hello_timer()

static void add_next_hello_timer ( )
static

Definition at line 72 of file OSPF_Hello.c.

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

◆ is_ip_present_in_hello()

static bool is_ip_present_in_hello ( ptrOSPFHELLO  hello,
NETSIM_IPAddress  ip 
)
static

Definition at line 211 of file OSPF_Hello.c.

Here is the caller graph for this function:

◆ ospf_handle_helloTimer_event()

void ospf_handle_helloTimer_event ( )

Definition at line 157 of file OSPF_Hello.c.

Here is the call graph for this function:

◆ ospf_hello_findNeighbor()

static bool ospf_hello_findNeighbor ( ptrOSPF_IF  thisInterface,
NETSIM_IPAddress  srcAddr,
OSPFID  rid,
ptrOSPF_NEIGHBOR neighbor 
)
static

Definition at line 222 of file OSPF_Hello.c.

Here is the caller graph for this function:

◆ OSPF_HELLO_MSG_COPY()

ptrOSPFHELLO OSPF_HELLO_MSG_COPY ( ptrOSPFHELLO  hello)

Definition at line 33 of file OSPF_Hello.c.

Here is the call graph for this function:

◆ OSPF_HELLO_MSG_FREE()

void OSPF_HELLO_MSG_FREE ( ptrOSPFHELLO  hello)

Definition at line 45 of file OSPF_Hello.c.

◆ OSPF_HELLO_MSG_NEW()

void OSPF_HELLO_MSG_NEW ( ptrOSPFPACKETHDR  hdr)

Definition at line 24 of file OSPF_Hello.c.

Here is the call graph for this function:

◆ ospf_hello_update_dst()

static void ospf_hello_update_dst ( NetSim_PACKET packet)
static

Definition at line 133 of file OSPF_Hello.c.

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

◆ ospf_process_hello()

void ospf_process_hello ( )

Definition at line 258 of file OSPF_Hello.c.

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

◆ send_hello()

static void send_hello ( )
static

Definition at line 141 of file OSPF_Hello.c.

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

◆ set_hello_param()

static void set_hello_param ( NetSim_PACKET packet,
ptrOSPFPACKETHDR  hdr 
)
static

Definition at line 119 of file OSPF_Hello.c.

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

◆ start_interval_hello_timer()

void start_interval_hello_timer ( )

Definition at line 50 of file OSPF_Hello.c.

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

◆ validate_hello_msg()

static bool validate_hello_msg ( )
static

Definition at line 174 of file OSPF_Hello.c.

Here is the caller graph for this function: