From 8a7e75e84a31180d51b9970d526709ec4dca2030 Mon Sep 17 00:00:00 2001 From: Michele Papalini Date: Thu, 2 Feb 2023 17:49:46 +0100 Subject: fix(hicn): fix bugs reported by sonarqube Ref: HICN-837 Signed-off-by: Michele Papalini Change-Id: I0d02a11361b1ba5ad50123b2dd142c961998922f --- hicn-light/src/hicn/core/mapme.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'hicn-light') diff --git a/hicn-light/src/hicn/core/mapme.c b/hicn-light/src/hicn/core/mapme.c index fede52cae..53c7ec9da 100644 --- a/hicn-light/src/hicn/core/mapme.c +++ b/hicn-light/src/hicn/core/mapme.c @@ -302,17 +302,10 @@ static void mapme_create_tfib(const mapme_t *mapme, fib_entry_t *entry) { */ static hicn_mapme_type_t mapme_get_type_from_heuristic(const mapme_t *mapme, fib_entry_t *entry) { +#if 0 if (fib_entry_has_local_nexthop(entry)) /* We are a producer for this entry, send update */ return UPDATE; - -#if 0 /* interplay of IU/IN */ - if (TFIB(fib_entry)->lastAckedUpdate == 0) { - return UPDATE; - } else { - Ticks interval = now - TFIB(fib_entry)->lastAckedUpdate; - return (T2NS(interval) > MS2NS(mapme->timescale)) ? UPDATE : NOTIFICATION; - } #else /* Always send IU */ return UPDATE; #endif -- cgit 1.2.3-korg