-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #344 from luisan00/feature/rpl_setup
firmware: confs. for a better performance of RPL routing protocol.
- Loading branch information
Showing
1 changed file
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
CFLAGS += -DGNRC_RPL_LIFETIME_UNIT=1 -DGNRC_RPL_DEFAULT_LIFETIME=32 | ||
CFLAGS += -DGNRC_RPL_LIFETIME_UNIT=1 | ||
CFLAGS += -DGNRC_RPL_DEFAULT_LIFETIME=32 | ||
CFLAGS += -DGNRC_RPL_REGULAR_DAO_INTERVAL=13 | ||
CFLAGS += -DGNRC_RPL_DEFAULT_DIO_INTERVAL_DOUBLINGS=13 | ||
|
||
# Currently only supports storing mode. That means, in order to have downwards routes | ||
# to all nodes the storage space within gnrc_ipv6's Neighbor Information Base must be | ||
# big enough to store information for each node. | ||
# | ||
# For a random topology of n nodes, to ensure you can reach every node from the root, | ||
# set CONFIG_GNRC_IPV6_NIB_NUMOF == CONFIG_GNRC_IPV6_NIB_OFFL_NUMOF == n. | ||
# Ref: https://doc.riot-os.org/group__net__gnrc__rpl.html | ||
CFLAGS += -DCONFIG_GNRC_IPV6_NIB_NUMOF=50 | ||
CFLAGS += -DCONFIG_GNRC_IPV6_NIB_OFFL_NUMOF=50 | ||
|
||
# Allow alternative parents, increase num of default routers in the NIB. | ||
# Ref: https://doc.riot-os.org/group__net__gnrc__rpl.html | ||
CFLAGS += -DCONFIG_GNRC_IPV6_NIB_DEFAULT_ROUTER_NUMOF=2 | ||
|
||
include $(RIOTBASE)/Makefile.base |