validation.h¶
RPL control message validation functions.
-
ENABLE_DEBUG¶ 1
(0)
-
bool
gnrc_rpl_validation_DIS(gnrc_rpl_dis_t * dis, uint16_t len)¶ Checks validity of DIS control messages.
Parameters
dis: The DIS control message len: Length of the DIS control message Return values
- true, if
disis valid - false, otherwise
- true, if
-
bool
gnrc_rpl_validation_options(int msg_type,structs.h::gnrc_rpl_instance_t* inst, gnrc_rpl_opt_t * opt, uint16_t len)¶ Checks validity of control message options.
Parameters
msg_type: Type of the control message inst: The RPL instance opt: Options of the control message len: Length of the options Return values
- true, if
optis valid - false, otherwise
- true, if
-
bool
gnrc_rpl_validation_DIO(gnrc_rpl_dio_t * dio, uint16_t len)¶ Checks validity of DIO control messages.
Parameters
dio: The DIO control message len: Length of the DIO control message Return values
- true, if
diois valid - false, otherwise
- true, if
-
bool
gnrc_rpl_validation_DAO(gnrc_rpl_dao_t * dao, uint16_t len)¶ Checks validity of DAO control messages.
Parameters
dao: The DAO control message len: Length of the DAO control message Return values
- true, if
daois valid - false, otherwise
- true, if
-
bool
gnrc_rpl_validation_DAO_ACK(gnrc_rpl_dao_ack_t * dao_ack, uint16_t len, ipv6_addr_t * dst)¶ Checks validity of DAO-ACK control messages.
Parameters
dao_ack: The DAO-ACK control message len: Length of the DAO-ACK control message dst: Pointer to the destination address of the IPv6 packet. Return values
- true, if
dao_ackis valid - false, otherwise
- true, if