[ns] AODV segmentation fault in Priqueue.cc filter()

Martin Wenig wenig at i4.informatik.rwth-aachen.de
Tue Apr 5 05:59:12 PDT 2005


Hi again!

Nevertheless, ifqueue is zero, at least that's what i understand from 
the gdb output:

#0  0x08125b32 in PriQueue::filter(int) (this=0x0, id=8)


If you created a new Routing agent with an OTcl -Name other than AODV, 
then you have to go to tcl/lib/ns-wireless.tcl and look for a procedure 
called
"Node/MobileNode instproc add-target { agent port }".

There you will have to insert someting like that:

set paraonly [string first "PARA" [$agent info class]]
    if {$paraonly != -1 } {
        $agent if-queue [$self set ifq_(0)]   ;# ifq between LL and MAC
    }

This will call the command method to set the ifqueue. It is simply not 
called otherwise.
Of course you have to recompile after this modifications.

Let me know whether it worked out,
Martin


Valerie Alandzi wrote:
>   Hi ! 
>
>Thanks for your help!!! But I actually did all you
>said .... What I do in my agent code is that depending
>on the context I am routing packets with AODV. Do I
>have to implement something special concerning the
>ifqueue ? 
>
>Valerie.
>
>  
+-----------------------------------------------------------------+
| Dipl.-Inform. Martin Wenig                                      |
| Aachen University of Technology       Phone: +49 (241) 80-21416 |
| Computer Science Department           Fax:   +49 (241) 80-22220 |
| Communication and Distributed Systems                           |
| Ahornstr 55, D-52074 Aachen, Germany                            |
| http://www-i4.informatik.rwth-aachen.de/                        |
+-----------------------------------------------------------------+




More information about the Ns-users mailing list