%description: Tests IPv4NetworkConfigurator for a wireless LAN. %file: test.ned import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator; import inet.node.ethernet.EtherSwitch; import inet.node.ethernet.Eth10M; import inet.node.inet.Router; import inet.node.inet.StandardHost; import inet.node.inet.WirelessHost; import inet.node.wireless.AccessPoint; import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium; network Test { parameters: int numHosts; submodules: configurator: IPv4NetworkConfigurator { parameters: dumpAddresses = true; } radioMedium: Ieee80211ScalarRadioMedium; server: StandardHost; router: Router; accessPoint: AccessPoint; mobile[numHosts]: WirelessHost; connections: server.ethg++ <--> Eth10M <--> router.ethg++; router.ethg++ <--> Eth10M <--> accessPoint.ethg++; } %inifile: omnetpp.ini [General] network = Test cmdenv-express-mode = false tkenv-plugin-path = ../../../etc/plugins ned-path = .;../../../../src;../../lib sim-time-limit = 1s #omnetpp 5.0 - 5.1 compatibility: eventlog-file = "${resultdir}/${configname}-${runnumber}.elog" output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca" output-vector-file = "${resultdir}/${configname}-${runnumber}.vec" snapshot-file = "${resultdir}/${configname}-${runnumber}.sna" *.numHosts = 3 **.constraintAreaMinX = 0m **.constraintAreaMinY = 0m **.constraintAreaMinZ = 0m **.constraintAreaMaxX = 1000m **.constraintAreaMaxY = 1000m **.constraintAreaMaxZ = 0m %contains-regex: stdout Link 0 server / eth0 id=\d+ on:nwLayer.ifOut\[\d+\] MTU:1500 BROADCAST MULTICAST macAddr:0A-AA-00-00-00-[0-9A-F]{2} IPv4:\{inet_addr:10.0.0.1/30.*\} router / eth0 id=\d+ on:nwLayer.ifOut\[\d+\] MTU:1500 BROADCAST MULTICAST macAddr:0A-AA-00-00-00-[0-9A-F]{2} IPv4:\{inet_addr:10.0.0.2/30.*\} Link 1 router / eth1 id=\d+ on:nwLayer.ifOut\[\d+\] MTU:1500 BROADCAST MULTICAST macAddr:0A-AA-00-00-00-[0-9A-F]{2} IPv4:\{inet_addr:10.0.0.9/29.*\} mobile\[0\] / wlan0 id=\d+ on:nwLayer.ifOut\[\d+\] MTU:2304 BROADCAST MULTICAST macAddr:0A-AA-00-00-00-[0-9A-F]{2} IPv4:\{inet_addr:10.0.0.10/29.*\} mobile\[1\] / wlan0 id=\d+ on:nwLayer.ifOut\[\d+\] MTU:2304 BROADCAST MULTICAST macAddr:0A-AA-00-00-00-[0-9A-F]{2} IPv4:\{inet_addr:10.0.0.11/29.*\} mobile\[2\] / wlan0 id=\d+ on:nwLayer.ifOut\[\d+\] MTU:2304 BROADCAST MULTICAST macAddr:0A-AA-00-00-00-[0-9A-F]{2} IPv4:\{inet_addr:10.0.0.12/29.*\} %#-------------------------------------------------------------------------------------------------------------- %not-contains: stdout undisposed object: %not-contains: stdout -- check module destructor %#--------------------------------------------------------------------------------------------------------------