How to modify the AODV source code?

310 views
Skip to first unread message

Cowan Krishna DeLeon

unread,
Jul 20, 2019, 12:29:58 PM7/20/19
to ns-3-users
Hello. I'm new to using ns-3 and I want to add my own functions to the AODV source code. I have already put the functions in the "aodv-routing-protocol.cc" and "aodv-routing-protocol.h" files, but I can't seem to find the file that calls all the functions. What file do I edit the call the functions that I made myself? Thanks.

Jay Patel

unread,
Jul 20, 2019, 12:57:55 PM7/20/19
to ns-3-...@googlegroups.com
Hello Cowan Krishna,

Can you please share the same ? I’ll look into it and get back to you.

Thanks.

Jay Patel

On Sat, Jul 20, 2019 at 1:30 PM Cowan Krishna DeLeon <cowan_...@dlsu.edu.ph> wrote:
Hello. I'm new to using ns-3 and I want to add my own functions to the AODV source code. I have already put the functions in the "aodv-routing-protocol.cc" and "aodv-routing-protocol.h" files, but I can't seem to find the file that calls all the functions. What file do I edit the call the functions that I made myself? Thanks.



DISCLAIMER AND CONFIDENTIALITY NOTICE 
The information contained in this e-mail, including those in its attachments, is confidential and intended only for the person(s) or entity(ies) to which it is addressed. If you are not an intended recipient, you must not read, copy, store, disclose, distribute this message, or act in reliance upon the information contained in it. If you received this e-mail in error, please contact the sender and delete the material from any computer or system. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of De La Salle University. 

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/16157beb-7743-4c20-a681-48e991ff0cd1%40googlegroups.com.
--
With Regards,
Jay Patel

Cowan Krishna DeLeon

unread,
Jul 20, 2019, 2:54:52 PM7/20/19
to ns-3-users

I have attached the AODV src folder. The files I have edited are:
- aodv-routing-protocol.cc
- aodv-routing-protocol.h
- aodv-packet.cc
- aodv-packet.h

thanks
On Sunday, July 21, 2019 at 12:57:55 AM UTC+8, Jay Patel wrote:
Hello Cowan Krishna,

Can you please share the same ? I’ll look into it and get back to you.

Thanks.

Jay Patel
On Sat, Jul 20, 2019 at 1:30 PM Cowan Krishna DeLeon <cowan_...@dlsu.edu.ph> wrote:
Hello. I'm new to using ns-3 and I want to add my own functions to the AODV source code. I have already put the functions in the "aodv-routing-protocol.cc" and "aodv-routing-protocol.h" files, but I can't seem to find the file that calls all the functions. What file do I edit the call the functions that I made myself? Thanks.



DISCLAIMER AND CONFIDENTIALITY NOTICE 
The information contained in this e-mail, including those in its attachments, is confidential and intended only for the person(s) or entity(ies) to which it is addressed. If you are not an intended recipient, you must not read, copy, store, disclose, distribute this message, or act in reliance upon the information contained in it. If you received this e-mail in error, please contact the sender and delete the material from any computer or system. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of De La Salle University. 

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-...@googlegroups.com.
AODV-Modify.zip

Adi Saravanan

unread,
Feb 14, 2020, 12:53:19 AM2/14/20
to ns-3-users
as far as i can see, you have added the code for a blackhole attack, and you have made edits to the routing protocol.cc and the corresponding header. i could not find any changes in the packet .cc and header files. to call these functions, you need to do it from a simulation. for your understanding, i'll attach a code that implements blackhole attack using the same functions you created. if you and i have used the same patch it should work. also make sure that you have built the files you edited. that may be the problem if the example is still not running

Regards
Aditya Saravanan
blackhole.cc

Adi Saravanan

unread,
Feb 14, 2020, 1:00:21 AM2/14/20
to ns-3-users
Mr jay patel, this is unrelated to the doubt mentioned, but you have posted your contact number. i had a doubt regarding adding a new packet type in AODV and noticed that you have responded to my doubts before. i tried contacting you befor on the number mentioned but your number wasnt available. could you please send me a way to contact you. i would like some expert opinion please
Regards
 aditya saravanan

Hemant Saini

unread,
May 27, 2021, 9:49:14 AM5/27/21
to ns-3-users
hi Cowan Krishna DeLeon have you succeed in it can you pl tell what you want actually

Juan Antonio Arízaga Silva

unread,
May 27, 2021, 2:16:34 PM5/27/21
to ns-3-users
You have to use those files to perform some kind of simulation as somebody told you before.
Reply all
Reply to author
Forward
0 new messages