mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc_rpl: move len macros to header file
This commit is contained in:
parent
a10151d5f0
commit
2f9a37a624
@ -32,6 +32,31 @@ extern "C" {
|
||||
#include "xtimer.h"
|
||||
#include "trickle.h"
|
||||
|
||||
/**
|
||||
* @name Option lengths
|
||||
* @{
|
||||
*/
|
||||
#define GNRC_RPL_OPT_DODAG_CONF_LEN (14)
|
||||
#define GNRC_RPL_OPT_PREFIX_INFO_LEN (30)
|
||||
#define GNRC_RPL_OPT_TARGET_LEN (18)
|
||||
#define GNRC_RPL_OPT_TRANSIT_INFO_LEN (4)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name DAO flag macros
|
||||
* @{
|
||||
*/
|
||||
#define GNRC_RPL_DAO_D_BIT (1 << 6)
|
||||
#define GNRC_RPL_DAO_K_BIT (1 << 7)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name DAO-ACK flag macros
|
||||
* @{
|
||||
*/
|
||||
#define GNRC_RPL_DAO_ACK_D_BIT (1 << 7)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @anchor GNRC_RPL_REQ_DIO_OPTS
|
||||
* @name DIO Options for gnrc_rpl_dodag_t::dio_opts
|
||||
|
@ -40,18 +40,11 @@ static char addr_str[IPV6_ADDR_MAX_STR_LEN];
|
||||
|
||||
#define GNRC_RPL_GROUNDED_SHIFT (7)
|
||||
#define GNRC_RPL_MOP_SHIFT (3)
|
||||
#define GNRC_RPL_OPT_DODAG_CONF_LEN (14)
|
||||
#define GNRC_RPL_OPT_PREFIX_INFO_LEN (30)
|
||||
#define GNRC_RPL_OPT_TARGET_LEN (18)
|
||||
#define GNRC_RPL_OPT_TRANSIT_E_FLAG_SHIFT (7)
|
||||
#define GNRC_RPL_OPT_TRANSIT_E_FLAG (1 << GNRC_RPL_OPT_TRANSIT_E_FLAG_SHIFT)
|
||||
#define GNRC_RPL_OPT_TRANSIT_INFO_LEN (4)
|
||||
#define GNRC_RPL_SHIFTED_MOP_MASK (0x7)
|
||||
#define GNRC_RPL_PRF_MASK (0x7)
|
||||
#define GNRC_RPL_PREFIX_AUTO_ADDRESS_BIT (1 << 6)
|
||||
#define GNRC_RPL_DAO_D_BIT (1 << 6)
|
||||
#define GNRC_RPL_DAO_K_BIT (1 << 7)
|
||||
#define GNRC_RPL_DAO_ACK_D_BIT (1 << 7)
|
||||
|
||||
void gnrc_rpl_send(gnrc_pktsnip_t *pkt, kernel_pid_t iface, ipv6_addr_t *src, ipv6_addr_t *dst,
|
||||
ipv6_addr_t *dodag_id)
|
||||
|
Loading…
Reference in New Issue
Block a user