LEFT | RIGHT |
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) 2014, INDIAN INSTITUTE OF TECHNOLOGY, MADRAS(NETWORK ENGINEERIN
G AND ANALYTICS GROUP) | 3 * Copyright (c) 2014, INDIAN INSTITUTE OF TECHNOLOGY, MADRAS(NETWORK ENGINEERIN
G AND ANALYTICS GROUP) |
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 Ptr<NetDevice> dev = node->GetDevice(k); | 169 Ptr<NetDevice> dev = node->GetDevice(k); |
170 Ptr<WifiNetDevice> wifi_dev = DynamicCast<WifiNetDevice>(dev); | 170 Ptr<WifiNetDevice> wifi_dev = DynamicCast<WifiNetDevice>(dev); |
171 if (wifi_dev != NULL) | 171 if (wifi_dev != NULL) |
172 { | 172 { |
173 Ptr<WifiMac> mac = wifi_dev->GetMac(); | 173 Ptr<WifiMac> mac = wifi_dev->GetMac(); |
174 PointerValue ptr; | 174 PointerValue ptr; |
175 mac->GetAttribute("DcaTxop", ptr); | 175 mac->GetAttribute("DcaTxop", ptr); |
176 Ptr<DcaTxop> dca = ptr.Get<DcaTxop>(); | 176 Ptr<DcaTxop> dca = ptr.Get<DcaTxop>(); |
177 Ptr<WifiMacQueue> macQueue_ptr = dca->GetQueue(); | 177 Ptr<WifiMacQueue> macQueue_ptr = dca->GetQueue(); |
178 Ptr<WeightedFairQueue> wfq_ptr = macQueue_ptr->GetWfq(); | 178 Ptr<WeightedFairQueue> wfq_ptr = macQueue_ptr->GetWfq(); |
179 NS_ASSERT(wfq_ptr->m_weightsTable.size() < m_maxFlows); | 179 NS_ASSERT(wfq_ptr->m_weightsTable.size() < wfq_ptr->m_maxFlows); |
180 wfq_ptr->m_weightsTable.insert(std::make_pair(std::make_pair(src_a
ddress, dest_address), weights)); | 180 wfq_ptr->m_weightsTable.insert(std::make_pair(std::make_pair(src_a
ddress, dest_address), weights)); |
181 | 181 |
182 wifiNode = true; | 182 wifiNode = true; |
183 } | 183 } |
184 } | 184 } |
185 NS_ASSERT(wifiNode == true); | 185 NS_ASSERT(wifiNode == true); |
186 } | 186 } |
187 } | 187 } |
188 | 188 |
189 | 189 |
(...skipping 25 matching lines...) Expand all Loading... |
215 wfq_ptr->m_mode = DESTINATION; | 215 wfq_ptr->m_mode = DESTINATION; |
216 else if (modeNameValue == "SourceDestination") | 216 else if (modeNameValue == "SourceDestination") |
217 wfq_ptr->m_mode = SOURCE_DESTINATION; | 217 wfq_ptr->m_mode = SOURCE_DESTINATION; |
218 wifiNode = true; | 218 wifiNode = true; |
219 } | 219 } |
220 } | 220 } |
221 NS_ASSERT(wifiNode == true); | 221 NS_ASSERT(wifiNode == true); |
222 } | 222 } |
223 } | 223 } |
224 } // namespace ns3 | 224 } // namespace ns3 |
LEFT | RIGHT |