diff options
author | Mauro Sardara <msardara@cisco.com> | 2020-01-22 10:05:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-01-22 10:05:58 +0000 |
commit | ea6e0a1c5541b7d6cd28c76818b0a17a88560529 (patch) | |
tree | 1c6db342b7d7ec10d04574d696b441cd91407f75 /hicn-light/src/hicn/processor/fibEntry.c | |
parent | 6a371e0002ced0f287f96ddb440cc6f1c3507385 (diff) | |
parent | e3e78f60b5e8f31be056d95b9b83a2c1a9110fe9 (diff) |
Merge "[HICN-482] trigger map-me updates from the forwarding strategy"
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); |