[ns] source codes of multi interface in NS-2

lyslff lyslff at 163.com
Mon Jul 9 17:52:14 PDT 2007


Hi all,I'm adding multiple interface in NS-2 based on Ramon's tutorial.http://personales.unican.es/aguerocrI have completed all the steps in the tutorial but the listing 5.5. I changed the listing 5.5 as Scheduler::instance().schedule(targetlist[rt->rt_interface], p, 0.); where rt_interface is a member variable in rt_entry class. and it is updated in recvreply and recvrequest function: rt0->rt_interface=ch->iface()-((Mac *)ifqueuelist[0]->target())->addr();and I run a simple script that a node with two interfaces send packet to another node with single interface. but the result is that the two nodes can only communicate through interface 0.Did anyone successfully implemented this? Could you help me?I put my modified codes and the script in the attachment. Please help.Best regards   


More information about the Ns-users mailing list