之前提到了omnetpp只是提供一个平台,具体的协议支持需要框架的支持。
下载了inet framework,安装过程中提示需要4.2版本以上的omnetpp,于是又下载了最新的omnetpp。
(安装4.2版本过程中最好关掉杀软)
./setenv
./configurate
make
ok!
之后把inet解压到omnet文件夹下,单独放在一个目录。用omnet控制台进到目录里:
make makefiles
make
cd examples
./rundemo
就可以看到基于这个框架的一些demo了。
wireless 802.11,正是我需要的!
This short Tutorial should help you to get the combination Omnet++ 4 (final) and INET (INET-20090325-opp4-src.tgz) working.
prerequisites:
Steps to go:
At his point you should be able to build the project with Ctrl-B.
Now do what you need/want to do. In my case i just created a new project and referenced the INET project in there