Skip to content

Commit

Permalink
removed fib entry related to RemoteAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
imwhiz committed Sep 3, 2021
1 parent bbc7926 commit b677f08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions daemon/mw-nfd/mw-nfd-worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ void MwNfd::processNfdcCommand( char * cmd)
m_setReservedFace = true;

#ifndef ETRI_NFD_ORG_ARCH
Name rtPrefix(getRouterName()+"/nfd/status");
fib::Entry* entry = m_forwarder->getFib().insert(rtPrefix).first;
Name rtPrefix(getRouterName()+"/nfd-info");
//fib::Entry* entry = m_forwarder->getFib().insert(rtPrefix).first;
auto korenFace = m_faceTable->get(FACEID_REMOTE_ACCESS);
m_forwarder->getFib().addOrUpdateNextHop(*entry, *korenFace, 0);
//m_forwarder->getFib().addOrUpdateNextHop(*entry, *korenFace, 0);

m_face =m_faceTable->get(FACEID_REMOTE_ACCESS);
gls = std::make_shared<nfd::face::GenericLinkService>(options);
Expand Down
7 changes: 3 additions & 4 deletions daemon/nfd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ void Nfd::onInterestRemoteAccess(const ndn::Name& name, const ndn::Interest& int
//if (interestName[-2].isVersion()) {
//m_forwarderRemoteAccess.replyFromStore(interest, *m_internalClientFaceRemoteAccess);
//}else
m_forwarderRemoteAccess.publish(name, interest, *m_internalClientFaceRemoteAccess);
//m_forwarderRemoteAccess.publish(name, interest, *m_internalClientFaceRemoteAccess);
#endif
return;
}
Expand Down Expand Up @@ -360,9 +360,8 @@ Nfd::initializeManagement()

std::tie(m_internalFaceRemoteAccess, m_internalClientFaceRemoteAccess) = face::makeInternalFace(m_keyChain);
m_faceTable->addReserved(m_internalFaceRemoteAccess, FACEID_REMOTE_ACCESS);
m_internalClientFaceRemoteAccess->setInterestFilter(getRouterName()+"/nfd/status",
std::bind(&Nfd::onInterestRemoteAccess, this, _1, _2)
);
///m_internalClientFaceRemoteAccess->setInterestFilter(getRouterName()+"/nfd-info",
///std::bind(&Nfd::onInterestRemoteAccess, this, _1, _2));
}

void
Expand Down

0 comments on commit b677f08

Please sign in to comment.