Gello,
cmn is the common header of the packet, if it is not declared in the
method, you need to do this.
Cheers,
Ramón
At 03:58 28/05/2007, [EMAIL PROTECTED] wrote:
>
>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!
>
>
>
>ÈËɽÈ˺£Ê¢¾°£¬¾¡ÔÚÃλÃÎ÷ÓÎ