mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc_sixlowpan_config: rename SRF parameters for Kconfig
This commit is contained in:
parent
0af8a1600a
commit
82c4d263e8
@ -171,8 +171,8 @@ extern "C" {
|
||||
/**
|
||||
* @brief Default minimum value for fragment size (MinFragmentSize)
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_SFR_MIN_FRAG_SIZE
|
||||
#define GNRC_SIXLOWPAN_SFR_MIN_FRAG_SIZE (96U)
|
||||
#ifndef CONFIG_GNRC_SIXLOWPAN_SFR_MIN_FRAG_SIZE
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_MIN_FRAG_SIZE 96U
|
||||
#endif
|
||||
|
||||
/**
|
||||
@ -182,32 +182,37 @@ extern "C" {
|
||||
* the chances of buffer bloat and transmission loss. The value must be less
|
||||
* than 512 if the unit is defined for the PHY layer is the octet.
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_SFR_MAX_FRAG_SIZE
|
||||
#define GNRC_SIXLOWPAN_SFR_MAX_FRAG_SIZE (112U)
|
||||
#ifndef CONFIG_GNRC_SIXLOWPAN_SFR_MAX_FRAG_SIZE
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_MAX_FRAG_SIZE 112U
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Default value for fragment size that the sender should use to start
|
||||
* with (OptFragmentSize)
|
||||
*
|
||||
* @pre Must be inclusively between
|
||||
* @ref CONFIG_GNRC_SIXLOWPAN_SFR_MIN_FRAG_SIZE and
|
||||
* @ref CONFIG_GNRC_SIXLOWPAN_SFR_MAX_FRAG_SIZE
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_SFR_OPT_FRAG_SIZE
|
||||
#define GNRC_SIXLOWPAN_SFR_OPT_FRAG_SIZE (GNRC_SIXLOWPAN_SFR_MAX_FRAG_SIZE)
|
||||
#ifndef CONFIG_GNRC_SIXLOWPAN_SFR_OPT_FRAG_SIZE
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_OPT_FRAG_SIZE CONFIG_GNRC_SIXLOWPAN_SFR_MAX_FRAG_SIZE
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Indicates whether the sender should react to ECN (UseECN)
|
||||
*
|
||||
* When the sender reacts to ECN its window size will vary between @ref
|
||||
* GNRC_SIXLOWPAN_SFR_MIN_WIN_SIZE and @ref GNRC_SIXLOWPAN_SFR_MAX_WIN_SIZE.
|
||||
* When the sender reacts to Explicit Congestion Notification (ECN) its window
|
||||
* size will vary between @ref CONFIG_GNRC_SIXLOWPAN_SFR_MIN_WIN_SIZE and @ref
|
||||
* CONFIG_GNRC_SIXLOWPAN_SFR_MAX_WIN_SIZE.
|
||||
*/
|
||||
#define GNRC_SIXLOWPAN_SFR_USE_ECN (0U)
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_USE_ECN 0U
|
||||
|
||||
/**
|
||||
* @brief Default minimum value of window size that the sender can use
|
||||
* (MinWindowSize)
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_SFR_MIN_WIN_SIZE
|
||||
#define GNRC_SIXLOWPAN_SFR_MIN_WIN_SIZE (1U)
|
||||
#ifndef CONFIG_GNRC_SIXLOWPAN_SFR_MIN_WIN_SIZE
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_MIN_WIN_SIZE 1U
|
||||
#endif
|
||||
|
||||
/**
|
||||
@ -216,16 +221,20 @@ extern "C" {
|
||||
*
|
||||
* @warning **Must** be lesser than 32.
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_SFR_MAX_WIN_SIZE
|
||||
#define GNRC_SIXLOWPAN_SFR_MAX_WIN_SIZE (16U)
|
||||
#ifndef CONFIG_GNRC_SIXLOWPAN_SFR_MAX_WIN_SIZE
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_MAX_WIN_SIZE 16U
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Default value of window size that the sender should start with
|
||||
* (OptWindowSize)
|
||||
*
|
||||
* @pre Must be inclusively between
|
||||
* @ref CONFIG_GNRC_SIXLOWPAN_SFR_MIN_WIN_SIZE and
|
||||
* @ref CONFIG_GNRC_SIXLOWPAN_SFR_MAX_WIN_SIZE
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_SFR_OPT_WIN_SIZE
|
||||
#define GNRC_SIXLOWPAN_SFR_OPT_WIN_SIZE (16U)
|
||||
#ifndef CONFIG_GNRC_SIXLOWPAN_SFR_OPT_WIN_SIZE
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_OPT_WIN_SIZE 16U
|
||||
#endif
|
||||
|
||||
/**
|
||||
@ -240,51 +249,53 @@ extern "C" {
|
||||
* ratio of air and memory in intermediate nodes that a particular datagram will
|
||||
* use.
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_SFR_INTER_FRAME_GAP_US
|
||||
#define GNRC_SIXLOWPAN_SFR_INTER_FRAME_GAP_US (100U)
|
||||
#ifndef CONFIG_GNRC_SIXLOWPAN_SFR_INTER_FRAME_GAP_US
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_INTER_FRAME_GAP_US 100U
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Default minimum amount of time in milliseconds a node should wait
|
||||
* for an RFRAG Acknowledgment before it takes a next action
|
||||
* @brief Minimum RFRAG-ACK timeout in msec before a node takes a next action
|
||||
* (MinARQTimeOut)
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_SFR_MIN_ARQ_TIMEOUT_MS
|
||||
#define GNRC_SIXLOWPAN_SFR_MIN_ARQ_TIMEOUT_MS (350U)
|
||||
#ifndef CONFIG_GNRC_SIXLOWPAN_SFR_MIN_ARQ_TIMEOUT_MS
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_MIN_ARQ_TIMEOUT_MS 350U
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Default maximum amount of time in milliseconds a node should wait
|
||||
* for an RFRAG Acknowledgment before it takes a next action
|
||||
* @brief Maximum RFRAG-ACK timeout in msec before a node takes a next action
|
||||
* (MaxARQTimeOut)
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_SFR_MAX_ARQ_TIMEOUT_MS
|
||||
#define GNRC_SIXLOWPAN_SFR_MAX_ARQ_TIMEOUT_MS (700U)
|
||||
#ifndef CONFIG_GNRC_SIXLOWPAN_SFR_MAX_ARQ_TIMEOUT_MS
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_MAX_ARQ_TIMEOUT_MS 700U
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Default starting point of the value of the amount of time in
|
||||
* milliseconds that a sender should wait for an RFRAG Acknowledgment
|
||||
* before it takes a next action (OptARQTimeOut)
|
||||
* @brief Default RFRAG-ACK timeout in msec before a node takes a next action
|
||||
* (OptARQTimeOut)
|
||||
*
|
||||
* @pre Must be inclusively between
|
||||
* @ref CONFIG_GNRC_SIXLOWPAN_SFR_MIN_ARQ_TIMEOUT_MS and
|
||||
* @ref CONFIG_GNRC_SIXLOWPAN_SFR_MAX_ARQ_TIMEOUT_MS
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_SFR_OPT_ARQ_TIMEOUT_MS
|
||||
#define GNRC_SIXLOWPAN_SFR_OPT_ARQ_TIMEOUT_MS (GNRC_SIXLOWPAN_SFR_MAX_ARQ_TIMEOUT_MS)
|
||||
#ifndef CONFIG_GNRC_SIXLOWPAN_SFR_OPT_ARQ_TIMEOUT_MS
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_OPT_ARQ_TIMEOUT_MS \
|
||||
CONFIG_GNRC_SIXLOWPAN_SFR_MAX_ARQ_TIMEOUT_MS
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief The maximum number of retries for a particular fragment
|
||||
* (MaxFragRetries)
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_SFR_FRAG_RETRIES
|
||||
#define GNRC_SIXLOWPAN_SFR_FRAG_RETRIES (2U)
|
||||
#ifndef CONFIG_GNRC_SIXLOWPAN_SFR_FRAG_RETRIES
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_FRAG_RETRIES 2U
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief The maximum number of retries from scratch for a particular
|
||||
* datagram (MaxDatagramRetries)
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_SFR_DG_RETRIES
|
||||
#define GNRC_SIXLOWPAN_SFR_DG_RETRIES (0U)
|
||||
#ifndef CONFIG_GNRC_SIXLOWPAN_SFR_DG_RETRIES
|
||||
#define CONFIG_GNRC_SIXLOWPAN_SFR_DG_RETRIES 0U
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user