12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- %description:
- Tests that TimeToLive UDP socket option takes effect over IPv6.
- NClientsEth example network is used, with one client.
- The client sends a packet with a given TTL.
- It is checked that the server receives the datagram with the
- given TTL minus the number of hops.
- %#--------------------------------------------------------------------------------------------------------------
- %inifile: {}.ini
- [General]
- ned-path = ../../../../examples;../../../../src
- network = inet.examples.ipv6.nclients.NClientsEth
- sim-time-limit = 15s
- cmdenv-express-mode = false
- #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"
- # number of client computers
- *.n = 1
- # udp apps
- **.cli[*].numUdpApps = 1
- **.cli[*].udpApp[*].typename = "UDPBasicApp"
- **.cli[*].udpApp[0].destAddresses = "aaaa:2:2::8aa:ff:fe00:8" # "srv" does not work
- **.cli[*].udpApp[0].destPort = 1000
- **.cli[*].udpApp[0].messageLength = 64B
- **.cli[*].udpApp[0].timeToLive = 77 # some peculiar value
- **.cli[*].udpApp[0].startTime = 10s
- **.cli[*].udpApp[0].stopTime = 11s
- **.cli[*].udpApp[0].sendInterval = 10s
- **.srv.numUdpApps = 1
- **.srv.udpApp[*].typename = "UDPSink"
- **.srv.udpApp[0].localPort = 1000
- %#--------------------------------------------------------------------------------------------------------------
- %subst: /omnetpp:://
- %#--------------------------------------------------------------------------------------------------------------
- %contains-regex: stdout
- Received packet: \(inet::ApplicationPacket\)UDPBasicAppData-0 .* TTL=74
- %#--------------------------------------------------------------------------------------------------------------
- %not-contains: stdout
- undisposed object:
- %not-contains: stdout
- -- check module destructor
- %#--------------------------------------------------------------------------------------------------------------
|