[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] problem with GPRS extension to ns
> Can you describe that in diff -c5p form against a stated version of
> the GPRS file?
>
> thanks,
>
This is the diff for mac-gprs.cc:
*** mac-gprs.cc.old Sun Jan 6 13:47:41 2002
--- mac-gprs.cc Sun Jan 6 13:49:32 2002
*************** int MacGprs::command(int argc, const cha
*** 367,376 ****
--- 367,382 ----
logtarget_ = (NsObject*) TclObject::lookup(argv[2]);
if(logtarget_ == 0)
return TCL_ERROR;
return TCL_OK;
}
+ else if (strcmp(argv[1], "ifq") == 0) {
+ q_ = (Queue*) TclObject::lookup(argv[2]);
+ if (q_==0)
+ return TCL_ERROR;
+ return TCL_OK;
+ }
}
return Mac::command(argc, argv);
}
and this is the diff for ns-mobilenode.tcl:
*** ns-mobilenode.tcl.old Sun Jan 6 13:49:47 2002
--- ns-mobilenode.tcl Sun Jan 6 13:51:46 2002
*************** Node/MobileNode instproc add-interface {
*** 472,481 ****
--- 472,484 ----
#
$mac netif $netif
# $mac up-target $ll
$mac up-target $rlc ;#sandy's rlc
$mac down-target $netif
+ if {$mactype == "Mac/Gprs"} {
+ $mac ifq $ifq
+ }
set god_ [God instance]
if {$mactype == "Mac/802_11"} {
$mac nodes [$god_ num_nodes]
}
#
These two are the only files I changed.
I hope this helps
Alfredo