diff options
author | michele papalini <micpapal@cisco.com> | 2020-01-21 17:56:37 +0100 |
---|---|---|
committer | michele papalini <micpapal@cisco.com> | 2020-01-22 10:55:08 +0100 |
commit | e3e78f60b5e8f31be056d95b9b83a2c1a9110fe9 (patch) | |
tree | e446927dd730e00692c643381b2e85e8a5982262 /hicn-light/src/hicn/processor/fibEntry.c | |
parent | bf366088b56e7f2e793e7026d9c655e26fe4a67a (diff) |
[HICN-482] trigger map-me updates from the forwarding strategy
Signed-off-by: michele papalini <micpapal@cisco.com>
Change-Id: Icc41824f2f29580229ce8b3ce066f121870e012d
Signed-off-by: michele papalini <micpapal@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/processor/fibEntry.c')
-rw-r--r-- | hicn-light/src/hicn/processor/fibEntry.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/hicn-light/src/hicn/processor/fibEntry.c b/hicn-light/src/hicn/processor/fibEntry.c index 2c41f1c7b..077e33ff3 100644 --- a/hicn-light/src/hicn/processor/fibEntry.c +++ b/hicn-light/src/hicn/processor/fibEntry.c @@ -114,7 +114,8 @@ FibEntry *fibEntry_Create(Name *name, strategy_type fwdStrategy) { if(fwdStrategy == SET_STRATEGY_LOW_LATENCY){ strategyLowLatency_SetStrategy(fibEntry->fwdStrategy, - fibEntry->forwarder, fibEntry); + fibEntry->forwarder, fibEntry, + 0, NULL); } return fibEntry; } @@ -146,7 +147,9 @@ void fibEntry_Release(FibEntry **fibEntryPtr) { *fibEntryPtr = NULL; } -void fibEntry_SetStrategy(FibEntry *fibEntry, strategy_type strategy) { +void fibEntry_SetStrategy(FibEntry *fibEntry, strategy_type strategy, + unsigned related_prefixes_len, + Name **related_prefixes) { StrategyImpl *fwdStrategyImpl; switch (strategy) { @@ -171,7 +174,8 @@ void fibEntry_SetStrategy(FibEntry *fibEntry, strategy_type strategy) { if(strategy == SET_STRATEGY_LOW_LATENCY){ strategyLowLatency_SetStrategy(fwdStrategyImpl, - fibEntry->forwarder, fibEntry); + fibEntry->forwarder, fibEntry, + related_prefixes_len, related_prefixes); } const NumberSet *nexthops = fibEntry_GetNexthops(fibEntry); |