[Ndn-interest] Adding a new type of NACK

Matteo Bertolino Matteo.Bertolino at eurecom.fr
Thu Feb 9 06:40:27 PST 2017


Good morning,
I am trying to add a new type of NACK called "PERSONALIZED" in ndn-cxx.
Then I modify the strategy method "after receive NACK" with:
if (nack.getReason() == lp::NackReason::PERSONALIZED) {
     log << "I received a PERSONALIZED NACK";
}

But when I compile I have the error:
"PERSONALIZED" is not a member of "ndn::lp::NackReason".


My steps to add the new NACK were:
1) modifying ndn-cxx/src/lp/nack-header.cpp

adding:
case NackReason::PERSONALIZED:
os << "MyPersonalNACK";
break;

in the method operator <<

2) adding the equivalent in the method getReason() always in nack-header.cpp

3) in nack-header.hpp I add:
enum class NackReason {
NONE = 0;
CONGESTION = 50;
...
PERSONALIZED = 200;
}

What did I forgot ?

Thanks in advance
Bests,
Matteo

-------------------------------------------------------------------------------
This message was sent using EURECOM Webmail: http://webmail.eurecom.fr



More information about the Ndn-interest mailing list