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) 2005,2006,2007 INRIA | 3 * Copyright (c) 2005,2006,2007 INRIA |
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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 { | 295 { |
296 NS_LOG_LOGIC ("Doesn't need ARP"); | 296 NS_LOG_LOGIC ("Doesn't need ARP"); |
297 m_tc->Send (m_device, Create<Ipv4QueueDiscItem> (p, m_device->GetBroadcast
(), Ipv4L3Protocol::PROT_NUMBER, hdr)); | 297 m_tc->Send (m_device, Create<Ipv4QueueDiscItem> (p, m_device->GetBroadcast
(), Ipv4L3Protocol::PROT_NUMBER, hdr)); |
298 } | 298 } |
299 } | 299 } |
300 | 300 |
301 uint32_t | 301 uint32_t |
302 Ipv4Interface::GetNAddresses (void) const | 302 Ipv4Interface::GetNAddresses (void) const |
303 { | 303 { |
304 NS_LOG_FUNCTION (this); | 304 NS_LOG_FUNCTION (this); |
305 return m_ifaddrs.size (); | 305 return static_cast<uint32_t> (m_ifaddrs.size ()); |
306 } | 306 } |
307 | 307 |
308 bool | 308 bool |
309 Ipv4Interface::AddAddress (Ipv4InterfaceAddress addr) | 309 Ipv4Interface::AddAddress (Ipv4InterfaceAddress addr) |
310 { | 310 { |
311 NS_LOG_FUNCTION (this << addr); | 311 NS_LOG_FUNCTION (this << addr); |
312 m_ifaddrs.push_back (addr); | 312 m_ifaddrs.push_back (addr); |
313 return true; | 313 return true; |
314 } | 314 } |
315 | 315 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 Ipv4InterfaceAddress ifAddr = *it; | 381 Ipv4InterfaceAddress ifAddr = *it; |
382 m_ifaddrs.erase(it); | 382 m_ifaddrs.erase(it); |
383 return ifAddr; | 383 return ifAddr; |
384 } | 384 } |
385 } | 385 } |
386 return Ipv4InterfaceAddress(); | 386 return Ipv4InterfaceAddress(); |
387 } | 387 } |
388 | 388 |
389 } // namespace ns3 | 389 } // namespace ns3 |
390 | 390 |
LEFT | RIGHT |