validation.h File Reference

RPL control message validation functions. More...

Detailed Description

Author
Cenk Gündoğan mail@.nosp@m.cgun.nosp@m.dogan.nosp@m..de

Definition in file validation.h.

#include "net/gnrc/rpl/structs.h"
#include "net/gnrc/icmpv6.h"
#include "debug.h"
+ Include dependency graph for validation.h:

Go to the source code of this file.

#define ENABLE_DEBUG   (0)
 
static bool gnrc_rpl_validation_DIS (gnrc_rpl_dis_t *dis, uint16_t len)
 Checks validity of DIS control messages. More...
 
bool gnrc_rpl_validation_options (int msg_type, gnrc_rpl_instance_t *inst, gnrc_rpl_opt_t *opt, uint16_t len)
 Checks validity of control message options. More...
 
static bool gnrc_rpl_validation_DIO (gnrc_rpl_dio_t *dio, uint16_t len)
 Checks validity of DIO control messages. More...
 
static bool gnrc_rpl_validation_DAO (gnrc_rpl_dao_t *dao, uint16_t len)
 Checks validity of DAO control messages. More...
 
static bool gnrc_rpl_validation_DAO_ACK (gnrc_rpl_dao_ack_t *dao_ack, uint16_t len)
 Checks validity of DAO-ACK control messages. More...
 

Function Documentation

static bool gnrc_rpl_validation_DAO ( gnrc_rpl_dao_t dao,
uint16_t  len 
)
inlinestatic
Parameters
[in]daoThe DAO control message
[in]lenLength of the DAO control message
Returns
true, if dao is valid
false, otherwise

Definition at line 99 of file validation.h.

static bool gnrc_rpl_validation_DAO_ACK ( gnrc_rpl_dao_ack_t dao_ack,
uint16_t  len 
)
inlinestatic
Parameters
[in]dao_ackThe DAO-ACK control message
[in]lenLength of the DAO-ACK control message
Returns
true, if dao_ack is valid
false, otherwise

Definition at line 125 of file validation.h.

static bool gnrc_rpl_validation_DIO ( gnrc_rpl_dio_t dio,
uint16_t  len 
)
inlinestatic
Parameters
[in]dioThe DIO control message
[in]lenLength of the DIO control message
Returns
true, if dio is valid
false, otherwise

Definition at line 77 of file validation.h.

static bool gnrc_rpl_validation_DIS ( gnrc_rpl_dis_t dis,
uint16_t  len 
)
inlinestatic
Parameters
[in]disThe DIS control message
[in]lenLength of the DIS control message
Returns
true, if dis is valid
false, otherwise

Definition at line 41 of file validation.h.

bool gnrc_rpl_validation_options ( int  msg_type,
gnrc_rpl_instance_t inst,
gnrc_rpl_opt_t opt,
uint16_t  len 
)
Parameters
[in]msg_typeType of the control message
[in]instThe RPL instance
[in]optOptions of the control message
[in]lenLength of the options
Returns
true, if opt is valid
false, otherwise