OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2009 IITP RAS | 3 * Copyright (c) 2009 IITP RAS |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "ns3/string.h" | 27 #include "ns3/string.h" |
28 #include "ns3/mobility-helper.h" | 28 #include "ns3/mobility-helper.h" |
29 #include "ns3/double.h" | 29 #include "ns3/double.h" |
30 #include "ns3/uinteger.h" | 30 #include "ns3/uinteger.h" |
31 #include "ns3/string.h" | 31 #include "ns3/string.h" |
32 #include "ns3/boolean.h" | 32 #include "ns3/boolean.h" |
33 #include "ns3/yans-wifi-helper.h" | 33 #include "ns3/yans-wifi-helper.h" |
34 #include "ns3/internet-stack-helper.h" | 34 #include "ns3/internet-stack-helper.h" |
35 #include "ns3/ipv4-address-helper.h" | 35 #include "ns3/ipv4-address-helper.h" |
36 #include "ns3/abort.h" | 36 #include "ns3/abort.h" |
| 37 #include "ns3/config.h" |
| 38 #include "ns3/boolean.h" |
37 #include "ns3/udp-echo-helper.h" | 39 #include "ns3/udp-echo-helper.h" |
38 #include "ns3/mobility-model.h" | 40 #include "ns3/mobility-model.h" |
39 #include "ns3/pcap-file.h" | 41 #include "ns3/pcap-file.h" |
40 #include "ns3/aodv-helper.h" | 42 #include "ns3/aodv-helper.h" |
41 #include "ns3/v4ping-helper.h" | 43 #include "ns3/v4ping-helper.h" |
42 #include "ns3/nqos-wifi-mac-helper.h" | 44 #include "ns3/nqos-wifi-mac-helper.h" |
43 #include "ns3/config.h" | 45 #include "ns3/config.h" |
44 #include "ns3/on-off-helper.h" | 46 #include "ns3/on-off-helper.h" |
45 #include "ns3/inet-socket-address.h" | 47 #include "ns3/inet-socket-address.h" |
46 #include "ns3/data-rate.h" | 48 #include "ns3/data-rate.h" |
(...skipping 20 matching lines...) Expand all Loading... |
67 Bug772ChainTest::~Bug772ChainTest () | 69 Bug772ChainTest::~Bug772ChainTest () |
68 { | 70 { |
69 delete m_nodes; | 71 delete m_nodes; |
70 } | 72 } |
71 | 73 |
72 void | 74 void |
73 Bug772ChainTest::DoRun () | 75 Bug772ChainTest::DoRun () |
74 { | 76 { |
75 RngSeedManager::SetSeed (12345); | 77 RngSeedManager::SetSeed (12345); |
76 RngSeedManager::SetRun (7); | 78 RngSeedManager::SetRun (7); |
| 79 Config::SetDefault ("ns3::TcpSocketBase::Timestamp", BooleanValue (false)); |
77 | 80 |
78 CreateNodes (); | 81 CreateNodes (); |
79 CreateDevices (); | 82 CreateDevices (); |
80 | 83 |
81 Simulator::Stop (m_time); | 84 Simulator::Stop (m_time); |
82 Simulator::Run (); | 85 Simulator::Run (); |
83 Simulator::Destroy (); | 86 Simulator::Destroy (); |
84 | 87 |
85 CheckResults (); | 88 CheckResults (); |
86 | 89 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } | 162 } |
160 | 163 |
161 void | 164 void |
162 Bug772ChainTest::CheckResults () | 165 Bug772ChainTest::CheckResults () |
163 { | 166 { |
164 for (uint32_t i = 0; i < m_size; i += (m_size - 1) /*first and last nodes only
*/) | 167 for (uint32_t i = 0; i < m_size; i += (m_size - 1) /*first and last nodes only
*/) |
165 { | 168 { |
166 NS_PCAP_TEST_EXPECT_EQ(m_prefix << "-" << i << "-0.pcap"); | 169 NS_PCAP_TEST_EXPECT_EQ(m_prefix << "-" << i << "-0.pcap"); |
167 } | 170 } |
168 } | 171 } |
OLD | NEW |