2016-04-12 11:29:02 +02:00
|
|
|
/*
|
2017-11-30 21:23:44 +01:00
|
|
|
* Copyright (C) 2016 Cenk Gündoğan <cenk.guendogan@haw-hamburg.de>
|
2016-04-12 11:29:02 +02:00
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup net_gnrc_rpl
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief RPL control message validation functions
|
|
|
|
*
|
2017-11-30 21:23:44 +01:00
|
|
|
* @author Cenk Gündoğan <cenk.guendogan@haw-hamburg.de>
|
2016-04-12 11:29:02 +02:00
|
|
|
*/
|
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#ifndef VALIDATION_H
|
|
|
|
#define VALIDATION_H
|
2016-04-12 11:29:02 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "net/gnrc/rpl/structs.h"
|
|
|
|
#include "net/gnrc/icmpv6.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Checks validity of control message options
|
|
|
|
*
|
|
|
|
* @param[in] msg_type Type of the control message
|
|
|
|
* @param[in] inst The RPL instance
|
|
|
|
* @param[in] opt Options of the control message
|
|
|
|
* @param[in] len Length of the options
|
|
|
|
*
|
|
|
|
* @return true, if @p opt is valid
|
|
|
|
* @return false, otherwise
|
|
|
|
*/
|
|
|
|
bool gnrc_rpl_validation_options(int msg_type, gnrc_rpl_instance_t *inst,
|
|
|
|
gnrc_rpl_opt_t *opt, uint16_t len);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#endif /* VALIDATION_H */
|
2016-04-12 11:29:02 +02:00
|
|
|
/** @} */
|