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

Go to the source code of this file.

Functions

void OSPF_DD_MSG_NEW (ptrOSPFPACKETHDR hdr)
 
ptrOSPFDD OSPF_DD_MSG_COPY (ptrOSPFDD dd)
 
void OSPF_DD_MSG_FREE (ptrOSPFDD dd)
 
static void set_DD_param_in_exstart (ptrOSPFPACKETHDR hdr, ptrOSPF_IF ospf, ptrOSPF_NEIGHBOR neigh)
 
static ptrOSPFLSAHDRospf_DD_getTopLSAFromList (ptrOSPFLIST list, UINT16 *count, UINT maxCount)
 
static void set_DD_param_in_exchange (NetSim_PACKET *packet, ptrOSPF_IF ospf, ptrOSPF_NEIGHBOR neigh)
 
static void ospf_DD_update_dst (NetSim_PACKET *packet, ptrOSPF_NEIGHBOR neigh)
 
static void send_DD_msg (ptrOSPF_IF ospf, ptrOSPF_NEIGHBOR neigh)
 
static void copy_DD_param (ptrOSPFPACKETHDR hdr, ptrOSPF_NEIGHBOR neigh)
 
static void resend_DD_msg (ptrOSPF_IF ospf, ptrOSPF_NEIGHBOR neigh)
 
static void add_DD_rxmt_timer_in_exstart_state (ptrOSPF_IF ospf, ptrOSPF_NEIGHBOR neigh)
 
void start_sending_dd_msg ()
 
static void ospf_process_DD (ptrOSPF_PDS ospf, ptrOSPF_IF thisInterface, ptrOSPF_NEIGHBOR neigh, ptrOSPFPACKETHDR hdr)
 
static bool validate_dd_msg (ptrOSPF_IF ospf, ptrOSPF_NEIGHBOR neigh, ptrOSPFDD dd)
 
static bool ospf_dd_check_duplicate (ptrOSPF_NEIGHBOR neigh, ptrOSPFPACKETHDR hdr)
 
static void ospf_process_dd_in_exstart_state (ptrOSPF_PDS ospf, ptrOSPF_IF ospfif, ptrOSPF_NEIGHBOR neigh, ptrOSPFPACKETHDR hdr)
 
static void ospf_process_dd_in_init_state (ptrOSPF_NEIGHBOR neigh, ptrOSPFPACKETHDR hdr)
 
static void ospf_process_dd_in_exchange_state_for_duplicate (ptrOSPF_IF ospf, ptrOSPF_NEIGHBOR neigh, ptrOSPFPACKETHDR hdr)
 
static void ospf_process_dd_in_exchange_state (ptrOSPF_PDS ospf, ptrOSPF_IF thisInterface, ptrOSPF_NEIGHBOR neigh, ptrOSPFPACKETHDR hdr, bool isDuplicate)
 
static void ospf_process_dd_in_loading_or_full_state (ptrOSPF_IF ospf, ptrOSPF_NEIGHBOR neigh, ptrOSPFPACKETHDR hdr, bool isDuplicate)
 
void ospf_handle_DD ()
 

Function Documentation

◆ add_DD_rxmt_timer_in_exstart_state()

static void add_DD_rxmt_timer_in_exstart_state ( ptrOSPF_IF  ospf,
ptrOSPF_NEIGHBOR  neigh 
)
static

Definition at line 196 of file OSPF_DD.c.

Here is the caller graph for this function:

◆ copy_DD_param()

static void copy_DD_param ( ptrOSPFPACKETHDR  hdr,
ptrOSPF_NEIGHBOR  neigh 
)
static

Definition at line 152 of file OSPF_DD.c.

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

◆ ospf_dd_check_duplicate()

static bool ospf_dd_check_duplicate ( ptrOSPF_NEIGHBOR  neigh,
ptrOSPFPACKETHDR  hdr 
)
static

Definition at line 327 of file OSPF_DD.c.

Here is the caller graph for this function:

◆ ospf_DD_getTopLSAFromList()

static ptrOSPFLSAHDR * ospf_DD_getTopLSAFromList ( ptrOSPFLIST  list,
UINT16 count,
UINT  maxCount 
)
static

Definition at line 69 of file OSPF_DD.c.

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

◆ OSPF_DD_MSG_COPY()

ptrOSPFDD OSPF_DD_MSG_COPY ( ptrOSPFDD  dd)

