Hello Frd, In ns2-aodv, RREQ is raised whenever a packet is added to the rqueue.If you want to send RREQ randomly without looking at your rqueue then you can use recv function and just call RREQ with some condition. I think it will work for you. Itishi ________________________________ From: teklay gebremichael <teklis...@yahoo.com> To: "aodvimpl-pub...@lists.sourceforge.net" <aodvimpl-pub...@lists.sourceforge.net> Sent: Monday, 25 February 2013 7:15 PM Subject: [Aodvimpl] Modelling RREQ Flooding attack in AODV Hello every one, I am currently working on a simulation study of "Prevention of Flooding Attack in AODV routing protocol". I want just one of the nodes to be malicious and send fake RREQ to the network but i am new to the AODV code and don't know the things to be added or modified in the existing code of AODV and reflect this in the TCL code of the simulation. Can any one suggest me on how to proceed to model the flooding attack? Thanks in advance! Teklay ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Aodvimpl-public mailing list aodvimpl-pub...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/aodvimpl-public