NetSim Source Code Help
Loading...
Searching...
No Matches
RPL_Message.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stru_rpl_option
 
struct  stru_rpl_ctrl_message
 
struct  stru_rpl_DIS_Base
 
struct  stru_rpl_dio_base
 
struct  stru_rpl_dao_base
 
struct  stru_rpl_dao_ack_base
 
struct  stru_rpl_cc_base
 
struct  stru_dodag_config_option
 
struct  stru_rpl_target
 

Macros

#define ICMP_TYPE_RPL   0x9B
 
#define GET_RPL_CTRL_PACKET_TYPE(code)   (NW_PROTOCOL_RPL*100+code)
 
#define GET_RPL_CTRL_MSG_CODE(packet)   (packet->nControlDataType%100)
 
#define GET_PRPL_CTRL_MSG(packet)   ((PRPL_CTRL_MSG)(PACKET_NWDATA(packet)->Packet_RoutingProtocol))
 
#define SET_BASE_IN_MSG(packet, b)   (GET_PRPL_CTRL_MSG(packet)->Base = b)
 
#define GET_BASE_FROM_MSG(packet)   (GET_PRPL_CTRL_MSG(packet)->Base)
 
#define RPL_CTRL_MSG_SIZE_FIXED   4
 
#define RPL_DIS_BASE_SIZE   2
 
#define RPL_DIO_BASE_SIZE   24
 
#define RPL_DAO_BASE_SIZE   20
 
#define RPL_DAOACK_BASE_SIZE   20
 
#define RPL_DODAG_CONFIG_OPTION_SIZE   16
 

Typedefs

typedef enum enum_rpl_option_type RPL_OPTION_TYPE
 
typedef struct stru_rpl_option RPL_OPTION
 
typedef struct stru_rpl_optionPRPL_OPTION
 
typedef struct stru_rpl_ctrl_message RPL_CTRL_MSG
 
typedef struct stru_rpl_ctrl_messagePRPL_CTRL_MSG
 
typedef struct stru_rpl_DIS_Base RPL_DIS_BASE
 
typedef struct stru_rpl_DIS_BasePRPL_DIS_BASE
 
typedef struct stru_rpl_dio_base RPL_DIO_BASE
 
typedef struct stru_rpl_dio_basePRPL_DIO_BASE
 
typedef struct stru_rpl_dao_base RPL_DAO_BASE
 
typedef struct stru_rpl_dao_basePRPL_DAO_BASE
 
typedef struct stru_rpl_dao_ack_base RPL_DAOACK_BASE
 
typedef struct stru_rpl_dao_ack_basePRPL_DAOACK_BASE
 
typedef struct stru_rpl_cc_base RPL_CC_BASE
 
typedef struct stru_rpl_cc_basePRPL_CC_BASE
 
typedef struct stru_dodag_config_option RPL_DODAG_CONFIG_OPTION
 
typedef struct stru_dodag_config_optionPRPL_DODAG_CONFIG_OPTION
 
typedef struct stru_rpl_target RPL_TARGET_OPTION
 
typedef struct stru_rpl_targetPRPL_TARGET_OPTION
 

Enumerations

enum  RPL_CTRL_MSG_CODE {
  DODAG_Information_Solicitation = 0x00 , DODAG_Information_Object = 0x01 , Destination_Advertisement_Object = 0x02 , Destination_Advertisement_Object_Acknowledgment = 0x03 ,
  Secure_DODAG_Information_Solicitation = 0x80 , Secure_DODAG_Information_Object = 0x81 , Secure_Destination_Advertisement_Object = 0x82 , Secure_Destination_Advertisement_Object_Acknowledgment = 0x83 ,
  Consistency_Check = 0x8A
}
 
enum  enum_rpl_option_type {
  RPLOPTION_Pad1 = 0x00 , RPLOPTION_PadN , RPLOPTION_DAGMetricsContainer , RPLOPTION_RoutingInformation ,
  RPLOPTION_DODAGConfiguration , RPLOPTION_RPLTARGET , RPLOPTION_PrefixInformation = 0x08
}
 

Macro Definition Documentation

◆ GET_BASE_FROM_MSG

#define GET_BASE_FROM_MSG (   packet)    (GET_PRPL_CTRL_MSG(packet)->Base)

