mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc/rpl: Move GNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN to 'CONFIG_'
This commit is contained in:
parent
dfa722c519
commit
02b10105c1
@ -38,7 +38,7 @@ DEVELHELP ?= 1
|
|||||||
|
|
||||||
# Comment this out to join RPL DODAGs even if DIOs do not contain
|
# Comment this out to join RPL DODAGs even if DIOs do not contain
|
||||||
# DODAG Configuration Options (see the doc for more info)
|
# DODAG Configuration Options (see the doc for more info)
|
||||||
# CFLAGS += -DGNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN
|
# CFLAGS += -DCONFIG_GNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN
|
||||||
|
|
||||||
# Change this to 0 show compiler invocation lines by default:
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
QUIET ?= 1
|
QUIET ?= 1
|
||||||
|
@ -44,7 +44,7 @@ DEVELHELP ?= 1
|
|||||||
|
|
||||||
# Uncomment this to join RPL DODAGs even if DIOs do not contain
|
# Uncomment this to join RPL DODAGs even if DIOs do not contain
|
||||||
# DODAG Configuration Options (see the doc for more info)
|
# DODAG Configuration Options (see the doc for more info)
|
||||||
# CFLAGS += -DGNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN
|
# CFLAGS += -DCONFIG_GNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN
|
||||||
|
|
||||||
# Change this to 0 show compiler invocation lines by default:
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
QUIET ?= 1
|
QUIET ?= 1
|
||||||
|
@ -53,7 +53,7 @@ DEVELHELP ?= 1
|
|||||||
|
|
||||||
# Uncomment this to join RPL DODAGs even if DIOs do not contain
|
# Uncomment this to join RPL DODAGs even if DIOs do not contain
|
||||||
# DODAG Configuration Options (see the doc for more info)
|
# DODAG Configuration Options (see the doc for more info)
|
||||||
# CFLAGS += -DGNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN
|
# CFLAGS += -DCONFIG_GNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN
|
||||||
|
|
||||||
# Change this to 0 show compiler invocation lines by default:
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
QUIET ?= 1
|
QUIET ?= 1
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
* The standard behaviour is to request a DODAG_CONF and join
|
* The standard behaviour is to request a DODAG_CONF and join
|
||||||
* only a DODAG once a DODAG_CONF is received.
|
* only a DODAG once a DODAG_CONF is received.
|
||||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.mk}
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.mk}
|
||||||
* CFLAGS += -DGNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN
|
* CFLAGS += -DCONFIG_GNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN
|
||||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
*
|
*
|
||||||
* - Set interface for auto-initialization if more than one
|
* - Set interface for auto-initialization if more than one
|
||||||
|
@ -790,15 +790,16 @@ void gnrc_rpl_recv_DIO(gnrc_rpl_dio_t *dio, kernel_pid_t iface, ipv6_addr_t *src
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!(included_opts & (((uint32_t) 1) << GNRC_RPL_OPT_DODAG_CONF))) {
|
if (!(included_opts & (((uint32_t) 1) << GNRC_RPL_OPT_DODAG_CONF))) {
|
||||||
#ifndef GNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN
|
if (!IS_ACTIVE(CONFIG_GNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN)) {
|
||||||
DEBUG("RPL: DIO without DODAG_CONF option - remove DODAG and request new DIO\n");
|
DEBUG("RPL: DIO without DODAG_CONF option - remove DODAG and request new DIO\n");
|
||||||
gnrc_rpl_instance_remove(inst);
|
gnrc_rpl_instance_remove(inst);
|
||||||
gnrc_rpl_send_DIS(NULL, src, NULL, 0);
|
gnrc_rpl_send_DIS(NULL, src, NULL, 0);
|
||||||
return;
|
return;
|
||||||
#else
|
}
|
||||||
DEBUG("RPL: DIO without DODAG_CONF option - use default trickle parameters\n");
|
else {
|
||||||
gnrc_rpl_send_DIS(NULL, src, NULL, 0);
|
DEBUG("RPL: DIO without DODAG_CONF option - use default trickle parameters\n");
|
||||||
#endif
|
gnrc_rpl_send_DIS(NULL, src, NULL, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if there was no address created manually or by a PIO on the interface,
|
/* if there was no address created manually or by a PIO on the interface,
|
||||||
|
Loading…
Reference in New Issue
Block a user