[ns] Disabling ARP protocol for MAC evaluation
Michael Timmers
michael.timmers at gmail.com
Wed Nov 8 09:29:10 PST 2006
first you need to get a tcl reference for the arp-table:
e.g. ($val(nn) = number of nodes in simulation)
for {set i 0} {$i < $val(nn) } { incr i } {
set ll($i) [$node_($i) set ll_(0)]
set arp($i) [$ll($i) get-arptable]
}
then you can put entries in the arp-table.
for {set i 0} {$i < $val(nn) } { incr i } {
for {set j 0} {$j < $val(nn) } { incr j } {
if { $j != $i } then {
$arp($i) putentry_mobile $node_($j) $ll($j)
}
}
}
now you have fixed all the arp-tables.
I hope this helps.
grtz,
Michael
More information about the Ns-users
mailing list