Hi Vinod,

This is because NDEBUG is defined in the makefile. Replace is with
DEBUG to enable asserts.

Dhammika



On 4/16/06, Vinod <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> can any one tell me why the assert() function is not working in ns-2
> implementation of AODV. Should we need to enable it somehow?
>
> I mean assert(a = b) is not giving any error even though a !=b . I checked
> this by keeping an if stmt. after that.
>
> also is there any command line param for 'ns' to enable debugging ? I
> remember something of the sort of "-st" in the command line but i forgot.
> Basically i want to enable all the  #ifdef DEBUG <stmts> #endif statments.
>
> plz let me know,
> vinod
> ----------------------
> Vinod Kone,
> Btech,Computer Science,
> VIII sem,
> Room 177,Kapili,
> IIT Guwahati.
>
> On Sun, 16 Apr 2006, Vinod wrote:
>
> > hi,
> >
> > ive a doubt in the AODV implementation in ns-2.
> >
> > Can anyone tell me a way to find the source of the pkt, given only the
> > "Packet P". That is ... I want to know the "originator" of the pkt.
> >
> > thanx,
> > vinod
> > ----------------------
> > Vinod Kone,
> > Btech,Computer Science,
> > VIII sem,
> > Room 177,Kapili,
> > IIT Guwahati.
> >
> >
>
>

Reply via email to