[ns] Multi-interface support howto, Ramon Submission
Ramon Aguero
ramon at tlmat.unican.es
Mon Feb 5 07:34:15 PST 2007
Hi Anthony,
thanks for your feedback; I think that your proposal is perfectly fine.
I've sent an email previously, about the same changes. I think that the
problem was that in the first version of the document we did not highlight
a couple of lines (the ones that you've modified); in the original
ns-mobilenode.tcl file, these two lines started with $arptable_ **Note the
underscore**
In the modified procedure, however, it was $arptable **Without the
underscore**, which is, exactly what you propose, since the $arptable
variable is $arptable_($t).
Cheers,
Ramón
At 07:29 04/02/2007, Anthony Plummer wrote:
>Ramon's submission (http://personales.unican.es/aguerocr/) of a
>multiple-channel extension to ns2 works well after a slight
>modification to the code in the pdf. In tcl/lib/ns-mobilenode.tcl the
>arptable modification (pg. 24 & 25 of pdf) needs to change the
>arptable in two additional lines.
> #We also create one ARP table per interface
> set arptable_($t) [new ARPTable $self $mac]
> set arptable $arptable_($t)
> # FOR backward compatibility sake, hack only
> if {$imepflag != ""} {
> set drpT [$self mobility-trace Drop "IFQ"]
> } else {
> set drpT [cmu-trace Drop "IFQ" $self]
> }
> $arptable_($t) drop-target $drpT // Should be changed to this here
> if { $namfp != "" } {
> $drpT namattach $namfp
> }
>
> #
> # Link Layer
> #
> $ll arptable $arptable_($t) // Should be changed to this here
> $ll mac $mac
> $ll down-target $ifq
More information about the Ns-users
mailing list