Beruflich Dokumente
Kultur Dokumente
1 of 2
http://mailman.isi.edu/pipermail/ns-developers/2005-Novemb...
---if its data, I suggest you start by hacking C++ DSR code:
TCL:
- define a new binded variable for identifying the special node(s) that will
be selfish.
- define a default value for it in tcl/lib/ns-default.tcl
- in your script enable the flag of said node
C++
- find the C++ recv() function that consults the DSR routing table
On simple way is to break the execution somewhere in the middle of the
simulation, then proceed until a packet passes at DSR code
- at this point, drop all packets with "free" if the flag is on.
Pedro Vale Estrela
http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
04/26/2013 12:49 PM
2 of 2
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
http://mailman.isi.edu/pipermail/ns-developers/2005-Novemb...
04/26/2013 12:49 PM