Hello, I have tried to generate CMPP traffic in NS by adding a class
CMPP_Traffic analogous to Poisson_Traffic . I have made those additions: 1.~ns/tcl/lib/ns-default.tcl : here i have given default values for all the parameters 2.~ns/tcl/lib/ns-source.tcl : here i have first declare my class as "Class Application/Traffic/CMPP" 3.~ns/packet.h : here i have made entry for my packet type PT_CMPP in teh enum defined there . i have also made the entry name_[PT_CMPP]="cmpp" 4. ~ns/trace.h : here in the func. format() i have made entry for my packet type in the if-condition in line 213. There is no problem when i compile ns with my file included in the Makefile. But when i run a tcl script generating CMPP traffic then it gives the following error : ------------------------------------------------ _o84:unable to dispatch method attach-agent while executing "$traffic attach-agent $udp0" (file "cmpp.tcl" line40) ----------------------------------------------- here cmpp.tcl is the name of my tcl script traffic is the object Application/Traffic/CMPP udp0 is the object Agent/UDP Can anybody suggest me what to do???
