IPv4_ICMPerror_NoProtocol.test 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. %description:
  2. Test for bug #463: IPv4: missing ICMP error
  3. that initiated the packet causing the error.
  4. NClients example network is used, with one client.
  5. Server doesn't have any UDP app ==> doesn't have UDP layer.
  6. The client sends an UDP datagram to the server.
  7. The server generates an Destination Unreachable ICMP error
  8. that should be received by the client application in the
  9. form of an error indication.
  10. %#--------------------------------------------------------------------------------------------------------------
  11. %inifile: test.ini
  12. [General]
  13. ned-path = ../../../../examples;../../../../src
  14. network = inet.examples.inet.nclients.NClients
  15. sim-time-limit=15s
  16. cmdenv-express-mode=false
  17. #omnetpp 5.0 - 5.1 compatibility:
  18. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  19. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  20. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  21. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  22. # number of client computers
  23. *.n = 1
  24. # udp apps
  25. **.cli[*].numUdpApps = 1
  26. **.cli[*].udpApp[*].typename = "UDPBasicApp"
  27. **.cli[*].udpApp[0].destAddresses = "srv"
  28. **.cli[*].udpApp[0].destPort = 1000
  29. **.cli[*].udpApp[0].messageLength = 100B
  30. **.cli[*].udpApp[0].startTime = 10s
  31. **.cli[*].udpApp[0].stopTime = 11s
  32. **.cli[*].udpApp[0].sendInterval = 10s
  33. **.srv.numUdpApps = 0
  34. # Ethernet NIC configuration
  35. **.eth[*].queueType = "DropTailQueue" # in routers
  36. **.eth[*].queue.dataQueue.frameCapacity = 10 # in routers
  37. **.eth[*].mac.duplexEnabled = true
  38. %#--------------------------------------------------------------------------------------------------------------
  39. %subst: /DETAIL: //
  40. %subst: /ERROR: //
  41. %#--------------------------------------------------------------------------------------------------------------
  42. %contains: stdout
  43. Transport protocol ID=17 not connected, discarding packet
  44. sending ICMP error ICMP-error-#1-type3-code2
  45. %#--------------------------------------------------------------------------------------------------------------
  46. %not-contains: stdout
  47. undisposed object:
  48. %#--------------------------------------------------------------------------------------------------------------
  49. %not-contains: stdout
  50. -- check module destructor
  51. %#--------------------------------------------------------------------------------------------------------------