Definition at line 32 of file OSPF_DD.c.

Here is the call graph for this function:

◆ OSPF_DD_MSG_FREE()

void OSPF_DD_MSG_FREE ( ptrOSPFDD  dd)

Definition at line 44 of file OSPF_DD.c.

Here is the call graph for this function:

◆ OSPF_DD_MSG_NEW()

void OSPF_DD_MSG_NEW ( ptrOSPFPACKETHDR  hdr)

Definition at line 23 of file OSPF_DD.c.

Here is the call graph for this function:

◆ ospf_DD_update_dst()

static void ospf_DD_update_dst ( NetSim_PACKET packet,
ptrOSPF_NEIGHBOR  neigh 
)
static

Definition at line 119 of file OSPF_DD.c.

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

◆ ospf_handle_DD()

void ospf_handle_DD ( )

Definition at line 510 of file OSPF_DD.c.

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

◆ ospf_process_DD()

static void ospf_process_DD ( ptrOSPF_PDS  ospf,
ptrOSPF_IF  thisInterface,
ptrOSPF_NEIGHBOR  neigh,
ptrOSPFPACKETHDR  hdr 
)
static

Definition at line 226 of file OSPF_DD.c.

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

◆ ospf_process_dd_in_exchange_state()

static void ospf_process_dd_in_exchange_state ( ptrOSPF_PDS  ospf,
ptrOSPF_IF  thisInterface,
ptrOSPF_NEIGHBOR  neigh,
ptrOSPFPACKETHDR  hdr,
bool  isDuplicate 
)
static

Definition at line 398 of file OSPF_DD.c.

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

◆ ospf_process_dd_in_exchange_state_for_duplicate()

static void ospf_process_dd_in_exchange_state_for_duplicate ( ptrOSPF_IF  ospf,
ptrOSPF_NEIGHBOR  neigh,
ptrOSPFPACKETHDR  hdr 
)
static

Definition at line 386 of file OSPF_DD.c.

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

◆ ospf_process_dd_in_exstart_state()

static void ospf_process_dd_in_exstart_state ( ptrOSPF_PDS  ospf,
ptrOSPF_IF  ospfif,
ptrOSPF_NEIGHBOR  neigh,
ptrOSPFPACKETHDR  hdr 
)
static

Definition at line 343 of file OSPF_DD.c.

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

◆ ospf_process_dd_in_init_state()

static void ospf_process_dd_in_init_state ( ptrOSPF_NEIGHBOR  neigh,
ptrOSPFPACKETHDR  hdr 
)
static

Definition at line 378 of file OSPF_DD.c.

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

◆ ospf_process_dd_in_loading_or_full_state()

static void ospf_process_dd_in_loading_or_full_state ( ptrOSPF_IF  ospf,
ptrOSPF_NEIGHBOR  neigh,
ptrOSPFPACKETHDR  hdr,
bool  isDuplicate 
)
static

Definition at line 481 of file OSPF_DD.c.

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

◆ resend_DD_msg()

static void resend_DD_msg ( ptrOSPF_IF  ospf,
ptrOSPF_NEIGHBOR  neigh 
)
static

Definition at line 173 of file OSPF_DD.c.

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

◆ send_DD_msg()

static void send_DD_msg ( ptrOSPF_IF  ospf,
ptrOSPF_NEIGHBOR  neigh 
)
static

Definition at line 127 of file OSPF_DD.c.

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

◆ set_DD_param_in_exchange()

static void set_DD_param_in_exchange ( NetSim_PACKET packet,
ptrOSPF_IF  ospf,
ptrOSPF_NEIGHBOR  neigh 
)
static

Definition at line 91 of file OSPF_DD.c.

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

◆ set_DD_param_in_exstart()

static void set_DD_param_in_exstart ( ptrOSPFPACKETHDR  hdr,
ptrOSPF_IF  ospf,
ptrOSPF_NEIGHBOR  neigh 
)
static

Definition at line 53 of file OSPF_DD.c.

Here is the caller graph for this function:

◆ start_sending_dd_msg()

void start_sending_dd_msg ( )

Definition at line 207 of file OSPF_DD.c.

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

◆ validate_dd_msg()

static bool validate_dd_msg ( ptrOSPF_IF  ospf,
ptrOSPF_NEIGHBOR  neigh,
ptrOSPFDD  dd 
)
static

Definition at line 306 of file OSPF_DD.c.

Here is the caller graph for this function: