From 3274a6b83e4fa09b200b15cdb3f8fba2a342170d Mon Sep 17 00:00:00 2001 From: Akshai M Date: Tue, 19 May 2020 18:23:28 +0530 Subject: [PATCH] gnrc/gomach : Move GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE to 'CONFIG_' --- sys/include/net/gnrc/gomach/gomach.h | 4 ++-- sys/net/gnrc/link_layer/gomach/gomach.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/include/net/gnrc/gomach/gomach.h b/sys/include/net/gnrc/gomach/gomach.h index 512e52d902..24df2c2694 100644 --- a/sys/include/net/gnrc/gomach/gomach.h +++ b/sys/include/net/gnrc/gomach/gomach.h @@ -291,8 +291,8 @@ extern "C" { * check-duplicate-packet data unit's life time in cycle count. Once expired, * the related data unit will be reset. This macro maybe removed in the future. */ -#ifndef GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE -#define GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE (30U) +#ifndef CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE +#define CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE (30U) #endif /** diff --git a/sys/net/gnrc/link_layer/gomach/gomach.c b/sys/net/gnrc/link_layer/gomach/gomach.c index d20615d567..37432618e5 100644 --- a/sys/net/gnrc/link_layer/gomach/gomach.c +++ b/sys/net/gnrc/link_layer/gomach/gomach.c @@ -1464,7 +1464,7 @@ static void gomach_listen_init(gnrc_netif_t *netif) if (netif->mac.rx.check_dup_pkt.last_nodes[i].node_addr.len != 0) { netif->mac.rx.check_dup_pkt.last_nodes[i].life_cycle++; if (netif->mac.rx.check_dup_pkt.last_nodes[i].life_cycle >= - GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE) { + CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE) { netif->mac.rx.check_dup_pkt.last_nodes[i].node_addr.len = 0; netif->mac.rx.check_dup_pkt.last_nodes[i].node_addr.addr[0] = 0; netif->mac.rx.check_dup_pkt.last_nodes[i].node_addr.addr[1] = 0;