As all the simple modules' behavior like 80211 mac layer has been defined in the INET module. If I want to add a customize layer between mac layer and network layer to handle network coding. How can I combine the customize module and INET's simple module ?
相关问题
- Sorting 3 numbers without branching [closed]
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- thread_local variables initialization
- What uses more memory in c++? An 2 ints or 2 funct
相关文章
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
- What exactly do pointers store? (C++)
- Converting glm::lookat matrix to quaternion and ba
- What is the correct way to declare and use a FILE
To add a new module between network layer and MAC layer I suggest creating a modified host in a new project. For
OMNeT++
4.6 andINET
3.2.4 do the following:OMNeT++
empty project with src and simulation directories.Properties
|Project References
and selectinet
.src
and selectNew
|Simple module
. Call itDummyLayer.ned
.Open
DummyLayer.ned
and add:Modify
DummyLayer.h
andDummyLayer.cc
(this module just passes every message from up and down, as well as increments counters):Create a new compound module for own host, call it
WirelessHostEx.ned
:An own host module is necessary because
StandardHost
fromINET
creates connection between MAC and network layer automatically and it is not possible to add own module between these layers.Create a network (for test):
Modify
omnetpp.ini
:After starting the simulation one can see that in each host
dummyLayer
send messages forward.