Bug #2870
Updated by Junxiao Shi over 9 years ago
As Junxiao explained to me, the `afterReceiveInterest()` method in the [broadcast strategy](https://github.com/named-data/NFD/blob/187ade85662985ad6027821dca201566e5862f4b/daemon/fw/broadcast-strategy.cpp) broadcast strategy (https://github.com/named-data/NFD/blob/187ade85662985ad6027821dca201566e5862f4b/daemon/fw/broadcast-strategy.cpp) should only be called once with the latest prefix matched from the FIB entry list. If list; if the chosen FIB entry has multiple next hops, the broadcast strategy will forward the Interest to all of these hops/faces. In some simple testing, however, I found that the Interest was forwarded to multiple FIB entries. For example, 1. register I registered prefixes /a/b and /a/b/c on different faces from within an application (using the JAVA CCL) 2. CCL); I set a broadcast strategy with `nfdc set-strategy / /localhost/nfd/strategy/broadcast` 3. and then ran `ndn-tlv-peek -p -f -r /a/b/c` to send an Interest Expected: Interest. The expected behavior is for the Interest is to only be forwarded to the /a/b/c registered prefix Actual: but I found that it was forwarded to both both. I'm running NFD version 0.3.2 0.3.2.