NetSim Source Code Help
Loading...
Searching...
No Matches
Neighbor.c File Reference
#include "main.h"
#include "RPL.h"
#include "RPL_Message.h"
#include "RPL_enum.h"
Include dependency graph for Neighbor.c:

Go to the source code of this file.

Functions

PRPL_NEIGHBOR rpl_find_neighbor (NETSIM_ID d, NETSIM_ID r)
 
static void add_neighbor (NETSIM_ID d, NETSIM_ID r)
 
void rpl_add_to_neighbor_list ()
 
void update_neighbor_dio_message (PRPL_NEIGHBOR neighbor, PRPL_CTRL_MSG dio_pdu)
 
void rpl_node_add_parent (NETSIM_ID d, PRPL_NEIGHBOR parent)
 
PRPL_NEIGHBOR rpl_node_find_parent (NETSIM_ID d, NETSIM_ID parent)
 
void rpl_node_remove_all_parents (NETSIM_ID d)
 
void forget_neighbor_messages (PRPL_NODE rpl)
 
void rpl_node_add_sibling (NETSIM_ID d, PRPL_NEIGHBOR sibling)
 
PRPL_NEIGHBOR rpl_node_find_sibling (NETSIM_ID d, NETSIM_ID sibling)
 
void rpl_node_remove_all_siblings (NETSIM_ID d)
 
static UINT16 compute_candidate_rank (NETSIM_ID d, PRPL_NEIGHBOR neighbor)
 
void choose_parents_and_siblings (NETSIM_ID d)
 
void free_all_neighbor (PRPL_NODE rpl)
 

Function Documentation

◆ add_neighbor()

static void add_neighbor ( NETSIM_ID  d,
NETSIM_ID  r 
)
static

Definition at line 31 of file Neighbor.c.

Here is the caller graph for this function:

◆ choose_parents_and_siblings()

void choose_parents_and_siblings ( NETSIM_ID  d)

Definition at line 189 of file Neighbor.c.

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

◆ compute_candidate_rank()

static UINT16 compute_candidate_rank ( NETSIM_ID  d,
PRPL_NEIGHBOR  neighbor 
)
static

Definition at line 170 of file Neighbor.c.

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

◆ forget_neighbor_messages()

void forget_neighbor_messages ( PRPL_NODE  rpl)

Definition at line 107 of file Neighbor.c.

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

◆ free_all_neighbor()

void free_all_neighbor ( PRPL_NODE  rpl)

Definition at line 407 of file Neighbor.c.

◆ rpl_add_to_neighbor_list()

void rpl_add_to_neighbor_list ( )

Definition at line 44 of file Neighbor.c.

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

◆ rpl_find_neighbor()

PRPL_NEIGHBOR rpl_find_neighbor ( NETSIM_ID  d,
NETSIM_ID  r 
)

Definition at line 19 of file Neighbor.c.

Here is the caller graph for this function:

◆ rpl_node_add_parent()

void rpl_node_add_parent ( NETSIM_ID  d,
PRPL_NEIGHBOR  parent 
)

Definition at line 64 of file Neighbor.c.

Here is the caller graph for this function:

◆ rpl_node_add_sibling()

void rpl_node_add_sibling ( NETSIM_ID  d,
PRPL_NEIGHBOR  sibling 
)

Definition at line 122 of file Neighbor.c.

Here is the caller graph for this function:

◆ rpl_node_find_parent()

PRPL_NEIGHBOR rpl_node_find_parent ( NETSIM_ID  d,
NETSIM_ID  parent 
)

Definition at line 76 of file Neighbor.c.

◆ rpl_node_find_sibling()

PRPL_NEIGHBOR rpl_node_find_sibling ( NETSIM_ID  d,
NETSIM_ID  sibling 
)

Definition at line 135 of file Neighbor.c.

◆ rpl_node_remove_all_parents()

void rpl_node_remove_all_parents ( NETSIM_ID  d)

Definition at line 94 of file Neighbor.c.

Here is the caller graph for this function:

◆ rpl_node_remove_all_siblings()

void rpl_node_remove_all_siblings ( NETSIM_ID  d)

Definition at line 153 of file Neighbor.c.

Here is the caller graph for this function:

◆ update_neighbor_dio_message()

void update_neighbor_dio_message ( PRPL_NEIGHBOR  neighbor,
PRPL_CTRL_MSG  dio_pdu 
)

Definition at line 58 of file Neighbor.c.

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