0
votes

I have to simulate a network in OMNeT++ with one sources, some sinks e some forwarding nodes. The forwarding nodes have to use the aodv routing algorithm to route packets. I am using Inet framework and my network is based on the AdhocHost, I can only change the role of the AdHocHost from the omnetpp.ini file. I thought I could change the type of the node in this way:

**.host[4].typename="AodvRouter"

(the host, as mentioned before, is declared in .ned file as an AdHocHost) but it doesn't work. Can somebody suggest me how can I do to solve the probleme?

1

1 Answers

0
votes

If you define the host type in your network file (NED), you cannot change it afterwards in the INI file. **.typename feature can be used ONLY if you have defined your module as a module interface (with the like keyword). So in short, change the host type in the network definition (NED) file.