Alexander Afanasyev | 33b7277 | 2014-01-26 23:22:58 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2014 Named Data Networking Project |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #include "forwarder.hpp" |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 8 | #include "core/logger.hpp" |
| 9 | #include "best-route-strategy.hpp" |
Alexander Afanasyev | 33b7277 | 2014-01-26 23:22:58 -0800 | [diff] [blame] | 10 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 11 | namespace nfd { |
Alexander Afanasyev | 33b7277 | 2014-01-26 23:22:58 -0800 | [diff] [blame] | 12 | |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 13 | NFD_LOG_INIT("Forwarder"); |
| 14 | |
Junxiao Shi | 8888449 | 2014-02-15 15:57:43 -0700 | [diff] [blame] | 15 | const Name Forwarder::s_localhostName("ndn:/localhost"); |
| 16 | |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 17 | Forwarder::Forwarder() |
Junxiao Shi | a4f2be8 | 2014-03-02 22:56:41 -0700 | [diff] [blame] | 18 | : m_faceTable(*this) |
Haowei Yuan | 78c84d1 | 2014-02-27 15:35:13 -0600 | [diff] [blame] | 19 | , m_nameTree(1024) // "1024" could be made as one configurable parameter of the forwarder. |
HangZhang | ad4afd1 | 2014-03-01 11:03:08 +0800 | [diff] [blame] | 20 | , m_fib(m_nameTree) |
Haowei Yuan | 78c84d1 | 2014-02-27 15:35:13 -0600 | [diff] [blame] | 21 | , m_pit(m_nameTree) |
HangZhang | c85a23c | 2014-03-01 15:55:55 +0800 | [diff] [blame] | 22 | , m_measurements(m_nameTree) |
Junxiao Shi | bb5105f | 2014-03-03 12:06:45 -0700 | [diff] [blame] | 23 | , m_strategyChoice(m_nameTree, make_shared<fw::BestRouteStrategy>(boost::ref(*this))) |
Alexander Afanasyev | 33b7277 | 2014-01-26 23:22:58 -0800 | [diff] [blame] | 24 | { |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 25 | m_strategy = make_shared<fw::BestRouteStrategy>(boost::ref(*this)); |
Alexander Afanasyev | 33b7277 | 2014-01-26 23:22:58 -0800 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | void |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 29 | Forwarder::onIncomingInterest(Face& inFace, const Interest& interest) |
| 30 | { |
| 31 | // receive Interest |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 32 | NFD_LOG_DEBUG("onIncomingInterest face=" << inFace.getId() << " interest=" << interest.getName()); |
Junxiao Shi | 06887ac | 2014-02-13 20:15:42 -0700 | [diff] [blame] | 33 | const_cast<Interest&>(interest).setIncomingFaceId(inFace.getId()); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 34 | |
Junxiao Shi | 8888449 | 2014-02-15 15:57:43 -0700 | [diff] [blame] | 35 | // /localhost scope control |
| 36 | bool violatesLocalhost = !inFace.isLocal() && |
| 37 | s_localhostName.isPrefixOf(interest.getName()); |
| 38 | if (violatesLocalhost) { |
| 39 | NFD_LOG_DEBUG("onIncomingInterest face=" << inFace.getId() |
| 40 | << " interest=" << interest.getName() << " violates /localhost"); |
| 41 | return; |
| 42 | } |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 43 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 44 | // PIT insert |
Junxiao Shi | 4063184 | 2014-03-01 13:52:37 -0700 | [diff] [blame] | 45 | shared_ptr<pit::Entry> pitEntry = m_pit.insert(interest).first; |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 46 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 47 | // detect loop and record Nonce |
| 48 | bool isLoop = ! pitEntry->addNonce(interest.getNonce()); |
| 49 | if (isLoop) { |
| 50 | // goto Interest loop pipeline |
| 51 | this->onInterestLoop(inFace, interest, pitEntry); |
| 52 | return; |
| 53 | } |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 54 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 55 | // cancel unsatisfy & straggler timer |
| 56 | this->cancelUnsatisfyAndStragglerTimer(pitEntry); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 57 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 58 | const pit::InRecordCollection& inRecords = pitEntry->getInRecords(); |
| 59 | bool isPending = inRecords.begin() == inRecords.end(); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 60 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 61 | if (!isPending) { |
| 62 | // CS lookup |
| 63 | const Data* csMatch = m_cs.find(interest); |
| 64 | if (csMatch != 0) { |
| 65 | // XXX should we lookup PIT for other Interests that also match csMatch? |
| 66 | |
| 67 | // goto outgoing Data pipeline |
| 68 | this->onOutgoingData(*csMatch, inFace); |
| 69 | return; |
| 70 | } |
| 71 | } |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 72 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 73 | // insert InRecord |
Junxiao Shi | 9b27bd2 | 2014-02-26 20:29:58 -0700 | [diff] [blame] | 74 | pitEntry->insertOrUpdateInRecord(inFace.shared_from_this(), interest); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 75 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 76 | // app chosen nexthops |
| 77 | bool isAppChosenNexthops = false; // TODO get from local control header |
| 78 | if (isAppChosenNexthops) { |
| 79 | // TODO foreach chosen nexthop: goto outgoing Interest pipeline |
| 80 | return; |
| 81 | } |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 82 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 83 | // FIB lookup |
Junxiao Shi | 4063184 | 2014-03-01 13:52:37 -0700 | [diff] [blame] | 84 | shared_ptr<fib::Entry> fibEntry = m_fib.findLongestPrefixMatch(*pitEntry); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 85 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 86 | // dispatch to strategy |
Junxiao Shi | 8888449 | 2014-02-15 15:57:43 -0700 | [diff] [blame] | 87 | this->dispatchToStrategy(inFace, interest, fibEntry, pitEntry); |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 88 | } |
| 89 | |
| 90 | void |
| 91 | Forwarder::onInterestLoop(Face& inFace, const Interest& interest, |
| 92 | shared_ptr<pit::Entry> pitEntry) |
| 93 | { |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 94 | NFD_LOG_DEBUG("onInterestLoop face=" << inFace.getId() << " interest=" << interest.getName()); |
| 95 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 96 | // do nothing, which means Interest is dropped |
| 97 | } |
| 98 | |
| 99 | void |
| 100 | Forwarder::onOutgoingInterest(shared_ptr<pit::Entry> pitEntry, Face& outFace) |
| 101 | { |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 102 | NFD_LOG_DEBUG("onOutgoingInterest face=" << outFace.getId() << " interest=" << pitEntry->getName()); |
| 103 | |
Junxiao Shi | 9b27bd2 | 2014-02-26 20:29:58 -0700 | [diff] [blame] | 104 | // /localhost scope control |
| 105 | bool violatesLocalhost = !outFace.isLocal() && |
| 106 | s_localhostName.isPrefixOf(pitEntry->getName()); |
| 107 | if (violatesLocalhost) { |
| 108 | NFD_LOG_DEBUG("onOutgoingInterest face=" << outFace.getId() |
| 109 | << " interest=" << pitEntry->getName() << " violates /localhost"); |
| 110 | return; |
| 111 | } |
| 112 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 113 | // pick Interest |
| 114 | const Interest& interest = pitEntry->getInterest(); |
| 115 | // TODO pick the last incoming Interest |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 116 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 117 | // insert OutRecord |
Junxiao Shi | 9b27bd2 | 2014-02-26 20:29:58 -0700 | [diff] [blame] | 118 | pitEntry->insertOrUpdateOutRecord(outFace.shared_from_this(), interest); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 119 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 120 | // set PIT unsatisfy timer |
| 121 | this->setUnsatisfyTimer(pitEntry); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 122 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 123 | // send Interest |
| 124 | outFace.sendInterest(interest); |
| 125 | } |
| 126 | |
| 127 | void |
Junxiao Shi | 09498f0 | 2014-02-26 19:41:08 -0700 | [diff] [blame] | 128 | Forwarder::onInterestReject(shared_ptr<pit::Entry> pitEntry) |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 129 | { |
Junxiao Shi | 09498f0 | 2014-02-26 19:41:08 -0700 | [diff] [blame] | 130 | NFD_LOG_DEBUG("onInterestReject interest=" << pitEntry->getName()); |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 131 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 132 | // set PIT straggler timer |
| 133 | this->setStragglerTimer(pitEntry); |
| 134 | } |
| 135 | |
| 136 | void |
| 137 | Forwarder::onInterestUnsatisfied(shared_ptr<pit::Entry> pitEntry) |
| 138 | { |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 139 | NFD_LOG_DEBUG("onInterestUnsatisfied interest=" << pitEntry->getName()); |
| 140 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 141 | // invoke PIT unsatisfied callback |
| 142 | // TODO |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 143 | |
Haowei Yuan | 78c84d1 | 2014-02-27 15:35:13 -0600 | [diff] [blame] | 144 | // PIT erase |
| 145 | m_pit.erase(pitEntry); |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 146 | } |
| 147 | |
| 148 | void |
| 149 | Forwarder::onIncomingData(Face& inFace, const Data& data) |
| 150 | { |
| 151 | // receive Data |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 152 | NFD_LOG_DEBUG("onIncomingData face=" << inFace.getId() << " data=" << data.getName()); |
Junxiao Shi | 06887ac | 2014-02-13 20:15:42 -0700 | [diff] [blame] | 153 | const_cast<Data&>(data).setIncomingFaceId(inFace.getId()); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 154 | |
Junxiao Shi | 8888449 | 2014-02-15 15:57:43 -0700 | [diff] [blame] | 155 | // /localhost scope control |
| 156 | bool violatesLocalhost = !inFace.isLocal() && |
| 157 | s_localhostName.isPrefixOf(data.getName()); |
| 158 | if (violatesLocalhost) { |
| 159 | NFD_LOG_DEBUG("onIncomingData face=" << inFace.getId() |
Junxiao Shi | 9b27bd2 | 2014-02-26 20:29:58 -0700 | [diff] [blame] | 160 | << " data=" << data.getName() << " violates /localhost"); |
Junxiao Shi | 8888449 | 2014-02-15 15:57:43 -0700 | [diff] [blame] | 161 | return; |
| 162 | } |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 163 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 164 | // PIT match |
| 165 | shared_ptr<pit::DataMatchResult> pitMatches = m_pit.findAllDataMatches(data); |
| 166 | if (pitMatches->begin() == pitMatches->end()) { |
| 167 | // goto Data unsolicited pipeline |
| 168 | this->onDataUnsolicited(inFace, data); |
| 169 | return; |
| 170 | } |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 171 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 172 | // CS insert |
| 173 | m_cs.insert(data); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 174 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 175 | std::set<shared_ptr<Face> > pendingDownstreams; |
| 176 | // foreach PitEntry |
| 177 | for (pit::DataMatchResult::iterator it = pitMatches->begin(); |
| 178 | it != pitMatches->end(); ++it) { |
| 179 | shared_ptr<pit::Entry> pitEntry = *it; |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 180 | NFD_LOG_DEBUG("onIncomingData matching=" << pitEntry->getName()); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 181 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 182 | // cancel unsatisfy & straggler timer |
| 183 | this->cancelUnsatisfyAndStragglerTimer(pitEntry); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 184 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 185 | // remember pending downstreams |
| 186 | const pit::InRecordCollection& inRecords = pitEntry->getInRecords(); |
| 187 | for (pit::InRecordCollection::const_iterator it = inRecords.begin(); |
| 188 | it != inRecords.end(); ++it) { |
| 189 | if (it->getExpiry() > time::now()) { |
| 190 | pendingDownstreams.insert(it->getFace()); |
| 191 | } |
| 192 | } |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 193 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 194 | // mark PIT satisfied |
| 195 | pitEntry->deleteInRecords(); |
| 196 | pitEntry->deleteOutRecord(inFace.shared_from_this()); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 197 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 198 | // set PIT straggler timer |
| 199 | this->setStragglerTimer(pitEntry); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 200 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 201 | // invoke PIT satisfy callback |
| 202 | // TODO |
| 203 | } |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 204 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 205 | // foreach pending downstream |
| 206 | for (std::set<shared_ptr<Face> >::iterator it = pendingDownstreams.begin(); |
| 207 | it != pendingDownstreams.end(); ++it) { |
| 208 | // goto outgoing Data pipeline |
| 209 | this->onOutgoingData(data, **it); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | void |
| 214 | Forwarder::onDataUnsolicited(Face& inFace, const Data& data) |
| 215 | { |
| 216 | // accept to cache? |
| 217 | bool acceptToCache = false;// TODO decision |
| 218 | if (acceptToCache) { |
| 219 | // CS insert |
| 220 | m_cs.insert(data); |
| 221 | } |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 222 | |
| 223 | NFD_LOG_DEBUG("onDataUnsolicited face=" << inFace.getId() << " data=" << data.getName() << " acceptToCache=" << acceptToCache); |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 224 | } |
| 225 | |
| 226 | void |
| 227 | Forwarder::onOutgoingData(const Data& data, Face& outFace) |
| 228 | { |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 229 | NFD_LOG_DEBUG("onOutgoingData face=" << outFace.getId() << " data=" << data.getName()); |
| 230 | |
Junxiao Shi | 9b27bd2 | 2014-02-26 20:29:58 -0700 | [diff] [blame] | 231 | // /localhost scope control |
| 232 | bool violatesLocalhost = !outFace.isLocal() && |
| 233 | s_localhostName.isPrefixOf(data.getName()); |
| 234 | if (violatesLocalhost) { |
| 235 | NFD_LOG_DEBUG("onOutgoingData face=" << outFace.getId() |
| 236 | << " data=" << data.getName() << " violates /localhost"); |
| 237 | return; |
| 238 | } |
| 239 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 240 | // traffic manager |
| 241 | // pass through |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 242 | |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 243 | // send Data |
| 244 | outFace.sendData(data); |
| 245 | } |
| 246 | |
| 247 | static inline bool |
| 248 | compare_InRecord_expiry(const pit::InRecord& a, const pit::InRecord& b) |
| 249 | { |
| 250 | return a.getExpiry() < b.getExpiry(); |
| 251 | } |
| 252 | |
| 253 | void |
| 254 | Forwarder::setUnsatisfyTimer(shared_ptr<pit::Entry> pitEntry) |
| 255 | { |
| 256 | const pit::InRecordCollection& inRecords = pitEntry->getInRecords(); |
| 257 | pit::InRecordCollection::const_iterator lastExpiring = |
| 258 | std::max_element(inRecords.begin(), inRecords.end(), |
| 259 | &compare_InRecord_expiry); |
| 260 | |
| 261 | time::Point lastExpiry = lastExpiring->getExpiry(); |
| 262 | time::Duration lastExpiryFromNow = lastExpiry - time::now(); |
| 263 | if (lastExpiryFromNow <= time::seconds(0)) { |
| 264 | // TODO all InRecords are already expired; will this happen? |
| 265 | } |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 266 | |
| 267 | pitEntry->m_unsatisfyTimer = scheduler::schedule(lastExpiryFromNow, |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 268 | bind(&Forwarder::onInterestUnsatisfied, this, pitEntry)); |
| 269 | } |
| 270 | |
| 271 | void |
| 272 | Forwarder::setStragglerTimer(shared_ptr<pit::Entry> pitEntry) |
| 273 | { |
| 274 | time::Duration stragglerTime = time::milliseconds(100); |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 275 | |
| 276 | pitEntry->m_stragglerTimer = scheduler::schedule(stragglerTime, |
Haowei Yuan | 78c84d1 | 2014-02-27 15:35:13 -0600 | [diff] [blame] | 277 | bind(&Pit::erase, &m_pit, pitEntry)); |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 278 | } |
| 279 | |
| 280 | void |
| 281 | Forwarder::cancelUnsatisfyAndStragglerTimer(shared_ptr<pit::Entry> pitEntry) |
| 282 | { |
Junxiao Shi | c041ca3 | 2014-02-25 20:01:15 -0700 | [diff] [blame] | 283 | scheduler::cancel(pitEntry->m_unsatisfyTimer); |
| 284 | scheduler::cancel(pitEntry->m_stragglerTimer); |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 285 | } |
| 286 | |
Junxiao Shi | 8888449 | 2014-02-15 15:57:43 -0700 | [diff] [blame] | 287 | void |
| 288 | Forwarder::dispatchToStrategy(const Face& inFace, |
| 289 | const Interest& interest, |
| 290 | shared_ptr<fib::Entry> fibEntry, |
| 291 | shared_ptr<pit::Entry> pitEntry) |
| 292 | { |
| 293 | m_strategy->afterReceiveInterest(inFace, interest, fibEntry, pitEntry); |
| 294 | // TODO dispatch according to fibEntry |
| 295 | } |
Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame] | 296 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 297 | } // namespace nfd |