net/gnrc/sixlowpan/frag/vrb:Move timeout macro to 'CONFIG_' namespace
This commit is contained in:
parent
cc6bee4986
commit
55282a1b1d
@ -176,9 +176,9 @@ extern "C" {
|
|||||||
* @note Only applicable with
|
* @note Only applicable with
|
||||||
* [gnrc_sixlowpan_frag_vrb](@ref net_gnrc_sixlowpan_frag_vrb) module.
|
* [gnrc_sixlowpan_frag_vrb](@ref net_gnrc_sixlowpan_frag_vrb) module.
|
||||||
*/
|
*/
|
||||||
#ifndef GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US
|
#ifndef CONFIG_GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US
|
||||||
#define GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US (GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_US)
|
#define CONFIG_GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US (CONFIG_GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_US)
|
||||||
#endif /* GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US */
|
#endif /* CONFIG_GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Selective fragment recovery configuration
|
* @name Selective fragment recovery configuration
|
||||||
|
|||||||
@ -192,7 +192,7 @@ void gnrc_sixlowpan_frag_vrb_gc(void)
|
|||||||
|
|
||||||
for (unsigned i = 0; i < CONFIG_GNRC_SIXLOWPAN_FRAG_VRB_SIZE; i++) {
|
for (unsigned i = 0; i < CONFIG_GNRC_SIXLOWPAN_FRAG_VRB_SIZE; i++) {
|
||||||
if (!gnrc_sixlowpan_frag_vrb_entry_empty(&_vrb[i]) &&
|
if (!gnrc_sixlowpan_frag_vrb_entry_empty(&_vrb[i]) &&
|
||||||
(now_usec - _vrb[i].super.arrival) > GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US) {
|
(now_usec - _vrb[i].super.arrival) > CONFIG_GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US) {
|
||||||
DEBUG("6lo vrb: entry (%s, ",
|
DEBUG("6lo vrb: entry (%s, ",
|
||||||
gnrc_netif_addr_to_str(_vrb[i].super.src,
|
gnrc_netif_addr_to_str(_vrb[i].super.src,
|
||||||
_vrb[i].super.src_len,
|
_vrb[i].super.src_len,
|
||||||
|
|||||||
@ -161,7 +161,7 @@ static void test_vrb_gc(void)
|
|||||||
gnrc_sixlowpan_frag_rb_base_t base = _base;
|
gnrc_sixlowpan_frag_rb_base_t base = _base;
|
||||||
gnrc_sixlowpan_frag_vrb_t *res;
|
gnrc_sixlowpan_frag_vrb_t *res;
|
||||||
|
|
||||||
base.arrival = xtimer_now_usec() - GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US - 1000;
|
base.arrival = xtimer_now_usec() - CONFIG_GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US - 1000;
|
||||||
TEST_ASSERT_NOT_NULL((res = gnrc_sixlowpan_frag_vrb_add(&base,
|
TEST_ASSERT_NOT_NULL((res = gnrc_sixlowpan_frag_vrb_add(&base,
|
||||||
&_dummy_netif,
|
&_dummy_netif,
|
||||||
_out_dst,
|
_out_dst,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user