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
fbafcc39
Commit
fbafcc39
authored
8 years ago
by
Sebastian Meiling
Browse files
Options
Downloads
Patches
Plain Diff
gnrc_rpl: modify RPL default parameters in Makefile
parent
8234a002
No related branches found
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
+24
-1
24 additions, 1 deletion
sys/include/net/gnrc/rpl.h
with
24 additions
and
1 deletion
sys/include/net/gnrc/rpl.h
+
24
−
1
View file @
fbafcc39
...
@@ -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
/** @} */
/** @} */
...
@@ -279,8 +286,12 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
...
@@ -279,8 +286,12 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
* 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
* @{
* @{
*/
*/
#ifndef GNRC_RPL_DEFAULT_LIFETIME
#define GNRC_RPL_DEFAULT_LIFETIME (60)
#define GNRC_RPL_DEFAULT_LIFETIME (60)
#endif
#ifndef GNRC_RPL_LIFETIME_UNIT
#define GNRC_RPL_LIFETIME_UNIT (2)
#define GNRC_RPL_LIFETIME_UNIT (2)
#endif
/** @} */
/** @} */
/**
/**
...
@@ -295,6 +306,10 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
...
@@ -295,6 +306,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)
...
@@ -310,10 +325,18 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
...
@@ -310,10 +325,18 @@ 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
* @{
* @{
*/
*/
#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)
#endif
#ifndef GNRC_RPL_DEFAULT_DAO_DELAY
#define GNRC_RPL_DEFAULT_DAO_DELAY (5)
#define GNRC_RPL_DEFAULT_DAO_DELAY (5)
#endif
/** @} */
/** @} */
/**
/**
...
...
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