Project

General

Profile

Actions

Bug #3363

closed

Interest with full name is not satisfied with Data packet

Added by Alex Afanasyev almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Forwarding
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
4.00 h

Description

The problem originally reported by Christian Tschudin: http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2015-December/001445.html

I'm confirming the incorrect behavior. Steps to reproduce:

  • Start NFD

  • Compile a simple app:

#include <ndn-cxx/face.hpp>
#include <ndn-cxx/security/key-chain.hpp>

#include <memory>

int
main()
{
  auto data = std::make_shared<ndn::Data>("/hello/world");
  ndn::KeyChain keyChain;
  keyChain.sign(*data);

  std::cout << data->getFullName() << std::endl;

  ndn::Face face;
  face.setInterestFilter("/hello/world",
                         [&] (const ndn::InterestFilter&, const ndn::Interest& i) {
                           std::cerr << " << i " << i << std::endl;
                           if (i.getName() == data->getFullName()) {
                             face.put(*data);
                           }
                         },
                         nullptr);

  face.processEvents();
}
c++ -std=c++11 `pkg-config --cflags --libs libndn-cxx` test.cpp -lndn-cxx
  • Start the app. It will output the exact name of the data packet being produced. On my machine it is /hello/world/sha256digest=bc6f07c5f4e6e2ec525dc2a6ad95ddc02df2c39140e1bfd791d43c48ef7abf6c

  • Request the data packet using ndnpeek

ndnpeek /hello/world/sha256digest=bc6f07c5f4e6e2ec525dc2a6ad95ddc02df2c39140e1bfd791d43c48ef7abf6c

Expected: Data packet retrieved

Actual: Timeout


If ndnpeek is run again, the data packet is immediately retrieved.


Files

Scanned_20151230-1031.pdf (518 KB) Scanned_20151230-1031.pdf Junxiao Shi, 12/30/2015 09:32 AM

Related issues 1 (0 open1 closed)

Related to NFD - Bug #3608: Pit::erase crash if Interest name contains implicit digestClosedJunxiao Shi04/25/2016

Actions
Actions

Also available in: Atom PDF