Hi Vinod, I think that (a = b) is not a boolean expression. It means that it is probably not the function you are expecting. In C/C++ the operator "=" is not the comparison operator but the affectation one. If you want to compare 'a' and 'b', you must write "assert(a == b)".
Regards, Benjamin -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Vinod Envoyé : dimanche 16 avril 2006 11:17 À : ns-users@ISI.EDU Objet : [ns] assert() function not workin 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. > >