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