author | Tom Henderson <tomh@tomh.org> |
Thu, 19 Mar 2015 20:03:57 -0700 | |
changeset 11250 | 06390d19e6f9 |
parent 10440 | 1e48ff9185f1 |
permissions | -rw-r--r-- |
7385
10beb0e53130
standardize emacs c++ mode comments
Vedran Miletić <rivanvx@gmail.com>
parents:
7233
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
2 |
/* |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
3 |
* Copyright (c) 2009 University of Washington |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
4 |
* |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation; |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
8 |
* |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
13 |
* |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
17 |
*/ |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
18 |
|
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
19 |
#ifndef IPV4_LIST_ROUTING_H |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
20 |
#define IPV4_LIST_ROUTING_H |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
21 |
|
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
22 |
#include <list> |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
23 |
#include "ns3/ipv4-routing-protocol.h" |
6701
a590022a1536
[bug 947] Pretty-print IPv4 routing tables (patch originated by Hemanth Narra)
Tom Henderson <tomh@tomh.org>
parents:
6648
diff
changeset
|
24 |
#include "ns3/simulator.h" |
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
25 |
|
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
26 |
namespace ns3 { |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
27 |
|
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
28 |
/** |
7233
be0d7443b4ff
Updated the modules doxygen page
Mitch Watrous <watrous@u.washington.edu>
parents:
7176
diff
changeset
|
29 |
* \ingroup internet |
4674 | 30 |
* \defgroup ipv4ListRouting Ipv4 List Routing |
31 |
*/ |
|
32 |
/** |
|
33 |
* \ingroup ipv4ListRouting |
|
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
34 |
* |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
35 |
* This class is a specialization of Ipv4RoutingProtocol that allows |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
36 |
* other instances of Ipv4RoutingProtocol to be inserted in a |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
37 |
* prioritized list. Routing protocols in the list are consulted one |
4562
8539f55c6b55
Fix bug 587 for ListRoutingProtocol bug; add unit test
Tom Henderson <tomh@tomh.org>
parents:
4561
diff
changeset
|
38 |
* by one, from highest to lowest priority, until a routing protocol |
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
39 |
* is found that will take the packet (this corresponds to a non-zero |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
40 |
* return value to RouteOutput, or a return value of true to RouteInput). |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
41 |
* The order by which routing protocols with the same priority value |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
42 |
* are consulted is undefined. |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
43 |
* |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
44 |
*/ |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
45 |
class Ipv4ListRouting : public Ipv4RoutingProtocol |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
46 |
{ |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
47 |
public: |
10440
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
48 |
/** |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
49 |
* \brief Get the type ID of this class. |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
50 |
* \return type ID |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
51 |
*/ |
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
52 |
static TypeId GetTypeId (void); |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
53 |
|
7176
9f2663992e99
internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6834
diff
changeset
|
54 |
Ipv4ListRouting (); |
9f2663992e99
internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6834
diff
changeset
|
55 |
virtual ~Ipv4ListRouting (); |
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
56 |
|
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
57 |
/** |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
58 |
* \brief Register a new routing protocol to be used in this IPv4 stack |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
59 |
* |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
60 |
* \param routingProtocol new routing protocol implementation object |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
61 |
* \param priority priority to give to this routing protocol. |
7176
9f2663992e99
internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6834
diff
changeset
|
62 |
* Values may range between -32768 and +32767. |
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
63 |
*/ |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
64 |
virtual void AddRoutingProtocol (Ptr<Ipv4RoutingProtocol> routingProtocol, int16_t priority); |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
65 |
/** |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
66 |
* \return number of routing protocols in the list |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
67 |
*/ |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
68 |
virtual uint32_t GetNRoutingProtocols (void) const; |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
69 |
/** |
4562
8539f55c6b55
Fix bug 587 for ListRoutingProtocol bug; add unit test
Tom Henderson <tomh@tomh.org>
parents:
4561
diff
changeset
|
70 |
* Return pointer to routing protocol stored at index, with the |
8539f55c6b55
Fix bug 587 for ListRoutingProtocol bug; add unit test
Tom Henderson <tomh@tomh.org>
parents:
4561
diff
changeset
|
71 |
* first protocol (index 0) the highest priority, the next one (index 1) |
8539f55c6b55
Fix bug 587 for ListRoutingProtocol bug; add unit test
Tom Henderson <tomh@tomh.org>
parents:
4561
diff
changeset
|
72 |
* the second highest priority, and so on. The priority parameter is an |
8539f55c6b55
Fix bug 587 for ListRoutingProtocol bug; add unit test
Tom Henderson <tomh@tomh.org>
parents:
4561
diff
changeset
|
73 |
* output parameter and it returns the integer priority of the protocol. |
8539f55c6b55
Fix bug 587 for ListRoutingProtocol bug; add unit test
Tom Henderson <tomh@tomh.org>
parents:
4561
diff
changeset
|
74 |
* |
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
75 |
* \return pointer to routing protocol indexed by |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
76 |
* \param index index of protocol to return |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
77 |
* \param priority output parameter, set to the priority of the protocol |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
78 |
being returned |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
79 |
*/ |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
80 |
virtual Ptr<Ipv4RoutingProtocol> GetRoutingProtocol (uint32_t index, int16_t& priority) const; |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
81 |
|
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
82 |
// Below are from Ipv4RoutingProtocol |
5856
7fd20c798a7d
bug 742: Implementation of SO_BINDTODEVICE
Antti Mäkelä <zarhan@cc.hut.fi>
parents:
5524
diff
changeset
|
83 |
virtual Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header, Ptr<NetDevice> oif, Socket::SocketErrno &sockerr); |
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
84 |
|
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
85 |
virtual bool RouteInput (Ptr<const Packet> p, const Ipv4Header &header, Ptr<const NetDevice> idev, |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
86 |
UnicastForwardCallback ucb, MulticastForwardCallback mcb, |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
87 |
LocalDeliverCallback lcb, ErrorCallback ecb); |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
88 |
virtual void NotifyInterfaceUp (uint32_t interface); |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
89 |
virtual void NotifyInterfaceDown (uint32_t interface); |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
90 |
virtual void NotifyAddAddress (uint32_t interface, Ipv4InterfaceAddress address); |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
91 |
virtual void NotifyRemoveAddress (uint32_t interface, Ipv4InterfaceAddress address); |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
92 |
virtual void SetIpv4 (Ptr<Ipv4> ipv4); |
6701
a590022a1536
[bug 947] Pretty-print IPv4 routing tables (patch originated by Hemanth Narra)
Tom Henderson <tomh@tomh.org>
parents:
6648
diff
changeset
|
93 |
virtual void PrintRoutingTable (Ptr<OutputStreamWrapper> stream) const; |
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
94 |
|
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
95 |
protected: |
11250
06390d19e6f9
bug 1982: AODV uses random variables before seeds can be set
Tom Henderson <tomh@tomh.org>
parents:
10440
diff
changeset
|
96 |
virtual void DoDispose (void); |
06390d19e6f9
bug 1982: AODV uses random variables before seeds can be set
Tom Henderson <tomh@tomh.org>
parents:
10440
diff
changeset
|
97 |
virtual void DoInitialize (void); |
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
98 |
private: |
10440
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
99 |
/** |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
100 |
* \brief Container identifying an IPv4 Routing Protocol entry in the list. |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
101 |
*/ |
4570
5c6e1f086a36
avoid using non-portable reverse iterator methods
Tom Henderson <tomh@tomh.org>
parents:
4562
diff
changeset
|
102 |
typedef std::pair<int16_t, Ptr<Ipv4RoutingProtocol> > Ipv4RoutingProtocolEntry; |
10440
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
103 |
/** |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
104 |
* \brief Container of the IPv4 Routing Protocols. |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
105 |
*/ |
4570
5c6e1f086a36
avoid using non-portable reverse iterator methods
Tom Henderson <tomh@tomh.org>
parents:
4562
diff
changeset
|
106 |
typedef std::list<Ipv4RoutingProtocolEntry> Ipv4RoutingProtocolList; |
10440
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
107 |
Ipv4RoutingProtocolList m_routingProtocols; //!< List of routing protocols. |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
108 |
|
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
109 |
/** |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
110 |
* \brief Compare two routing protocols. |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
111 |
* \param a first object to compare |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
112 |
* \param b second object to compare |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
113 |
* \return true if they are the same, false otherwise |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
114 |
*/ |
4570
5c6e1f086a36
avoid using non-portable reverse iterator methods
Tom Henderson <tomh@tomh.org>
parents:
4562
diff
changeset
|
115 |
static bool Compare (const Ipv4RoutingProtocolEntry& a, const Ipv4RoutingProtocolEntry& b); |
10440
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
116 |
Ptr<Ipv4> m_ipv4; //!< Ipv4 this protocol is associated with. |
1e48ff9185f1
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
9703
diff
changeset
|
117 |
|
4570
5c6e1f086a36
avoid using non-portable reverse iterator methods
Tom Henderson <tomh@tomh.org>
parents:
4562
diff
changeset
|
118 |
|
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
119 |
}; |
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
120 |
|
7386
2310ed220a61
standardize ns-3 namespace declaration format
Vedran Miletić <rivanvx@gmail.com>
parents:
7385
diff
changeset
|
121 |
} // namespace ns3 |
4561
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
122 |
|
cf6e27dd3a08
Move Ipv4ListRouting to src/internet-stack; get rid of Impl class
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
123 |
#endif /* IPV4_LIST_ROUTING_H */ |