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

Go to the source code of this file.

Functions

static void rpl_dodag_config_option_destroy (PRPL_DODAG_CONFIG_OPTION opt)
 
static PRPL_DODAG_CONFIG_OPTION rpl_dodag_config_option_copy (PRPL_DODAG_CONFIG_OPTION opt)
 
static PRPL_TARGET_OPTION rpl_rpl_target_option_copy (PRPL_TARGET_OPTION target)
 
static void rpl_rpl_target_option_destroy (PRPL_TARGET_OPTION target)
 
static double get_rpl_packet_size_fixed (RPL_CTRL_MSG_CODE code)
 
static void set_option_in_msg (NetSim_PACKET *packet, RPL_OPTION_TYPE type, void *option)
 
void * get_option_from_msg (PRPL_CTRL_MSG msg, RPL_OPTION_TYPE type)
 
void ** get_all_option_from_msg (PRPL_CTRL_MSG msg, RPL_OPTION_TYPE type, UINT *count)
 
void rpl_option_destroy (PRPL_OPTION option)
 
PRPL_OPTION rpl_option_copy (PRPL_OPTION option)
 
static PRPL_CTRL_MSG get_icmp_rpl_msg (RPL_CTRL_MSG_CODE code)
 
static void rpl_get_packet_type_sz (char *str, RPL_CTRL_MSG_CODE code)
 
static NetSim_PACKETcreate_rpl_ctrl_msg (RPL_CTRL_MSG_CODE code, double time, NETSIM_ID src, NETSIM_ID dest)
 
static PRPL_DIO_BASE create_dio_base ()
 
static PRPL_DODAG_CONFIG_OPTION create_dodag_config_option ()
 
NetSim_PACKETcreate_root_dio_message (NETSIM_ID ndevId, double time, bool include_dodag_config, bool include_seq_num)
 
static NetSim_PACKETcreate_joined_dio_message (NETSIM_ID ndevId, double time, bool include_dodag_config)
 
NetSim_PACKETcreate_current_dio_message (NETSIM_ID ndevId, double time, bool include_dodag_config)
 
PRPL_CTRL_MSG rpl_dio_pdu_duplicate (PRPL_CTRL_MSG dio)
 
void rpl_dio_pdu_free (PRPL_CTRL_MSG dio)
 
static PRPL_DAO_BASE create_dao_base (PRPL_NODE rpl)
 
NetSim_PACKETcreate_dao_message (NETSIM_ID ndevid, double time, NETSIM_ID parent)
 
void create_and_add_rpl_target_option (NetSim_PACKET *dao_pdu, UINT8 prefix_len, NETSIM_IPAddress dest)
 
static PRPL_DIS_BASE create_dis_base (PRPL_NODE rpl)
 
NetSim_PACKETcreate_dis_message (NETSIM_ID ndevid, double time)
 
void rpl_node_send_msg (NETSIM_ID ndevid, NetSim_PACKET *packet)
 
void rpl_process_ctrl_msg ()
 

Function Documentation

◆ create_and_add_rpl_target_option()

void create_and_add_rpl_target_option ( NetSim_PACKET dao_pdu,
UINT8  prefix_len,
NETSIM_IPAddress  dest 
)

Definition at line 379 of file RPL_Message.c.

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

◆ create_current_dio_message()

NetSim_PACKET * create_current_dio_message ( NETSIM_ID  ndevId,
double  time,
bool  include_dodag_config 
)

Definition at line 293 of file RPL_Message.c.

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

◆ create_dao_base()

static PRPL_DAO_BASE create_dao_base ( PRPL_NODE  rpl)
static

Definition at line 360 of file RPL_Message.c.

Here is the caller graph for this function:

◆ create_dao_message()

NetSim_PACKET * create_dao_message ( NETSIM_ID  ndevid,
double  time,
NETSIM_ID  parent 
)

Definition at line 370 of file RPL_Message.c.

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

◆ create_dio_base()

static PRPL_DIO_BASE create_dio_base ( )
static

Definition at line 196 of file RPL_Message.c.

Here is the caller graph for this function:

◆ create_dis_base()

static PRPL_DIS_BASE create_dis_base ( PRPL_NODE  rpl)
static

Definition at line 402 of file RPL_Message.c.

Here is the caller graph for this function:

◆ create_dis_message()

NetSim_PACKET * create_dis_message ( NETSIM_ID  ndevid,
double  time 
)

Definition at line 408 of file RPL_Message.c.

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

◆ create_dodag_config_option()

