author | Tom Henderson <tomh@tomh.org> |
Tue, 10 Jul 2007 15:03:39 -0700 | |
changeset 1067 | 704eb2583865 |
parent 1063 | 98fe4e27c65a |
child 1068 | 019229673fb4 |
permissions | -rw-r--r-- |
1045
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
2 |
/* |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
3 |
* This program is free software; you can redistribute it and/or modify |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
4 |
* it under the terms of the GNU General Public License version 2 as |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
5 |
* published by the Free Software Foundation; |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
6 |
* |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
7 |
* This program is distributed in the hope that it will be useful, |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
8 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
9 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
10 |
* GNU General Public License for more details. |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
11 |
* |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
12 |
* You should have received a copy of the GNU General Public License |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
13 |
* along with this program; if not, write to the Free Software |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
14 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
15 |
*/ |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
16 |
#ifndef STATIC_ROUTE_MANAGER_H |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
17 |
#define STATIC_ROUTE_MANAGER_H |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
18 |
|
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
19 |
#include <stdint.h> |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
20 |
#include <list> |
1053 | 21 |
#include <map> |
1045
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
22 |
#include "ns3/object.h" |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
23 |
#include "ns3/ptr.h" |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
24 |
#include "ns3/ipv4-address.h" |
1053 | 25 |
#include "static-router.h" |
1045
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
26 |
|
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
27 |
namespace ns3 { |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
28 |
|
1062 | 29 |
const uint32_t SPF_INFINITY = 0xffffffff; |
30 |
||
1045
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
31 |
/** |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
32 |
* \brief Vertex used in shortest path first (SPF) computations |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
33 |
* |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
34 |
* See RFC 2328, Section 16. |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
35 |
*/ |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
36 |
class SPFVertex |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
37 |
{ |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
38 |
public: |
1062 | 39 |
SPFVertex(); |
1058
de579b1ff195
convert LSDB to class SPFVertex
Tom Henderson <tomh@tomh.org>
parents:
1053
diff
changeset
|
40 |
~SPFVertex(); |
1063
98fe4e27c65a
Initialize LSDB for SPF runs
Tom Henderson <tomh@tomh.org>
parents:
1062
diff
changeset
|
41 |
void Initialize (); |
1058
de579b1ff195
convert LSDB to class SPFVertex
Tom Henderson <tomh@tomh.org>
parents:
1053
diff
changeset
|
42 |
|
1045
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
43 |
enum VertexType { |
1062 | 44 |
VertexUnknown = 0, |
45 |
VertexRouter, |
|
1045
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
46 |
VertexNetwork |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
47 |
} m_vertexType; |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
48 |
|
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
49 |
Ipv4Address m_vertexId; |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
50 |
|
1058
de579b1ff195
convert LSDB to class SPFVertex
Tom Henderson <tomh@tomh.org>
parents:
1053
diff
changeset
|
51 |
StaticRouterLSA* m_lsa; // This pointer owns LSA for mem. mgmt purposes |
1045
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
52 |
|
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
53 |
typedef std::list<SPFVertex> type_listOfSPFVertex; |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
54 |
type_listOfSPFVertex m_parents; |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
55 |
type_listOfSPFVertex m_children; |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
56 |
type_listOfSPFVertex::iterator m_iter; |
1058
de579b1ff195
convert LSDB to class SPFVertex
Tom Henderson <tomh@tomh.org>
parents:
1053
diff
changeset
|
57 |
|
de579b1ff195
convert LSDB to class SPFVertex
Tom Henderson <tomh@tomh.org>
parents:
1053
diff
changeset
|
58 |
uint32_t m_distanceFromRoot; |
1062 | 59 |
|
60 |
bool m_stat; // true if LSA is in SPF tree already |
|
1045
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
61 |
}; |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
62 |
|
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
63 |
/** |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
64 |
* \brief The Link State DataBase (LSDB) of a static router |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
65 |
*/ |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
66 |
class StaticRouteManagerLSDB |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
67 |
{ |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
68 |
public: |
1053 | 69 |
~StaticRouteManagerLSDB (); |
1058
de579b1ff195
convert LSDB to class SPFVertex
Tom Henderson <tomh@tomh.org>
parents:
1053
diff
changeset
|
70 |
void Insert(Ipv4Address addr, SPFVertex* vertex); |
1067
704eb2583865
Iterate link records (16.1(2))
Tom Henderson <tomh@tomh.org>
parents:
1063
diff
changeset
|
71 |
void Insert(Ipv4Address addr, StaticRouterLSA* lsa); |
1058
de579b1ff195
convert LSDB to class SPFVertex
Tom Henderson <tomh@tomh.org>
parents:
1053
diff
changeset
|
72 |
SPFVertex* GetVertex (Ipv4Address addr); |
1063
98fe4e27c65a
Initialize LSDB for SPF runs
Tom Henderson <tomh@tomh.org>
parents:
1062
diff
changeset
|
73 |
/** |
98fe4e27c65a
Initialize LSDB for SPF runs
Tom Henderson <tomh@tomh.org>
parents:
1062
diff
changeset
|
74 |
* \brief Set all SPFVertex to an initialized state, for SPF computation |
98fe4e27c65a
Initialize LSDB for SPF runs
Tom Henderson <tomh@tomh.org>
parents:
1062
diff
changeset
|
75 |
*/ |
98fe4e27c65a
Initialize LSDB for SPF runs
Tom Henderson <tomh@tomh.org>
parents:
1062
diff
changeset
|
76 |
void Initialize (); |
1053 | 77 |
|
1058
de579b1ff195
convert LSDB to class SPFVertex
Tom Henderson <tomh@tomh.org>
parents:
1053
diff
changeset
|
78 |
typedef std::map<Ipv4Address, SPFVertex*> LSDBMap_t; |
de579b1ff195
convert LSDB to class SPFVertex
Tom Henderson <tomh@tomh.org>
parents:
1053
diff
changeset
|
79 |
typedef std::pair<Ipv4Address, SPFVertex*> LSDBPair_t; |
1053 | 80 |
LSDBMap_t m_database; |
1045
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
81 |
}; |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
82 |
|
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
83 |
/** |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
84 |
* \brief A global static router |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
85 |
* |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
86 |
* This singleton object can query interface each node in the system |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
87 |
* for a StaticRouter interface. For those nodes, it fetches one or |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
88 |
* more LSAs and stores them in a local database. Then, it |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
89 |
* can compute shortest paths on a per-node basis to all routers, and |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
90 |
* finally configure each of the node's forwarding tables. |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
91 |
* |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
92 |
* The design is guided by OSPFv2 RFC 2328 section 16.1.1 |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
93 |
* and quagga ospfd |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
94 |
*/ |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
95 |
class StaticRouteManager : public Object |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
96 |
{ |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
97 |
public: |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
98 |
static const InterfaceId iid; |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
99 |
StaticRouteManager (); |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
100 |
/** |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
101 |
* \brief Build routing database by gathering LSA from each routing node |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
102 |
*/ |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
103 |
virtual void BuildStaticRoutingDatabase(); |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
104 |
/** |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
105 |
* \brief Compute routes using Dijkstra SPF computation, and populate |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
106 |
* per-node forwarding tables |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
107 |
*/ |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
108 |
virtual void InitializeRoutes(); |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
109 |
|
1059
2ebd3bb3da3e
more plumbing around SPFCalculate()
Tom Henderson <tomh@tomh.org>
parents:
1058
diff
changeset
|
110 |
/** |
2ebd3bb3da3e
more plumbing around SPFCalculate()
Tom Henderson <tomh@tomh.org>
parents:
1058
diff
changeset
|
111 |
* \brief Debugging routine; allow client code to supply a pre-built LSDB |
2ebd3bb3da3e
more plumbing around SPFCalculate()
Tom Henderson <tomh@tomh.org>
parents:
1058
diff
changeset
|
112 |
*/ |
2ebd3bb3da3e
more plumbing around SPFCalculate()
Tom Henderson <tomh@tomh.org>
parents:
1058
diff
changeset
|
113 |
void DebugUseLsdb (StaticRouteManagerLSDB*); |
2ebd3bb3da3e
more plumbing around SPFCalculate()
Tom Henderson <tomh@tomh.org>
parents:
1058
diff
changeset
|
114 |
/** |
2ebd3bb3da3e
more plumbing around SPFCalculate()
Tom Henderson <tomh@tomh.org>
parents:
1058
diff
changeset
|
115 |
* \brief Debugging routine; call the core SPF from the unit tests |
2ebd3bb3da3e
more plumbing around SPFCalculate()
Tom Henderson <tomh@tomh.org>
parents:
1058
diff
changeset
|
116 |
*/ |
2ebd3bb3da3e
more plumbing around SPFCalculate()
Tom Henderson <tomh@tomh.org>
parents:
1058
diff
changeset
|
117 |
void DebugSPFCalculate (Ipv4Address root); |
2ebd3bb3da3e
more plumbing around SPFCalculate()
Tom Henderson <tomh@tomh.org>
parents:
1058
diff
changeset
|
118 |
|
2ebd3bb3da3e
more plumbing around SPFCalculate()
Tom Henderson <tomh@tomh.org>
parents:
1058
diff
changeset
|
119 |
virtual ~StaticRouteManager (); |
1067
704eb2583865
Iterate link records (16.1(2))
Tom Henderson <tomh@tomh.org>
parents:
1063
diff
changeset
|
120 |
|
1045
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
121 |
protected: |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
122 |
|
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
123 |
private: |
1059
2ebd3bb3da3e
more plumbing around SPFCalculate()
Tom Henderson <tomh@tomh.org>
parents:
1058
diff
changeset
|
124 |
StaticRouteManagerLSDB* m_lsdb; |
2ebd3bb3da3e
more plumbing around SPFCalculate()
Tom Henderson <tomh@tomh.org>
parents:
1058
diff
changeset
|
125 |
void SPFCalculate (Ipv4Address root); |
1067
704eb2583865
Iterate link records (16.1(2))
Tom Henderson <tomh@tomh.org>
parents:
1063
diff
changeset
|
126 |
void SPFNext (SPFVertex*/*,candidate */); |
1045
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
127 |
}; |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
128 |
|
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
129 |
} // namespace ns3 |
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
130 |
|
c2c43e021fb7
Add ctor/dtor to StaticRouterLSA, add the Add() method to add link records, misc. cleanup
Tom Henderson <tomh@tomh.org>
parents:
diff
changeset
|
131 |
#endif /* STATIC_ROUTE_MANAGER_H */ |