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) 2009 University of Washington | 3 * Copyright (c) 2009 University of Washington |
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 if (m_ipv6 != 0) | 250 if (m_ipv6 != 0) |
251 { | 251 { |
252 routingProtocol->SetIpv6 (m_ipv6); | 252 routingProtocol->SetIpv6 (m_ipv6); |
253 } | 253 } |
254 } | 254 } |
255 | 255 |
256 uint32_t | 256 uint32_t |
257 Ipv6ListRouting::GetNRoutingProtocols (void) const | 257 Ipv6ListRouting::GetNRoutingProtocols (void) const |
258 { | 258 { |
259 NS_LOG_FUNCTION (this); | 259 NS_LOG_FUNCTION (this); |
260 return m_routingProtocols.size (); | 260 return static_cast<uint32_t> (m_routingProtocols.size ()); |
261 } | 261 } |
262 | 262 |
263 Ptr<Ipv6RoutingProtocol> | 263 Ptr<Ipv6RoutingProtocol> |
264 Ipv6ListRouting::GetRoutingProtocol (uint32_t index, int16_t& priority) const | 264 Ipv6ListRouting::GetRoutingProtocol (uint32_t index, int16_t& priority) const |
265 { | 265 { |
266 NS_LOG_FUNCTION (index); | 266 NS_LOG_FUNCTION (index); |
267 if (index > m_routingProtocols.size ()) | 267 if (index > m_routingProtocols.size ()) |
268 { | 268 { |
269 NS_FATAL_ERROR ("Ipv6ListRouting::GetRoutingProtocol (): index " << index
<< " out of range"); | 269 NS_FATAL_ERROR ("Ipv6ListRouting::GetRoutingProtocol (): index " << index
<< " out of range"); |
270 } | 270 } |
(...skipping 12 matching lines...) Expand all Loading... |
283 | 283 |
284 bool | 284 bool |
285 Ipv6ListRouting::Compare (const Ipv6RoutingProtocolEntry& a, const Ipv6RoutingPr
otocolEntry& b) | 285 Ipv6ListRouting::Compare (const Ipv6RoutingProtocolEntry& a, const Ipv6RoutingPr
otocolEntry& b) |
286 { | 286 { |
287 return a.first > b.first; | 287 return a.first > b.first; |
288 } | 288 } |
289 | 289 |
290 | 290 |
291 } // namespace ns3 | 291 } // namespace ns3 |
292 | 292 |
LEFT | RIGHT |