[ndnSIM] Errors in running the scenario of ndnSIM-ddos-interest-flooding

Ming mingdeyou at 126.com
Fri Apr 13 03:44:25 PDT 2018


Hello everyone,
There is a very urgent need for everyone to help!!!!
I want to run the following scenario:  https://github.com/cawka/ndnSIM-ddos-interest-flooding .When I input "./waf --run interest-ddos-attack-and-mitigation-scenario" ,it gave me some errors as follow:
Waf: Entering directory `/root/ndnSIM/ddos-interest-flooding/build'
[ 2/13] cxx: extensions/ddos-app.cc -> build/extensions/ddos-app.cc.1.o
[ 4/13] cxx: extensions/stats/load-stats-node.cc -> build/extensions/stats/load-stats-node.cc.1.o
../extensions/stats/load-stats-node.cc:22:26: fatal error: ns3/ndn-face.h: 没有那个文件或目录
compilation terminated.
In file included from ../extensions/ddos-app.cc:21:0:
../extensions/ddos-app.h:29:17: error: reference to ‘ndn’ is ambiguous
 using namespace ndn;
                 ^
In file included from /root/ndnSIM/ns-3/build/ns3/ndnSIM/ndn-cxx/name-component.hpp:25:0,
                 from /root/ndnSIM/ns-3/build/ns3/ndnSIM/ndn-cxx/name.hpp:29,
                 from /root/ndnSIM/ns-3/build/ns3/ndnSIM/ndn-cxx/delegation.hpp:25,
                 from /root/ndnSIM/ns-3/build/ns3/ndnSIM/ndn-cxx/delegation-list.hpp:25,
                 from /root/ndnSIM/ns-3/build/ns3/ndnSIM/ndn-cxx/interest.hpp:25,
                 from /usr/local/include/ns3-dev/ns3/ndnSIM/model/ndn-common.hpp:28,
                 from /usr/local/include/ns3-dev/ns3/ndnSIM/helper/ndn-stack-helper.hpp:23,
                 from /usr/local/include/ns3-dev/ns3/ndn-all.hpp:23,
                 from /usr/local/include/ns3-dev/ns3/ndnSIM-module.h:10,
                 from ../extensions/ddos-app.h:25,
                 from ../extensions/ddos-app.cc:21:
/root/ndnSIM/ns-3/build/ns3/ndnSIM/ndn-cxx/common.hpp:66:15: note: candidates are: namespace ndn { }
 namespace ndn {
               ^
In file included from /usr/local/include/ns3-dev/ns3/ndnSIM/helper/ndn-stack-helper.hpp:23:0,
                 from /usr/local/include/ns3-dev/ns3/ndn-all.hpp:23,
                 from /usr/local/include/ns3-dev/ns3/ndnSIM-module.h:10,
                 from ../extensions/ddos-app.h:25,
                 from ../extensions/ddos-app.cc:21:
/usr/local/include/ns3-dev/ns3/ndnSIM/model/ndn-common.hpp:44:15: note:                 namespace ns3::ndn { }
 namespace ndn {
               ^
In file included from ../extensions/ddos-app.cc:21:0:
../extensions/ddos-app.h:29:17: error: ‘ndn’ is not a namespace-name
 using namespace ndn;
                 ^
../extensions/ddos-app.h:29:20: error: expected namespace-name before ‘;’ token
 using namespace ndn;
                    ^
../extensions/ddos-app.h:32:1: error: expected class-name before ‘{’ token
 {
 ^
../extensions/ddos-app.h:40:27: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
   OnNack (const Ptr<const Interest> &interest);
                           ^
../extensions/ddos-app.h:40:35: error: template argument 1 is invalid
   OnNack (const Ptr<const Interest> &interest);

Can anyone give a solution for that?

Thanks in advance!




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180413/deb05c5a/attachment.html>


More information about the ndnSIM mailing list