Definition at line 85 of file RPL_Message.h.

◆ GET_PRPL_CTRL_MSG

#define GET_PRPL_CTRL_MSG (   packet)    ((PRPL_CTRL_MSG)(PACKET_NWDATA(packet)->Packet_RoutingProtocol))

Definition at line 83 of file RPL_Message.h.

◆ GET_RPL_CTRL_MSG_CODE

#define GET_RPL_CTRL_MSG_CODE (   packet)    (packet->nControlDataType%100)

Definition at line 36 of file RPL_Message.h.

◆ GET_RPL_CTRL_PACKET_TYPE

#define GET_RPL_CTRL_PACKET_TYPE (   code)    (NW_PROTOCOL_RPL*100+code)

Definition at line 35 of file RPL_Message.h.

◆ ICMP_TYPE_RPL

#define ICMP_TYPE_RPL   0x9B

Definition at line 20 of file RPL_Message.h.

◆ RPL_CTRL_MSG_SIZE_FIXED

#define RPL_CTRL_MSG_SIZE_FIXED   4

Definition at line 86 of file RPL_Message.h.

◆ RPL_DAO_BASE_SIZE

#define RPL_DAO_BASE_SIZE   20

Definition at line 176 of file RPL_Message.h.

◆ RPL_DAOACK_BASE_SIZE

#define RPL_DAOACK_BASE_SIZE   20

Definition at line 206 of file RPL_Message.h.

◆ RPL_DIO_BASE_SIZE

#define RPL_DIO_BASE_SIZE   24

Definition at line 145 of file RPL_Message.h.

◆ RPL_DIS_BASE_SIZE

#define RPL_DIS_BASE_SIZE   2

Definition at line 105 of file RPL_Message.h.

◆ RPL_DODAG_CONFIG_OPTION_SIZE

#define RPL_DODAG_CONFIG_OPTION_SIZE   16

Definition at line 278 of file RPL_Message.h.

◆ SET_BASE_IN_MSG

#define SET_BASE_IN_MSG (   packet,
 
)    (GET_PRPL_CTRL_MSG(packet)->Base = b)

Definition at line 84 of file RPL_Message.h.

Typedef Documentation

◆ PRPL_CC_BASE

typedef struct stru_rpl_cc_base* PRPL_CC_BASE

◆ PRPL_CTRL_MSG

◆ PRPL_DAO_BASE

typedef struct stru_rpl_dao_base * PRPL_DAO_BASE

◆ PRPL_DAOACK_BASE

◆ PRPL_DIO_BASE

◆ PRPL_DIS_BASE

◆ PRPL_DODAG_CONFIG_OPTION

◆ PRPL_OPTION

typedef struct stru_rpl_option* PRPL_OPTION

◆ PRPL_TARGET_OPTION

◆ RPL_CC_BASE

typedef struct stru_rpl_cc_base RPL_CC_BASE

◆ RPL_CTRL_MSG

◆ RPL_DAO_BASE

◆ RPL_DAOACK_BASE

◆ RPL_DIO_BASE

◆ RPL_DIS_BASE

◆ RPL_DODAG_CONFIG_OPTION

◆ RPL_OPTION

typedef struct stru_rpl_option RPL_OPTION

◆ RPL_OPTION_TYPE

◆ RPL_TARGET_OPTION

Enumeration Type Documentation

◆ enum_rpl_option_type

Enumerator
RPLOPTION_Pad1 
RPLOPTION_PadN 
RPLOPTION_DAGMetricsContainer 
RPLOPTION_RoutingInformation 
RPLOPTION_DODAGConfiguration 
RPLOPTION_RPLTARGET 
RPLOPTION_PrefixInformation 

Definition at line 39 of file RPL_Message.h.

◆ RPL_CTRL_MSG_CODE

Enumerator
DODAG_Information_Solicitation 
DODAG_Information_Object 
Destination_Advertisement_Object 
Destination_Advertisement_Object_Acknowledgment 
Secure_DODAG_Information_Solicitation 
Secure_DODAG_Information_Object 
Secure_Destination_Advertisement_Object 
Secure_Destination_Advertisement_Object_Acknowledgment 
Consistency_Check 

Definition at line 22 of file RPL_Message.h.