[Ns-developers] DelayBox - ns-3

Tom Henderson tomh at tomh.org
Sat Apr 26 15:56:02 PDT 2008


Matt Crinklaw wrote:
>>  Maybe you could post your tree somewhere (hint: freehg.org): it will be
>>  easier to debug this if we can run the code...
>>
> 
> http://freehg.org/u/mlaw
> 
> Application code:
> src/applications/delay-box
> 
> Test code (where sink is attached to the source and apps are started, etc.)
> delaybox/test-delaybox.cc
> 
> Run test:
> ./waf --run test-delaybox


Matt,
I had a look at your repo this afternoon; what you did to hook your sink 
to the source looks correct, except that you have to just remove a const 
qualifier in your sink signature:

  static void
-TaggingSink (uint32_t flowid, std::string context, Ptr<const
-Packet> packet)
+TaggingSink (uint32_t flowid, std::string context, Ptr<Packet> packet)

then, the next error that is raised is from trying to tag the packet in 
two places with the same tag; that can be removed by deciding which 
tagging spot (in TaggingSink or in DelayBoxApplication::SendData) you 
want to keep.

Hope that helps,
Tom


More information about the Ns-developers mailing list