hi all,
I am working on Adding Multiple Interface Support in NS-2 available on
ttp://personales.unican.es/aguerocr/ based on AODV .My question is that
sending a unicast packet.which interface should send to ?
listing 5.4
if(nIfaces)
{ Scheduler::instance().scheduler(,targetlist[nIface],pkt,0,) }
else
{ Scheduler::instance().scheduler(,targetlist,pkt,0 }
listing 5.5
if(nIfaces)
{
Iface=cmn->iface()->((Mac *)ifqueuelist[0]->target())->addr();
}
else
{
Iface=-1;
}
I set nIface as a member of AODV::sendReply(),and add listing 5.4 ,5.5 in
AODV::sendReply,but when I make ns,
It gives me error information: cmn is not defined! why?
any help will be appreciation!
人山人海盛景,尽在梦幻西游