LEFT | RIGHT |
(no file at all) | |
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) 2008,2009 IITP RAS | 3 * Copyright (c) 2008,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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 return Mac48Address::GetMulticast (addr); | 326 return Mac48Address::GetMulticast (addr); |
327 } | 327 } |
328 | 328 |
329 //----------------------------------------------------------------------------- | 329 //----------------------------------------------------------------------------- |
330 // Interfaces | 330 // Interfaces |
331 //----------------------------------------------------------------------------- | 331 //----------------------------------------------------------------------------- |
332 uint32_t | 332 uint32_t |
333 MeshPointDevice::GetNInterfaces () const | 333 MeshPointDevice::GetNInterfaces () const |
334 { | 334 { |
335 NS_LOG_FUNCTION (this); | 335 NS_LOG_FUNCTION (this); |
336 return m_ifaces.size (); | 336 return static_cast<uint32_t> (m_ifaces.size ()); |
337 } | 337 } |
338 | 338 |
339 Ptr<NetDevice> | 339 Ptr<NetDevice> |
340 MeshPointDevice::GetInterface (uint32_t n) const | 340 MeshPointDevice::GetInterface (uint32_t n) const |
341 { | 341 { |
342 NS_LOG_FUNCTION (this << n); | 342 NS_LOG_FUNCTION (this << n); |
343 for (std::vector<Ptr<NetDevice> >::const_iterator i = m_ifaces.begin (); i !=
m_ifaces.end (); i++) | 343 for (std::vector<Ptr<NetDevice> >::const_iterator i = m_ifaces.begin (); i !=
m_ifaces.end (); i++) |
344 { | 344 { |
345 if ((*i)->GetIfIndex () == n) | 345 if ((*i)->GetIfIndex () == n) |
346 { | 346 { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 void | 482 void |
483 MeshPointDevice::ResetStats () | 483 MeshPointDevice::ResetStats () |
484 { | 484 { |
485 NS_LOG_FUNCTION (this); | 485 NS_LOG_FUNCTION (this); |
486 m_rxStats = Statistics (); | 486 m_rxStats = Statistics (); |
487 m_txStats = Statistics (); | 487 m_txStats = Statistics (); |
488 m_fwdStats = Statistics (); | 488 m_fwdStats = Statistics (); |
489 } | 489 } |
490 | 490 |
491 } // namespace ns3 | 491 } // namespace ns3 |
LEFT | RIGHT |