Farzan Badakhshan
Farzan Badakhshan

Reputation: 403

OMNET++: How to replace INET 4.0 submodules in my custom inherited module?

I have an AdhocHost which is inherited from INET's own AdhocHost module, however, I wish to replace the Network Interface Card (wlan) with the one I have manually developed. How can I do that?

Upvotes: 0

Views: 175

Answers (1)

Farzan Badakhshan
Farzan Badakhshan

Reputation: 403

Ok... so after digging into INET's code, I found out that it's easily possible using the typename parameter.

I simply had to add the following line to the parameters section of my CustomAdhoc.ned:

wlan[*].typename = default("myCustomNic");

Upvotes: 1

Related Questions