NS2 Notebook: Multi-channel Multi-interface Simulation in NS2 (2.29)

Back to Index


8. Modifications in tcl/lib/ns-mobilenode.tcl


# Manual Routing
Node/MobileNode instproc add-route-tag {dst tag} {
set ragent [$self set ragent_]

$ragent add-route-tag $dst $tag
}

#Manual Routing
Node/MobileNode instproc add-next-hop {dst tag hop nic} {
set ragent [$self set ragent_]

$ragent add-next-hop $dst $tag $hop $nic
}

 

 
© Copyright 2008. All rights reserved. Powered by Free Site Templates