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) 2009 Strasbourg University | 3 * Copyright (c) 2009 Strasbourg University |
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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 226 |
227 void RadvdInterface::SetRetransTimer (uint32_t retransTimer) | 227 void RadvdInterface::SetRetransTimer (uint32_t retransTimer) |
228 { | 228 { |
229 NS_LOG_FUNCTION (this << retransTimer); | 229 NS_LOG_FUNCTION (this << retransTimer); |
230 m_retransTimer = retransTimer; | 230 m_retransTimer = retransTimer; |
231 } | 231 } |
232 | 232 |
233 uint8_t RadvdInterface::GetCurHopLimit () const | 233 uint8_t RadvdInterface::GetCurHopLimit () const |
234 { | 234 { |
235 NS_LOG_FUNCTION (this); | 235 NS_LOG_FUNCTION (this); |
236 return (uint8_t)m_curHopLimit; | 236 return static_cast<uint8_t> (m_curHopLimit); |
237 } | 237 } |
238 | 238 |
239 void RadvdInterface::SetCurHopLimit (uint8_t curHopLimit) | 239 void RadvdInterface::SetCurHopLimit (uint8_t curHopLimit) |
240 { | 240 { |
241 NS_LOG_FUNCTION (this << curHopLimit); | 241 NS_LOG_FUNCTION (this << curHopLimit); |
242 m_curHopLimit = curHopLimit; | 242 m_curHopLimit = curHopLimit; |
243 } | 243 } |
244 | 244 |
245 uint8_t RadvdInterface::GetDefaultPreference () const | 245 uint8_t RadvdInterface::GetDefaultPreference () const |
246 { | 246 { |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 } | 352 } |
353 } | 353 } |
354 | 354 |
355 bool RadvdInterface::IsInitialRtrAdv () | 355 bool RadvdInterface::IsInitialRtrAdv () |
356 { | 356 { |
357 return m_initialRtrAdvertisementsLeft; | 357 return m_initialRtrAdvertisementsLeft; |
358 } | 358 } |
359 | 359 |
360 } /* namespace ns3 */ | 360 } /* namespace ns3 */ |
361 | 361 |
LEFT | RIGHT |