static PRPL_DODAG_CONFIG_OPTION create_dodag_config_option ( )
static

Definition at line 205 of file RPL_Message.c.

Here is the caller graph for this function:

◆ create_joined_dio_message()

static NetSim_PACKET * create_joined_dio_message ( NETSIM_ID  ndevId,
double  time,
bool  include_dodag_config 
)
static

Definition at line 263 of file RPL_Message.c.

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

◆ create_root_dio_message()

NetSim_PACKET * create_root_dio_message ( NETSIM_ID  ndevId,
double  time,
bool  include_dodag_config,
bool  include_seq_num 
)

Definition at line 225 of file RPL_Message.c.

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

◆ create_rpl_ctrl_msg()

static NetSim_PACKET * create_rpl_ctrl_msg ( RPL_CTRL_MSG_CODE  code,
double  time,
NETSIM_ID  src,
NETSIM_ID  dest 
)
static

Definition at line 166 of file RPL_Message.c.

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

◆ get_all_option_from_msg()

void ** get_all_option_from_msg ( PRPL_CTRL_MSG  msg,
RPL_OPTION_TYPE  type,
UINT count 
)

Definition at line 73 of file RPL_Message.c.

Here is the caller graph for this function:

◆ get_icmp_rpl_msg()

static PRPL_CTRL_MSG get_icmp_rpl_msg ( RPL_CTRL_MSG_CODE  code)
static

Definition at line 136 of file RPL_Message.c.

Here is the caller graph for this function:

◆ get_option_from_msg()

void * get_option_from_msg ( PRPL_CTRL_MSG  msg,
RPL_OPTION_TYPE  type 
)

Definition at line 60 of file RPL_Message.c.

Here is the caller graph for this function:

◆ get_rpl_packet_size_fixed()

static double get_rpl_packet_size_fixed ( RPL_CTRL_MSG_CODE  code)
static

Definition at line 24 of file RPL_Message.c.

Here is the caller graph for this function:

◆ rpl_dio_pdu_duplicate()

PRPL_CTRL_MSG rpl_dio_pdu_duplicate ( PRPL_CTRL_MSG  dio)

Definition at line 314 of file RPL_Message.c.

Here is the caller graph for this function:

◆ rpl_dio_pdu_free()

void rpl_dio_pdu_free ( PRPL_CTRL_MSG  dio)

Definition at line 343 of file RPL_Message.c.

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

◆ rpl_dodag_config_option_copy()

static PRPL_DODAG_CONFIG_OPTION rpl_dodag_config_option_copy ( PRPL_DODAG_CONFIG_OPTION  opt)
static

Definition at line 218 of file RPL_Message.c.

Here is the caller graph for this function:

◆ rpl_dodag_config_option_destroy()

static void rpl_dodag_config_option_destroy ( PRPL_DODAG_CONFIG_OPTION  opt)
static

Definition at line 213 of file RPL_Message.c.

Here is the caller graph for this function:

◆ rpl_get_packet_type_sz()

static void rpl_get_packet_type_sz ( char *  str,
RPL_CTRL_MSG_CODE  code 
)
static

Definition at line 144 of file RPL_Message.c.

Here is the caller graph for this function:

◆ rpl_node_send_msg()

void rpl_node_send_msg ( NETSIM_ID  ndevid,
NetSim_PACKET packet 
)

Definition at line 418 of file RPL_Message.c.

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

◆ rpl_option_copy()

PRPL_OPTION rpl_option_copy ( PRPL_OPTION  option)

Definition at line 114 of file RPL_Message.c.

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

◆ rpl_option_destroy()

void rpl_option_destroy ( PRPL_OPTION  option)

Definition at line 96 of file RPL_Message.c.

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

◆ rpl_process_ctrl_msg()

void rpl_process_ctrl_msg ( )

Definition at line 433 of file RPL_Message.c.

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

◆ rpl_rpl_target_option_copy()

static PRPL_TARGET_OPTION rpl_rpl_target_option_copy ( PRPL_TARGET_OPTION  target)
static

Definition at line 389 of file RPL_Message.c.

Here is the caller graph for this function:

◆ rpl_rpl_target_option_destroy()

static void rpl_rpl_target_option_destroy ( PRPL_TARGET_OPTION  target)
static

Definition at line 396 of file RPL_Message.c.

Here is the caller graph for this function:

◆ set_option_in_msg()

static void set_option_in_msg ( NetSim_PACKET packet,
RPL_OPTION_TYPE  type,
void *  option 
)
static

Definition at line 47 of file RPL_Message.c.

Here is the caller graph for this function: