If you have read any of the answers here
https://www.linuxquestions.org/quest...s2-4175664649/
... or some ns2 simulation files, you will know that a mac protocol is not entered this way:
-macType $val(tmac)
But with :
Code:
set val(mac) Mac/TMac ;# MAC type
Besides that, a protocols needs to be added to the simulator, like this
Code:
ns2/
├── mac/
│ ├── tmac.cc
│ ├── tmac.h
├── common/
│ └── packet.h
├── Makefile.in
└── tcl/
└── lib/
├── ns-default.tcl
├── ns-mobilenode.tcl
└── ns-packet.tcl
What we know is that the AquaSim "underwatersensor/uw_mac/{tmac.cc, tmac.h}"
.. were edited from the original "TMAC time out mac {tmac.cc, tmac.h}"
.. to do also the underwater stuff.
?May be you can edit the AquaSim {tmac.cc, tmac.h} to work without the uw functions?
-