diff options
author | Mauro Sardara <msardara@cisco.com> | 2020-02-13 20:47:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-02-13 20:47:19 +0000 |
commit | 2835305d247f23695bddf1a9068ee6f2f33bed70 (patch) | |
tree | 1ff9256acdaebdcb1d6d21993375accef18e7910 /hicn-light/src/hicn/core/mapme.h | |
parent | 7ecd7bf20999042a13e88c2ac3c8b851d1db8da4 (diff) | |
parent | 1fb7b1be452111b9e26a100bc5dfdce266c30330 (diff) |
Merge "[HICN-518] new API in hicn-light to allow a producer to force MAP-Me messages to be resent"
Diffstat (limited to 'hicn-light/src/hicn/core/mapme.h')
-rw-r--r-- | hicn-light/src/hicn/core/mapme.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/hicn-light/src/hicn/core/mapme.h b/hicn-light/src/hicn/core/mapme.h index 503b22568..72f8d536a 100644 --- a/hicn-light/src/hicn/core/mapme.h +++ b/hicn-light/src/hicn/core/mapme.h @@ -70,7 +70,7 @@ void mapme_Process(const MapMe *mapme, const uint8_t *msgBuffer, /** * @function mapme_send_updates - * @abstract Trigger the update for specified FIB entry and nexthops + * @abstract Trigger (if needed) the update for specified FIB entry and nexthops * @param [in] mapme - Pointer to the MAP-Me data structure. * @param [in] fibEntry - The FIB entry to consider * @param [in] nexthops - NumberSet holding the next hops on which to send the @@ -79,6 +79,16 @@ void mapme_Process(const MapMe *mapme, const uint8_t *msgBuffer, void mapme_send_updates(const MapMe * mapme, FibEntry * fibEntry, const NumberSet * nexthops); /** + * @function mapme_send_updates + * @abstract Trigger the update for specified FIB entry and nexthops, only if needed + * @param [in] mapme - Pointer to the MAP-Me data structure. + * @param [in] fibEntry - The FIB entry to consider + * @param [in] nexthops - NumberSet holding the next hops on which to send the + * update. + */ +void mapme_maybe_send_updates(const MapMe * mapme, FibEntry * fibEntry, const NumberSet * nexthops); + +/** * @function mapme_reconsiderFibEntry * @abstract Process a fib entry for changes that might trigger new updates * @param [in] mapme - Pointer to the MAP-Me data structure. |