Bug 1876 - enable OLSR HNA table access
authorChristopher Kosecki <christopher.l.kosecki.ctr@mail.mil>
Tue, 29 Apr 2014 20:35:34 +0200
changeset 10709 82c7c2aabbb1
parent 10708 d2f248f4d563
child 10710 1c733dcc50b2
Bug 1876 - enable OLSR HNA table access
RELEASE_NOTES
src/olsr/bindings/modulegen__gcc_ILP32.py
src/olsr/bindings/modulegen__gcc_LP64.py
src/olsr/model/olsr-routing-protocol.cc
src/olsr/model/olsr-routing-protocol.h
--- a/RELEASE_NOTES	Tue Apr 29 10:54:16 2014 +0200
+++ b/RELEASE_NOTES	Tue Apr 29 20:35:34 2014 +0200
@@ -71,6 +71,7 @@
 - Bug 1870 - Remove unnecessary AsInt functions
 - Bug 1873 - Energy source checked to be aggregated to the node
 - Bug 1874 - Ipv4L3Protocol::ProcessFragment: addressCombination and idProto identifiers not properly computed
+- Bug 1876 - enable OLSR HNA table access
 - Bug 1882 - int64x64 tests trigger valgrind bug
 - Bug 1883 - IPv6 don't consider the prefix and network when choosing output address
 - Bug 1887 - Point-to-point traces should contain PPP headers
--- a/src/olsr/bindings/modulegen__gcc_ILP32.py	Tue Apr 29 10:54:16 2014 +0200
+++ b/src/olsr/bindings/modulegen__gcc_ILP32.py	Tue Apr 29 20:35:34 2014 +0200
@@ -7036,6 +7036,11 @@
                    'std::set< unsigned int >', 
                    [], 
                    is_const=True)
+    ## olsr-routing-protocol.h (module 'olsr'): ns3::Ptr<const ns3::Ipv4StaticRouting> ns3::olsr::RoutingProtocol::GetRoutingTableAssociation() const [member function]
+    cls.add_method('GetRoutingTableAssociation', 
+                   'ns3::Ptr< ns3::Ipv4StaticRouting const >', 
+                   [], 
+                   is_const=True)
     ## olsr-routing-protocol.h (module 'olsr'): std::vector<ns3::olsr::RoutingTableEntry,std::allocator<ns3::olsr::RoutingTableEntry> > ns3::olsr::RoutingProtocol::GetRoutingTableEntries() const [member function]
     cls.add_method('GetRoutingTableEntries', 
                    'std::vector< ns3::olsr::RoutingTableEntry >', 
--- a/src/olsr/bindings/modulegen__gcc_LP64.py	Tue Apr 29 10:54:16 2014 +0200
+++ b/src/olsr/bindings/modulegen__gcc_LP64.py	Tue Apr 29 20:35:34 2014 +0200
@@ -7036,6 +7036,11 @@
                    'std::set< unsigned int >', 
                    [], 
                    is_const=True)
+    ## olsr-routing-protocol.h (module 'olsr'): ns3::Ptr<const ns3::Ipv4StaticRouting> ns3::olsr::RoutingProtocol::GetRoutingTableAssociation() const [member function]
+    cls.add_method('GetRoutingTableAssociation', 
+                   'ns3::Ptr< ns3::Ipv4StaticRouting const >', 
+                   [], 
+                   is_const=True)
     ## olsr-routing-protocol.h (module 'olsr'): std::vector<ns3::olsr::RoutingTableEntry,std::allocator<ns3::olsr::RoutingTableEntry> > ns3::olsr::RoutingProtocol::GetRoutingTableEntries() const [member function]
     cls.add_method('GetRoutingTableEntries', 
                    'std::vector< ns3::olsr::RoutingTableEntry >', 
--- a/src/olsr/model/olsr-routing-protocol.cc	Tue Apr 29 10:54:16 2014 +0200
+++ b/src/olsr/model/olsr-routing-protocol.cc	Tue Apr 29 20:35:34 2014 +0200
@@ -3356,6 +3356,12 @@
 #endif  //NS3_LOG_ENABLE
 }
 
+Ptr<const Ipv4StaticRouting>
+RoutingProtocol::GetRoutingTableAssociation () const
+{
+  return m_hnaRoutingTable;
+}
+
 } // namespace olsr
 } // namespace ns3
 
--- a/src/olsr/model/olsr-routing-protocol.h	Tue Apr 29 10:54:16 2014 +0200
+++ b/src/olsr/model/olsr-routing-protocol.h	Tue Apr 29 20:35:34 2014 +0200
@@ -131,6 +131,12 @@
   /// Inject Associations from an Ipv4StaticRouting instance
   void SetRoutingTableAssociation (Ptr<Ipv4StaticRouting> routingTable);
 
+  /**
+   * \brief Returns the internal HNA table
+   * \returns the internal HNA table
+   */
+  Ptr<const Ipv4StaticRouting> GetRoutingTableAssociation () const;
+
 protected:
   virtual void DoInitialize (void);
 private: