mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc_sixlowpan_frag: expose reassembly buffer configuration
Both values are not standardized so there is no sense keeping these values not configurable
This commit is contained in:
parent
ba3c099f16
commit
1550390adb
@ -21,6 +21,8 @@
|
||||
#ifndef NET_GNRC_SIXLOWPAN_CONFIG_H
|
||||
#define NET_GNRC_SIXLOWPAN_CONFIG_H
|
||||
|
||||
#include "timex.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -46,6 +48,26 @@ extern "C" {
|
||||
#define GNRC_SIXLOWPAN_MSG_QUEUE_SIZE (8U)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Size of the reassembly buffer
|
||||
*
|
||||
* @note Only applicable with
|
||||
* [gnrc_sixlowpan_frag](@ref net_gnrc_sixlowpan_frag) module
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_FRAG_RBUF_SIZE
|
||||
#define GNRC_SIXLOWPAN_FRAG_RBUF_SIZE (4U)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Timeout for reassembly buffer entries in microseconds
|
||||
*
|
||||
* @note Only applicable with
|
||||
* [gnrc_sixlowpan_frag](@ref net_gnrc_sixlowpan_frag) module
|
||||
*/
|
||||
#ifndef GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_MS
|
||||
#define GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_MS (3U * US_PER_SEC)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Registration lifetime in minutes for the address registration option
|
||||
*
|
||||
|
@ -25,14 +25,20 @@
|
||||
#include "net/gnrc/netif/hdr.h"
|
||||
#include "net/gnrc/pkt.h"
|
||||
|
||||
#include "net/gnrc/sixlowpan/config.h"
|
||||
#include "net/gnrc/sixlowpan/frag.h"
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define RBUF_SIZE (4U) /**< size of the reassembly buffer */
|
||||
#define RBUF_TIMEOUT (3U * US_PER_SEC) /**< timeout for reassembly in microseconds */
|
||||
/**
|
||||
* @name Legacy defines
|
||||
* @{
|
||||
*/
|
||||
#define RBUF_SIZE (GNRC_SIXLOWPAN_FRAG_RBUF_SIZE)
|
||||
#define RBUF_TIMEOUT (GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_MS)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief Fragment intervals to identify limits of fragments.
|
||||
|
Loading…
Reference in New Issue
Block a user