table: add Fib::afterNewNextHop signal
Refs: #4931
Change-Id: I68915b5f5688ad2f62147069fea86956a22672b6
diff --git a/tests/daemon/fw/forwarder.t.cpp b/tests/daemon/fw/forwarder.t.cpp
index 247821a..9f7d1ce 100644
--- a/tests/daemon/fw/forwarder.t.cpp
+++ b/tests/daemon/fw/forwarder.t.cpp
@@ -50,7 +50,8 @@
forwarder.addFace(face2);
Fib& fib = forwarder.getFib();
- fib.insert("/A").first->addOrUpdateNextHop(*face2, 0);
+ fib::Entry* entry = fib.insert("/A").first;
+ fib.addOrUpdateNextHop(*entry, *face2, 0);
BOOST_CHECK_EQUAL(forwarder.getCounters().nInInterests, 0);
BOOST_CHECK_EQUAL(forwarder.getCounters().nOutInterests, 0);
@@ -91,7 +92,8 @@
forwarder.addFace(face3);
Fib& fib = forwarder.getFib();
- fib.insert("/A").first->addOrUpdateNextHop(*face2, 0);
+ fib::Entry* entry = fib.insert("/A").first;
+ fib.addOrUpdateNextHop(*entry, *face2, 0);
Pit& pit = forwarder.getPit();
BOOST_CHECK_EQUAL(pit.size(), 0);
@@ -156,7 +158,8 @@
forwarder.addFace(face3);
Fib& fib = forwarder.getFib();
- fib.insert("/A").first->addOrUpdateNextHop(*face3, 0);
+ fib::Entry* entry = fib.insert("/A").first;
+ fib.addOrUpdateNextHop(*entry, *face3, 0);
auto interest = makeInterest("/A/B");
interest->setTag(make_shared<lp::NextHopFaceIdTag>(face2->getId()));
@@ -485,7 +488,8 @@
forwarder.addFace(face4);
Fib& fib = forwarder.getFib();
- fib.insert("/zT4XwK0Hnx").first->addOrUpdateNextHop(*face4, 0);
+ fib::Entry* entry = fib.insert("/zT4XwK0Hnx").first;
+ fib.addOrUpdateNextHop(*entry, *face4, 0);
// receive Interest on face1
face1->sentNacks.clear();
@@ -537,7 +541,8 @@
});
Fib& fib = forwarder.getFib();
- fib.insert("/A").first->addOrUpdateNextHop(*face2, 0);
+ fib::Entry* entry = fib.insert("/A").first;
+ fib.addOrUpdateNextHop(*entry, *face2, 0);
// receive an Interest
auto interest = makeInterest("/A/1", false, 50_ms, 82101183);