[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] problem with GPRS extension to ns



Hello, I too had a segmentation fault when I tried to execute the sample
script. This happened because the IFQ is not linked to the MacGprs as it
should be. I added the following lines to MacGPRS::command in mac-gprs.cc:

.....
else if (strcmp(argv[1], "ifq")==0) {
             q_=(Queue*)TclObject::lookup(argv[2]);
             if (q_==0)
                return TCL_ERROR;
             return TCL_OK;
}

I also added the following to ns-mobilenode.tcl:

if {$mactype == "Mac/Gprs"} {
     $mac ifq $ifq
}

Now it works well.
I hope this helps.

Alfredp