diff -r b7b6d7a1a79f src/olsr/bindings/modulegen__gcc_ILP32.py --- a/src/olsr/bindings/modulegen__gcc_ILP32.py Sat Dec 21 12:30:28 2013 -0800 +++ b/src/olsr/bindings/modulegen__gcc_ILP32.py Fri Mar 07 12:49:44 2014 -0500 @@ -7425,6 +7425,11 @@ 'std::set< unsigned int >', [], is_const=True) + ## olsr-routing-protocol.h (module 'olsr'): ns3::Ptr ns3::olsr::RoutingProtocol::GetRoutingTableAssociation() const [member function] + cls.add_method('GetRoutingTableAssociation', + 'ns3::Ptr< ns3::Ipv4StaticRouting >', + [], + is_const=True) ## olsr-routing-protocol.h (module 'olsr'): std::vector > ns3::olsr::RoutingProtocol::GetRoutingTableEntries() const [member function] cls.add_method('GetRoutingTableEntries', 'std::vector< ns3::olsr::RoutingTableEntry >', diff -r b7b6d7a1a79f src/olsr/bindings/modulegen__gcc_LP64.py --- a/src/olsr/bindings/modulegen__gcc_LP64.py Sat Dec 21 12:30:28 2013 -0800 +++ b/src/olsr/bindings/modulegen__gcc_LP64.py Fri Mar 07 12:49:44 2014 -0500 @@ -7425,6 +7425,11 @@ 'std::set< unsigned int >', [], is_const=True) + ## olsr-routing-protocol.h (module 'olsr'): ns3::Ptr ns3::olsr::RoutingProtocol::GetRoutingTableAssociation() const [member function] + cls.add_method('GetRoutingTableAssociation', + 'ns3::Ptr< ns3::Ipv4StaticRouting >', + [], + is_const=True) ## olsr-routing-protocol.h (module 'olsr'): std::vector > ns3::olsr::RoutingProtocol::GetRoutingTableEntries() const [member function] cls.add_method('GetRoutingTableEntries', 'std::vector< ns3::olsr::RoutingTableEntry >', diff -r b7b6d7a1a79f src/olsr/model/olsr-routing-protocol.cc --- a/src/olsr/model/olsr-routing-protocol.cc Sat Dec 21 12:30:28 2013 -0800 +++ b/src/olsr/model/olsr-routing-protocol.cc Fri Mar 07 12:49:44 2014 -0500 @@ -1968,6 +1968,16 @@ } /// +/// \brief Returns the internal HNA table +/// +Ptr +RoutingProtocol::GetRoutingTableAssociation () const +{ + return m_hnaRoutingTable; +} + + +/// /// \brief Tests whether or not the specified route uses a non-OLSR outgoing interface. /// Returns true if the outgoing interface of the specified route is a non-OLSR interface. /// Returns false otherwise. diff -r b7b6d7a1a79f src/olsr/model/olsr-routing-protocol.h --- a/src/olsr/model/olsr-routing-protocol.h Sat Dec 21 12:30:28 2013 -0800 +++ b/src/olsr/model/olsr-routing-protocol.h Fri Mar 07 12:49:44 2014 -0500 @@ -132,6 +132,9 @@ /// Inject Associations from an Ipv4StaticRouting instance void SetRoutingTableAssociation (Ptr routingTable); + /// Return a copy of the internal HNA table + Ptr GetRoutingTableAssociation () const; + protected: virtual void DoInitialize (void); private: