[ndnSIM] ndnSIM Digest, Vol 39, Issue 11

Rohit Agnihotri agnihotrirohit0 at gmail.com
Fri Feb 26 02:42:48 PST 2016


Thanks Alex sir  regarding your post.

On Fri, Feb 26, 2016 at 2:27 PM, <ndnsim-request at lists.cs.ucla.edu> wrote:

> Send ndnSIM mailing list submissions to
>         ndnsim at lists.cs.ucla.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> or, via email, send a message with subject or body 'help' to
>         ndnsim-request at lists.cs.ucla.edu
>
> You can reach the person managing the list at
>         ndnsim-owner at lists.cs.ucla.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ndnSIM digest..."
>
>
> Today's Topics:
>
>    1. Re: Error build of ndnSIM-ddos-interest-flooding project
>       (Alex Afanasyev)
>    2. Re: Accessing net device faces (Alex Afanasyev)
>    3. Re: Setting up link metric (Alex Afanasyev)
>    4. Re: Access to the queue inside OnData() in
>       forwarding-strategy (Alex Afanasyev)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 26 Feb 2016 00:43:08 -0800
> From: Alex Afanasyev <aa at CS.UCLA.EDU>
> To: Rohit Agnihotri <agnihotrirohit0 at gmail.com>
> Cc: ndnsim at lists.cs.ucla.edu
> Subject: Re: [ndnSIM] Error build of ndnSIM-ddos-interest-flooding
>         project
> Message-ID: <95E737C9-7052-433C-B617-0EB1BF424235 at cs.ucla.edu>
> Content-Type: text/plain; charset="us-ascii"
>
> Dear Rohit,
>
> From the error you uploaded to redmine, I'm guessing you're trying to
> compile the scenario using the latest version of ndnSIM.  Unfortunately, it
> is not possible and you need to use the version specified in the scenario
> readme.
>
> (http://redmine.named-data.net/issues/3470#note-4)
>
> ---
> Alex
>
> > On Feb 24, 2016, at 3:20 AM, Rohit Agnihotri <agnihotrirohit0 at gmail.com>
> wrote:
> >
> > Hello all,
> >
> > I am a beginner in ndnSIM and want to execute
> ndnSIM-ddos-interest-flooding project.
> > when i execute the ./waf configure it gives build successful and when i
> run ./waf it shows following error.
> >
> > Build failed
> >  -> task in 'extensions' failed (exit status 1):
> >     {task 140558924801872: cxx satisfaction-based-interest-acceptance.cc
> -> satisfaction-based-interest-acceptance.cc.1.o}
> > ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread',
> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
> '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions',
> '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions',
> '-I/usr/include', '-I/usr/local/include/ns3-dev',
> '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD',
> '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD',
> '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core',
> '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core',
> '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon',
> '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon',
> '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib',
> '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib',
> '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM',
> '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0',
> '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0',
> '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/inclu!
>  de/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2',
> '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include',
> '-I/usr/include/pixman-1', '-I/usr/include/libpng12',
> '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1',
> '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1',
> '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1',
> '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1',
> '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1',
> '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1',
> '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1',
> '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1',
> '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1',
> '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1',
> '../extensions/strategies/satisfaction-based-interest-acceptance.cc', '-c',
> '-o', 'exte!
>  nsions/strategies/satisfaction-based-interest-acceptance.cc.1.o']
> >  -> task in 'extensions' failed (exit status 1):
> >     {task 140558924801616: cxx stats.cc -> stats.cc.1.o}
> > ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread',
> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
> '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions',
> '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions',
> '-I/usr/include', '-I/usr/local/include/ns3-dev',
> '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD',
> '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD',
> '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core',
> '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core',
> '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon',
> '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon',
> '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib',
> '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib',
> '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM',
> '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0',
> '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0',
> '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/inclu!
>  de/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2',
> '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include',
> '-I/usr/include/pixman-1', '-I/usr/include/libpng12',
> '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1',
> '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1',
> '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1',
> '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1',
> '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1',
> '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1',
> '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1',
> '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1',
> '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1',
> '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1',
> '../extensions/stats.cc', '-c', '-o', 'extensions/stats.cc.1.o']
> >  -> task in 'extensions' failed (exit status 1):
> >     {task 140558924801488: cxx load-stats-node.cc ->
> load-stats-node.cc.1.o}
> > ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread',
> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
> '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions',
> '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions',
> '-I/usr/include', '-I/usr/local/include/ns3-dev',
> '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD',
> '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD',
> '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core',
> '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core',
> '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon',
> '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon',
> '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib',
> '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib',
> '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM',
> '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0',
> '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0',
> '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/inclu!
>  de/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2',
> '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include',
> '-I/usr/include/pixman-1', '-I/usr/include/libpng12',
> '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1',
> '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1',
> '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1',
> '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1',
> '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1',
> '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1',
> '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1',
> '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1',
> '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1',
> '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1',
> '../extensions/stats/load-stats-node.cc', '-c', '-o',
> 'extensions/stats/load-stats-node!
>  .cc.1.o']
> >  -> task in 'extensions' failed (exit status 1):
> >     {task 140558924801104: cxx ddos-app.cc -> ddos-app.cc.1.o}
> > ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread',
> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
> '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions',
> '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions',
> '-I/usr/include', '-I/usr/local/include/ns3-dev',
> '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD',
> '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD',
> '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core',
> '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core',
> '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon',
> '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon',
> '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib',
> '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib',
> '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM',
> '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0',
> '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0',
> '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/inclu!
>  de/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2',
> '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include',
> '-I/usr/include/pixman-1', '-I/usr/include/libpng12',
> '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1',
> '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1',
> '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1',
> '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1',
> '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1',
> '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1',
> '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1',
> '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1',
> '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1',
> '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1',
> '../extensions/ddos-app.cc', '-c', '-o', 'extensions/ddos-app.cc.1.o']
> >
> >
> > please help me to resolve the error...and to run the project.
> >
> >
> > Thanks in advance.
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 841 bytes
> Desc: Message signed with OpenPGP using GPGMail
> URL: <
> http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160226/6f04ced7/attachment-0001.bin
> >
>
> ------------------------------
>
> Message: 2
> Date: Fri, 26 Feb 2016 00:46:22 -0800
> From: Alex Afanasyev <aa at CS.UCLA.EDU>
> To: Ayush Agarwal <ayush0071 at gmail.com>
> Cc: ndnsim <ndnsim at lists.cs.ucla.edu>
> Subject: Re: [ndnSIM] Accessing net device faces
> Message-ID: <B8202813-BDBB-4513-957B-8ED036A49D7F at cs.ucla.edu>
> Content-Type: text/plain; charset="us-ascii"
>
>
> > On Feb 21, 2016, at 11:19 PM, Ayush Agarwal <ayush0071 at gmail.com> wrote:
> >
> > Hello everyone,
> >
> > I am trying to access all the net device interfaces associated to a face.
> > Firstly I am getting the object of ndnNetDeviceFace and then with its
> help I am accessing the net devices associated to it.
> >
> > I am also handling the NULL cases for the ndnNetDeviceFace to avoid
> segmentation faults. But due to this I am unable to access the net devices
> with id 0.
> > The code I am using is as follows:
> >
> >  Ptr<NetDeviceFace> netDeviceFace = DynamicCast<NetDeviceFace> (inFace);
> >   //std::cout << "device id is" << netDeviceFace->GetTypeId() << "\n";
> >   if (netDeviceFace == NULL)
> >   {
> >       std::cout<<"null\n"
> >   }
> >   if(netDeviceFace!=NULL)
> >   {
> >   Ptr<NetDevice> nd = netDeviceFace->GetNetDevice ();
> >   ------------
> >   ------------
> >   }
> >
> > Please help me in a solution so that I can access all the net devices
> without any segmentation faults.
>
> I'm not quite sure what you mean by "unable to access the net devices with
> id 0".  If the DynamicCast returns null, then the face is not
> NetDeviceFace.  For example, it can be internal NFD face or it can be
> AppFace.
>
> ---
> Alex
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 841 bytes
> Desc: Message signed with OpenPGP using GPGMail
> URL: <
> http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160226/e978c6d3/attachment-0001.bin
> >
>
> ------------------------------
>
> Message: 3
> Date: Fri, 26 Feb 2016 00:54:36 -0800
> From: Alex Afanasyev <aa at CS.UCLA.EDU>
> To: Ahmed Sadek <don1559 at gmail.com>
> Cc: Spyros Mastorakis <mastorakis at CS.UCLA.EDU>, ndnsim
>         <ndnsim at lists.cs.ucla.edu>
> Subject: Re: [ndnSIM] Setting up link metric
> Message-ID: <0B1C159F-0D25-4030-97FC-CFE8831BD51F at cs.ucla.edu>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Ahmed,
>
> There isn't a priority, these are different metrics used for different
> purposes.
>
> The one you configure in the topology file can be used by
> GlobalRoutingHelper to calculate routes and set up FIB entries.   What the
> helper does is obtains the configured costs, finds out (a set of) shortest
> paths, sums up the configured costs from the topology file, and calls
> FibHelper::AddRoute with the calculated cost.
>
> You can rub FibHelper::AddRoute manually (or in addition to
> GlobalRoutingHelper-generated calls to it).  Whichever cost you specify in
> AddRoute, will be assigned to FIB entry.   There is no relation to the
> configured cost in the topology.
>
> ---
> Alex
>
> > On Feb 20, 2016, at 2:58 AM, Ahmed Sadek <don1559 at gmail.com> wrote:
> >
> > Hi Spyridon ,
> >
> > Thank you for your reply. I still don't understand. If using the
> FibHelper I set the metric between client 1-> Router 1 to be 100 and in the
> topology file I set up the metric between client 1-> Router 1 to be 200, so
> which one takes effect and why ?
> >
> > Thanks!
> > Ahmed
> >
> > On Sat, Feb 20, 2016 at 4:49 AM, Spyridon (Spyros) Mastorakis <
> mastorakis at cs.ucla.edu> wrote:
> > Hi Ahmed,
> >
> > the first case refers to the establishment of a route that may be used
> for Interest forwarding. Specifically, the FibHelper will add the
> appropriate FIB entries on the routers across the specified path.
> >
> > The second case refers to the physical properties (bandwidth, delay,
> queue size) of a link between two adjacent nodes.
> >
> > Hope that this helps. Please let me know if you have any follow-up
> questions.
> >
> > Spyridon (Spyros) Mastorakis
> > Personal Website: http://cs.ucla.edu/~mastorakis/
> > Internet Research Laboratory
> > Computer Science Department
> > UCLA
> >
> >
> >
> >
> >> On Feb 16, 2016, at 3:48 AM, Ahmed Sadek <don1559 at gmail.com> wrote:
> >>
> >> Dear All,
> >>
> >> What is the difference between setting up the metric in the simulation
> file :
> >> ndn::FibHelper::AddRoute("client", "/", "router1", 150);
> >>
> >> Or in the topology file:
> >> # srcNode   dstNode     bandwidth   metric  delay   queue
> >> client      router1       20Mbps     150             50ms    50
> >>
> >> And which one take priority?
> >>
> >> Thanks!
> >> Ahmed
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 841 bytes
> Desc: Message signed with OpenPGP using GPGMail
> URL: <
> http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160226/f3aba3fa/attachment-0001.bin
> >
>
> ------------------------------
>
> Message: 4
> Date: Fri, 26 Feb 2016 00:56:56 -0800
> From: Alex Afanasyev <aa at CS.UCLA.EDU>
> To: Ayush Agarwal <ayush0071 at gmail.com>
> Cc: ndnsim <ndnsim at lists.cs.ucla.edu>
> Subject: Re: [ndnSIM] Access to the queue inside OnData() in
>         forwarding-strategy
> Message-ID: <DF932369-40DF-48FF-B737-EC562151B182 at cs.ucla.edu>
> Content-Type: text/plain; charset="utf-8"
>
>
> > On Feb 18, 2016, at 8:42 AM, Ayush Agarwal <ayush0071 at gmail.com> wrote:
> >
> > Hello everyone,
> >
> > I am using the following code to get hold of the queue object inside the
> forwarding strategy, OnData(....) function.
> >
> > Ptr<NetDeviceFace> netDeviceFace = DynamicCast<NetDeviceFace> (inFace);
> > if (netDeviceFace == NULL) {  }
> > Ptr<NetDevice> nd = netDeviceFace->GetNetDevice ();
> > if (nd == NULL) {  }
> > PointerValue txQueueAttribute;
> > nd->GetAttribute ("TxQueue", txQueueAttribute);
> > Ptr<ns3::Queue> txQueue = txQueueAttribute.Get<ns3::Queue> ();
> > if (txQueue == 0) {    }
> >
> > But I am getting a segmentation fault SIGSEV error while fetching the
> NetDevice object and the following errors for accessing queue.
> >
> > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:238:3: error:
> ?PointerValue? was not declared in this scope
> >     PointerValue txQueueAttribute;
> >    ^
> > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:239:32: error:
> ?txQueueAttribute? was not declared in this scope
> >    nd->GetAttribute ("TxQueue", txQueueAttribute);
> >                                 ^
> > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:50: error:
> expected primary-expression before ?>? token
> >    Ptr<Queue> txQueue = txQueueAttribute.Get<Queue> ();
> >                                                   ^
> > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:53: error:
> expected primary-expression before ?)? token
> >    Ptr<Queue> txQueue = txQueueAttribute.Get<Queue> ();
> >
> >
> > Can you please point me out where I am going wrong.
>
> Hi Ayush,
>
> Sorry for the delayed response.  I'm guessing that you have already solved
> the compilation problem?  Just in case, it is just a matter of adding
> proper includes (I think <ns3/pointer.h>, <ns3/queue.h>)
>
> ---
> Alex
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 841 bytes
> Desc: Message signed with OpenPGP using GPGMail
> URL: <
> http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160226/1b010d99/attachment.bin
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
> ------------------------------
>
> End of ndnSIM Digest, Vol 39, Issue 11
> **************************************
>



-- 
Regards
Rohit Agnihotri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160226/b6ed883d/attachment.html>


More information about the ndnSIM mailing list