diff options
author | Michele Papalini <micpapal@cisco.com> | 2023-02-02 17:49:46 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2023-02-09 13:23:13 +0000 |
commit | e30c3a102081ccf345c457658dc557703fae67bb (patch) | |
tree | 81022d23ef15eb766f396e3f2d1e9f4b763ae4bf /hicn-light | |
parent | abf7c63f1cb45276f379770319ddb537104022e8 (diff) |
fix(hicn): fix bugs reported by sonarqube
Ref: HICN-837
Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: I0d02a11361b1ba5ad50123b2dd142c961998922f
(cherry picked from commit 8a7e75e84a31180d51b9970d526709ec4dca2030)
Diffstat (limited to 'hicn-light')
-rw-r--r-- | hicn-light/src/hicn/core/mapme.c | 9 |
1 files changed, 1 insertions, 8 deletions
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 |