Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
2366e013
Commit
2366e013
authored
8 years ago
by
Cenk Gündoğan
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #5854 from smlng/pr/gnrc_rpl/expose_config_params
gnrc_rpl: adapt default parameters and expose to Makefile
parents
b2b42c7b
0784b9a8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/include/net/gnrc/rpl.h
+34
-10
34 additions, 10 deletions
sys/include/net/gnrc/rpl.h
with
34 additions
and
10 deletions
sys/include/net/gnrc/rpl.h
+
34
−
10
View file @
2366e013
...
@@ -180,12 +180,16 @@ extern "C" {
...
@@ -180,12 +180,16 @@ extern "C" {
* RFC 6550, section 17
* RFC 6550, section 17
* </a>
* </a>
*/
*/
#ifndef GNRC_RPL_DEFAULT_MIN_HOP_RANK_INCREASE
#define GNRC_RPL_DEFAULT_MIN_HOP_RANK_INCREASE (256)
#define GNRC_RPL_DEFAULT_MIN_HOP_RANK_INCREASE (256)
#endif
/**
/**
* @brief Maximum rank increase
* @brief Maximum rank increase
*/
*/
#ifndef GNRC_RPL_DEFAULT_MAX_RANK_INCREASE
#define GNRC_RPL_DEFAULT_MAX_RANK_INCREASE (0)
#define GNRC_RPL_DEFAULT_MAX_RANK_INCREASE (0)
#endif
/**
/**
* @brief Number of implemented Objective Functions
* @brief Number of implemented Objective Functions
...
@@ -200,7 +204,9 @@ extern "C" {
...
@@ -200,7 +204,9 @@ extern "C" {
/**
/**
* @brief Default Instance ID
* @brief Default Instance ID
*/
*/
#ifndef GNRC_RPL_DEFAULT_INSTANCE
#define GNRC_RPL_DEFAULT_INSTANCE (0)
#define GNRC_RPL_DEFAULT_INSTANCE (0)
#endif
/**
/**
* @name RPL Mode of Operations
* @name RPL Mode of Operations
...
@@ -210,9 +216,10 @@ extern "C" {
...
@@ -210,9 +216,10 @@ extern "C" {
#define GNRC_RPL_MOP_NON_STORING_MODE (0x01)
#define GNRC_RPL_MOP_NON_STORING_MODE (0x01)
#define GNRC_RPL_MOP_STORING_MODE_NO_MC (0x02)
#define GNRC_RPL_MOP_STORING_MODE_NO_MC (0x02)
#define GNRC_RPL_MOP_STORING_MODE_MC (0x03)
#define GNRC_RPL_MOP_STORING_MODE_MC (0x03)
/** default MOP set on compile time */
/** default MOP set on compile time */
#ifndef GNRC_RPL_DEFAULT_MOP
#ifndef GNRC_RPL_DEFAULT_MOP
#
define GNRC_RPL_DEFAULT_MOP GNRC_RPL_MOP_STORING_MODE_NO_MC
#define GNRC_RPL_DEFAULT_MOP GNRC_RPL_MOP_STORING_MODE_NO_MC
#endif
#endif
/** @} */
/** @} */
...
@@ -277,17 +284,19 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
...
@@ -277,17 +284,19 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
/**
/**
* @name Default parent and route entry lifetime
* @name Default parent and route entry lifetime
* default lifetime will be multiplied by the lifetime unit to obtain the resulting lifetime
* default lifetime will be multiplied by the lifetime unit to obtain the resulting lifetime
* @see <a href="https://tools.ietf.org/html/rfc6550#section-6.7.6">
DODAG Configuration
</a>
* @{
* @{
*/
*/
#define GNRC_RPL_DEFAULT_LIFETIME (60)
#ifndef GNRC_RPL_DEFAULT_LIFETIME
#define GNRC_RPL_LIFETIME_UNIT (2)
#define GNRC_RPL_DEFAULT_LIFETIME (5)
#endif
#ifndef GNRC_RPL_LIFETIME_UNIT
#define GNRC_RPL_LIFETIME_UNIT (60)
#endif
/** @} */
/** @} */
/**
* @brief Interval of the void _update_lifetime() function
*/
#define GNRC_RPL_LIFETIME_STEP (2)
/**
/**
* @brief Default prefix length for the DODAG id
* @brief Default prefix length for the DODAG id
*/
*/
...
@@ -295,6 +304,10 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
...
@@ -295,6 +304,10 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
/**
/**
* @brief Default prefix valid and preferred time for the DODAG id
* @brief Default prefix valid and preferred time for the DODAG id
* @note Currently not used, but needed for RIOs
* @see <a href="https://tools.ietf.org/html/rfc6550#section-6.7.5">
* Route Information
* </a>
*/
*/
#define GNRC_RPL_DEFAULT_PREFIX_LIFETIME (0xFFFFFFFF)
#define GNRC_RPL_DEFAULT_PREFIX_LIFETIME (0xFFFFFFFF)
...
@@ -308,12 +321,23 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
...
@@ -308,12 +321,23 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
/**
/**
* @name Parameters used for DAO handling
* @name Parameters used for DAO handling
* @see <a href="https://tools.ietf.org/html/rfc6550#section-17">
RPL Constants and Variables
</a>
* @{
* @{
*/
*/
#ifndef GNRC_RPL_DAO_SEND_RETRIES
#define GNRC_RPL_DAO_SEND_RETRIES (4)
#define GNRC_RPL_DAO_SEND_RETRIES (4)
#endif
#ifndef GNRC_RPL_DEFAULT_WAIT_FOR_DAO_ACK
#define GNRC_RPL_DEFAULT_WAIT_FOR_DAO_ACK (3)
#define GNRC_RPL_DEFAULT_WAIT_FOR_DAO_ACK (3)
#endif
#ifndef GNRC_RPL_REGULAR_DAO_INTERVAL
#define GNRC_RPL_REGULAR_DAO_INTERVAL (60)
#define GNRC_RPL_REGULAR_DAO_INTERVAL (60)
#define GNRC_RPL_DEFAULT_DAO_DELAY (5)
#endif
#ifndef GNRC_RPL_DEFAULT_DAO_DELAY
#define GNRC_RPL_DEFAULT_DAO_DELAY (1)
#endif
/** @} */
/** @} */
/**
/**
...
@@ -353,7 +377,7 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
...
@@ -353,7 +377,7 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
/**
/**
* @brief Rank of the root node
* @brief Rank of the root node
*/
*/
#define GNRC_RPL_ROOT_RANK (
256
)
#define GNRC_RPL_ROOT_RANK (
GNRC_RPL_DEFAULT_MIN_HOP_RANK_INCREASE
)
/**
/**
* @brief DIS ICMPv6 code
* @brief DIS ICMPv6 code
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment