AOMDV protocol
My AOMDV code has officially included in the Ns-2 tree starting from release 2.34.
So, unless you need to use earlier releases (look here for instructions about patching 2.32 releas), you don't need to modify anithing.
Just download the following tcl file to simulate a static network of 16 nodes with a random data pattern:
cd
wget http://wpage.unina.it/marcello.caleffi/ns2/aomdv.tcl
ns aomdv.tcl