| 12 | | node.prototype("test:proto:sender", { |
| 13 | | 'destinationHost' => '192.168.1.1', |
| 14 | | 'packetSize' => 1024, |
| 15 | | 'port' => 3001, |
| 16 | | 'rate' => 300, |
| 17 | | 'protocol' => 'udp' |
| 18 | | }) |
| 19 | | node.prototype("test:proto:sender", { |
| 20 | | 'destinationHost' => '192.168.1.1', |
| 21 | | 'packetSize' => 1024, |
| 22 | | 'port' => 3002, |
| 23 | | 'rate' => 300, |
| 24 | | 'protocol' => 'udp' |
| 25 | | }) |
| 26 | | node.prototype("test:proto:sender", { |
| 27 | | 'destinationHost' => '192.168.1.1', |
| 28 | | 'packetSize' => 1024, |
| 29 | | 'port' => 3003, |
| 30 | | 'rate' => 300, |
| 31 | | 'protocol' => 'udp' |
| 32 | | }) |
| 33 | | node.net.w0.mode = "master" |
| 34 | | } |
| | 12 | node.prototype("test:proto:colocate_sender", { |
| | 13 | 'destinationHost' => '192.168.1.1', |
| | 14 | 'packetSize' => 1024, |
| | 15 | 'port1' => 3001, |
| | 16 | 'port2' => 3002, |
| | 17 | 'port3' => 3004, |
| | 18 | 'rate' => 300, |
| | 19 | 'protocol' => 'udp' |
| | 20 | }) |
| | 21 | node.net.w0.mode = "master" |
| | 22 | } |
| 36 | | defNodes('receiver', [1,1]) {|node| |
| 37 | | node.image = nil # assume the right image to be on disk |
| 38 | | node.prototype("test:proto:receiver" , { |
| 39 | | 'protocol' => 'udp' |
| 40 | | }) |
| 41 | | node.net.w0.mode = "managed" |
| 42 | | } |
| | 24 | defNodes('receiver', [1,1]) {|node| |
| | 25 | node.image = nil # assume the right image to be on disk |
| | 26 | node.prototype("test:proto:receiver" , { |
| | 27 | 'protocol' => 'udp' |
| | 28 | }) |
| | 29 | node.net.w0.mode = "managed" |
| | 30 | } |