Skip to content

Commit

Permalink
gnrc/nib/conf.h: Align configuration values
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrolanzieri committed Mar 30, 2020
1 parent 41a0038 commit 3df65ce
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions sys/include/net/gnrc/ipv6/nib/conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,52 +30,52 @@ extern "C" {
/* some pseudo-module based configuration, doc: see below */
#ifdef MODULE_GNRC_IPV6_NIB_6LBR
#ifndef CONFIG_GNRC_IPV6_NIB_6LBR
#define CONFIG_GNRC_IPV6_NIB_6LBR 1
#define CONFIG_GNRC_IPV6_NIB_6LBR 1
#endif
#ifndef CONFIG_GNRC_IPV6_NIB_SLAAC
#define CONFIG_GNRC_IPV6_NIB_SLAAC 1
#define CONFIG_GNRC_IPV6_NIB_SLAAC 1
#endif
#ifndef CONFIG_GNRC_IPV6_NIB_NUMOF
#define CONFIG_GNRC_IPV6_NIB_NUMOF (16)
#define CONFIG_GNRC_IPV6_NIB_NUMOF (16)
#endif
#endif

#ifdef MODULE_GNRC_IPV6_NIB_6LR
#ifndef CONFIG_GNRC_IPV6_NIB_6LR
#define CONFIG_GNRC_IPV6_NIB_6LR 1
#define CONFIG_GNRC_IPV6_NIB_6LR 1
#endif
#ifndef CONFIG_GNRC_IPV6_NIB_SLAAC
#define CONFIG_GNRC_IPV6_NIB_SLAAC 0
#define CONFIG_GNRC_IPV6_NIB_SLAAC 0
#endif
#endif

#ifdef MODULE_GNRC_IPV6_NIB_6LN
#ifndef CONFIG_GNRC_IPV6_NIB_6LN
#define CONFIG_GNRC_IPV6_NIB_6LN 1
#define CONFIG_GNRC_IPV6_NIB_6LN 1
#endif
#ifndef CONFIG_GNRC_IPV6_NIB_SLAAC
#define CONFIG_GNRC_IPV6_NIB_SLAAC 0
#define CONFIG_GNRC_IPV6_NIB_SLAAC 0
#endif
#ifndef CONFIG_GNRC_IPV6_NIB_QUEUE_PKT
#define CONFIG_GNRC_IPV6_NIB_QUEUE_PKT 0
#define CONFIG_GNRC_IPV6_NIB_QUEUE_PKT 0
#endif
#if !CONFIG_GNRC_IPV6_NIB_6LR
# ifndef CONFIG_GNRC_IPV6_NIB_ARSM
# define CONFIG_GNRC_IPV6_NIB_ARSM 0
# define CONFIG_GNRC_IPV6_NIB_ARSM 0
# endif
# ifndef CONFIG_GNRC_IPV6_NIB_NUMOF
/* only needs to store default router */
# define CONFIG_GNRC_IPV6_NIB_NUMOF (1)
# define CONFIG_GNRC_IPV6_NIB_NUMOF (1)
# endif
#endif
#endif

#ifdef MODULE_GNRC_IPV6_NIB_ROUTER
#define CONFIG_GNRC_IPV6_NIB_ROUTER 1
#define CONFIG_GNRC_IPV6_NIB_ROUTER 1
#endif

#ifdef MODULE_GNRC_IPV6_NIB_DNS
#define CONFIG_GNRC_IPV6_NIB_DNS 1
#define CONFIG_GNRC_IPV6_NIB_DNS 1
#endif

/**
Expand All @@ -87,17 +87,17 @@ extern "C" {
* @brief enable features for 6Lo border router
*/
#ifndef CONFIG_GNRC_IPV6_NIB_6LBR
#define CONFIG_GNRC_IPV6_NIB_6LBR 0
#define CONFIG_GNRC_IPV6_NIB_6LBR 0
#endif

/**
* @brief enable features for 6Lo router
*/
#ifndef CONFIG_GNRC_IPV6_NIB_6LR
#if CONFIG_GNRC_IPV6_NIB_6LBR
#define CONFIG_GNRC_IPV6_NIB_6LR 1
#define CONFIG_GNRC_IPV6_NIB_6LR 1
#else
#define CONFIG_GNRC_IPV6_NIB_6LR 0
#define CONFIG_GNRC_IPV6_NIB_6LR 0
#endif
#endif

Expand All @@ -106,9 +106,9 @@ extern "C" {
*/
#ifndef CONFIG_GNRC_IPV6_NIB_6LN
#if CONFIG_GNRC_IPV6_NIB_6LR
#define CONFIG_GNRC_IPV6_NIB_6LN 1
#define CONFIG_GNRC_IPV6_NIB_6LN 1
#else
#define CONFIG_GNRC_IPV6_NIB_6LN 0
#define CONFIG_GNRC_IPV6_NIB_6LN 0
#endif
#endif

Expand All @@ -117,9 +117,9 @@ extern "C" {
*/
#ifndef CONFIG_GNRC_IPV6_NIB_ROUTER
#if CONFIG_GNRC_IPV6_NIB_6LR
#define CONFIG_GNRC_IPV6_NIB_ROUTER 1
#define CONFIG_GNRC_IPV6_NIB_ROUTER 1
#else
#define CONFIG_GNRC_IPV6_NIB_ROUTER 0
#define CONFIG_GNRC_IPV6_NIB_ROUTER 0
#endif
#endif

Expand All @@ -129,27 +129,27 @@ extern "C" {
#ifndef CONFIG_GNRC_IPV6_NIB_ADV_ROUTER
#if CONFIG_GNRC_IPV6_NIB_ROUTER && \
(!CONFIG_GNRC_IPV6_NIB_6LR || CONFIG_GNRC_IPV6_NIB_6LBR)
#define CONFIG_GNRC_IPV6_NIB_ADV_ROUTER 1
#define CONFIG_GNRC_IPV6_NIB_ADV_ROUTER 1
#else
#define CONFIG_GNRC_IPV6_NIB_ADV_ROUTER 0
#define CONFIG_GNRC_IPV6_NIB_ADV_ROUTER 0
#endif
#endif

/**
* @brief (de-)activate NDP address resolution state-machine
*/
#ifndef CONFIG_GNRC_IPV6_NIB_ARSM
#define CONFIG_GNRC_IPV6_NIB_ARSM 1
#define CONFIG_GNRC_IPV6_NIB_ARSM 1
#endif

/**
* @brief queue packets for address resolution
*/
#ifndef CONFIG_GNRC_IPV6_NIB_QUEUE_PKT
#if CONFIG_GNRC_IPV6_NIB_6LN
#define CONFIG_GNRC_IPV6_NIB_QUEUE_PKT 0
#define CONFIG_GNRC_IPV6_NIB_QUEUE_PKT 0
#else
#define CONFIG_GNRC_IPV6_NIB_QUEUE_PKT 1
#define CONFIG_GNRC_IPV6_NIB_QUEUE_PKT 1
#endif
#endif

Expand All @@ -160,24 +160,24 @@ extern "C" {
* @see [RFC 4862](https://tools.ietf.org/html/rfc4862)
*/
#ifndef CONFIG_GNRC_IPV6_NIB_SLAAC
#define CONFIG_GNRC_IPV6_NIB_SLAAC 1
#define CONFIG_GNRC_IPV6_NIB_SLAAC 1
#endif

/**
* @brief handle Redirect Messages
*/
#ifndef CONFIG_GNRC_IPV6_NIB_REDIRECT
#define CONFIG_GNRC_IPV6_NIB_REDIRECT 0
#define CONFIG_GNRC_IPV6_NIB_REDIRECT 0
#endif

/**
* @brief (de-)activate destination cache
*/
#ifndef CONFIG_GNRC_IPV6_NIB_DC
#if CONFIG_GNRC_IPV6_NIB_REDIRECT
#define CONFIG_GNRC_IPV6_NIB_DC 1
#define CONFIG_GNRC_IPV6_NIB_DC 1
#else
#define CONFIG_GNRC_IPV6_NIB_DC 0
#define CONFIG_GNRC_IPV6_NIB_DC 0
#endif
#endif

Expand All @@ -187,7 +187,7 @@ extern "C" {
* @see [RFC 8106](https://tools.ietf.org/html/rfc8106)
*/
#ifndef CONFIG_GNRC_IPV6_NIB_DNS
#define CONFIG_GNRC_IPV6_NIB_DNS 0
#define CONFIG_GNRC_IPV6_NIB_DNS 0
#endif

/**
Expand All @@ -197,9 +197,9 @@ extern "C" {
*/
#ifndef CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C
#if CONFIG_GNRC_IPV6_NIB_6LR
#define CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C 1
#define CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C 1
#else
#define CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C 0
#define CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C 0
#endif
#endif

Expand All @@ -209,7 +209,7 @@ extern "C" {
* @see [RFC 6775, section 8.2](https://tools.ietf.org/html/rfc6775#section-8.2)
*/
#ifndef CONFIG_GNRC_IPV6_NIB_MULTIHOP_DAD
#define CONFIG_GNRC_IPV6_NIB_MULTIHOP_DAD 0
#define CONFIG_GNRC_IPV6_NIB_MULTIHOP_DAD 0
#endif
/** @} */

Expand All @@ -219,7 +219,7 @@ extern "C" {
* @see [RFC 4861, section 6.3.4](https://tools.ietf.org/html/rfc4861#section-6.3.4)
*/
#ifndef CONFIG_GNRC_IPV6_NIB_REACH_TIME_RESET
#define CONFIG_GNRC_IPV6_NIB_REACH_TIME_RESET (7200000U)
#define CONFIG_GNRC_IPV6_NIB_REACH_TIME_RESET (7200000U)
#endif

/**
Expand All @@ -228,7 +228,7 @@ extern "C" {
* @warning Only do this if you know what you're doing
*/
#ifndef CONFIG_GNRC_IPV6_NIB_NO_RTR_SOL
#define CONFIG_GNRC_IPV6_NIB_NO_RTR_SOL 0
#define CONFIG_GNRC_IPV6_NIB_NO_RTR_SOL 0
#endif

/**
Expand Down

0 comments on commit 3df65ce

Please sign in to comment.