View | Details | Raw Unified | Return to bug 600
Collapse All | Expand All

(-)a/bindings/python/ns3_module_core.py (-4 / +4 lines)
 Lines 2043-2049    Link Here 
2043
    cls.add_method('ConnectWithoutContext', 
2043
    cls.add_method('ConnectWithoutContext', 
2044
                   'void', 
2044
                   'void', 
2045
                   [param('ns3::CallbackBase const &', 'cb')])
2045
                   [param('ns3::CallbackBase const &', 'cb')])
2046
    ## traced-value.h: void ns3::TracedValue<unsigned int>::Connect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
2046
    ## traced-value.h: void ns3::TracedValue<unsigned int>::Connect(ns3::CallbackBase const & cb, std::string path) [member function]
2047
    cls.add_method('Connect', 
2047
    cls.add_method('Connect', 
2048
                   'void', 
2048
                   'void', 
2049
                   [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
2049
                   [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
 Lines 2051-2057    Link Here 
2051
    cls.add_method('DisconnectWithoutContext', 
2051
    cls.add_method('DisconnectWithoutContext', 
2052
                   'void', 
2052
                   'void', 
2053
                   [param('ns3::CallbackBase const &', 'cb')])
2053
                   [param('ns3::CallbackBase const &', 'cb')])
2054
    ## traced-value.h: void ns3::TracedValue<unsigned int>::Disconnect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
2054
    ## traced-value.h: void ns3::TracedValue<unsigned int>::Disconnect(ns3::CallbackBase const & cb, std::string path) [member function]
2055
    cls.add_method('Disconnect', 
2055
    cls.add_method('Disconnect', 
2056
                   'void', 
2056
                   'void', 
2057
                   [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
2057
                   [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
 Lines 2199-2205    Link Here 
2199
    module.add_function('TypeNameGet', 
2199
    module.add_function('TypeNameGet', 
2200
                        'std::string', 
2200
                        'std::string', 
2201
                        [], 
2201
                        [], 
2202
                        template_parameters=['long'])
2202
                        template_parameters=['long long'])
2203
    ## type-name.h: extern std::string ns3::TypeNameGet() [free function]
2203
    ## type-name.h: extern std::string ns3::TypeNameGet() [free function]
2204
    module.add_function('TypeNameGet', 
2204
    module.add_function('TypeNameGet', 
2205
                        'std::string', 
2205
                        'std::string', 
 Lines 2219-2225    Link Here 
2219
    module.add_function('TypeNameGet', 
2219
    module.add_function('TypeNameGet', 
2220
                        'std::string', 
2220
                        'std::string', 
2221
                        [], 
2221
                        [], 
2222
                        template_parameters=['unsigned long'])
2222
                        template_parameters=['unsigned long long'])
2223
    ## type-name.h: extern std::string ns3::TypeNameGet() [free function]
2223
    ## type-name.h: extern std::string ns3::TypeNameGet() [free function]
2224
    module.add_function('TypeNameGet', 
2224
    module.add_function('TypeNameGet', 
2225
                        'std::string', 
2225
                        'std::string', 
(-)a/bindings/python/ns3_module_helper.py (-21 / +53 lines)
 Lines 17-24    Link Here 
17
    module.add_class('Ipv4AddressHelper', allow_subclassing=False)
17
    module.add_class('Ipv4AddressHelper', allow_subclassing=False)
18
    ## ipv4-interface-container.h: ns3::Ipv4InterfaceContainer [class]
18
    ## ipv4-interface-container.h: ns3::Ipv4InterfaceContainer [class]
19
    module.add_class('Ipv4InterfaceContainer')
19
    module.add_class('Ipv4InterfaceContainer')
20
    ## internet-stack-helper.h: ns3::Ipv4RoutingHelper [class]
21
    module.add_class('Ipv4RoutingHelper', allow_subclassing=False)
20
    ## ipv4-static-routing-helper.h: ns3::Ipv4StaticRoutingHelper [class]
22
    ## ipv4-static-routing-helper.h: ns3::Ipv4StaticRoutingHelper [class]
21
    module.add_class('Ipv4StaticRoutingHelper', allow_subclassing=False)
23
    module.add_class('Ipv4StaticRoutingHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper'])
22
    ## mobility-helper.h: ns3::MobilityHelper [class]
24
    ## mobility-helper.h: ns3::MobilityHelper [class]
23
    module.add_class('MobilityHelper', allow_subclassing=False)
25
    module.add_class('MobilityHelper', allow_subclassing=False)
24
    ## net-device-container.h: ns3::NetDeviceContainer [class]
26
    ## net-device-container.h: ns3::NetDeviceContainer [class]
 Lines 28-34    Link Here 
28
    ## ns2-mobility-helper.h: ns3::Ns2MobilityHelper [class]
30
    ## ns2-mobility-helper.h: ns3::Ns2MobilityHelper [class]
29
    module.add_class('Ns2MobilityHelper', allow_subclassing=False)
31
    module.add_class('Ns2MobilityHelper', allow_subclassing=False)
30
    ## olsr-helper.h: ns3::OlsrHelper [class]
32
    ## olsr-helper.h: ns3::OlsrHelper [class]
31
    module.add_class('OlsrHelper', allow_subclassing=False)
33
    module.add_class('OlsrHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper'])
32
    ## on-off-helper.h: ns3::OnOffHelper [class]
34
    ## on-off-helper.h: ns3::OnOffHelper [class]
33
    module.add_class('OnOffHelper', allow_subclassing=False)
35
    module.add_class('OnOffHelper', allow_subclassing=False)
34
    ## packet-sink-helper.h: ns3::PacketSinkHelper [class]
36
    ## packet-sink-helper.h: ns3::PacketSinkHelper [class]
 Lines 57-62    Link Here 
57
    module.add_class('YansWifiPhyHelper', allow_subclassing=False, parent=root_module['ns3::WifiPhyHelper'])
59
    module.add_class('YansWifiPhyHelper', allow_subclassing=False, parent=root_module['ns3::WifiPhyHelper'])
58
    ## yans-wifi-helper.h: ns3::YansWifiPhyHelper::PcapFormat [enumeration]
60
    ## yans-wifi-helper.h: ns3::YansWifiPhyHelper::PcapFormat [enumeration]
59
    module.add_enum('PcapFormat', ['PCAP_FORMAT_80211', 'PCAP_FORMAT_80211_PRISM', 'PCAP_FORMAT_80211_RADIOTAP'], outer_class=root_module['ns3::YansWifiPhyHelper'])
61
    module.add_enum('PcapFormat', ['PCAP_FORMAT_80211', 'PCAP_FORMAT_80211_PRISM', 'PCAP_FORMAT_80211_RADIOTAP'], outer_class=root_module['ns3::YansWifiPhyHelper'])
62
    ## internet-stack-helper.h: ns3::Ipv4ListRoutingHelper [class]
63
    module.add_class('Ipv4ListRoutingHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper'])
60
    ## nqos-wifi-mac-helper.h: ns3::NqosWifiMacHelper [class]
64
    ## nqos-wifi-mac-helper.h: ns3::NqosWifiMacHelper [class]
61
    module.add_class('NqosWifiMacHelper', allow_subclassing=False, parent=root_module['ns3::WifiMacHelper'])
65
    module.add_class('NqosWifiMacHelper', allow_subclassing=False, parent=root_module['ns3::WifiMacHelper'])
62
    ## qos-wifi-mac-helper.h: ns3::QosWifiMacHelper [class]
66
    ## qos-wifi-mac-helper.h: ns3::QosWifiMacHelper [class]
 Lines 120-125    Link Here 
120
    register_Ns3InternetStackHelper_methods(root_module, root_module['ns3::InternetStackHelper'])
124
    register_Ns3InternetStackHelper_methods(root_module, root_module['ns3::InternetStackHelper'])
121
    register_Ns3Ipv4AddressHelper_methods(root_module, root_module['ns3::Ipv4AddressHelper'])
125
    register_Ns3Ipv4AddressHelper_methods(root_module, root_module['ns3::Ipv4AddressHelper'])
122
    register_Ns3Ipv4InterfaceContainer_methods(root_module, root_module['ns3::Ipv4InterfaceContainer'])
126
    register_Ns3Ipv4InterfaceContainer_methods(root_module, root_module['ns3::Ipv4InterfaceContainer'])
127
    register_Ns3Ipv4RoutingHelper_methods(root_module, root_module['ns3::Ipv4RoutingHelper'])
123
    register_Ns3Ipv4StaticRoutingHelper_methods(root_module, root_module['ns3::Ipv4StaticRoutingHelper'])
128
    register_Ns3Ipv4StaticRoutingHelper_methods(root_module, root_module['ns3::Ipv4StaticRoutingHelper'])
124
    register_Ns3MobilityHelper_methods(root_module, root_module['ns3::MobilityHelper'])
129
    register_Ns3MobilityHelper_methods(root_module, root_module['ns3::MobilityHelper'])
125
    register_Ns3NetDeviceContainer_methods(root_module, root_module['ns3::NetDeviceContainer'])
130
    register_Ns3NetDeviceContainer_methods(root_module, root_module['ns3::NetDeviceContainer'])
 Lines 139-144    Link Here 
139
    register_Ns3WifiPhyHelper_methods(root_module, root_module['ns3::WifiPhyHelper'])
144
    register_Ns3WifiPhyHelper_methods(root_module, root_module['ns3::WifiPhyHelper'])
140
    register_Ns3YansWifiChannelHelper_methods(root_module, root_module['ns3::YansWifiChannelHelper'])
145
    register_Ns3YansWifiChannelHelper_methods(root_module, root_module['ns3::YansWifiChannelHelper'])
141
    register_Ns3YansWifiPhyHelper_methods(root_module, root_module['ns3::YansWifiPhyHelper'])
146
    register_Ns3YansWifiPhyHelper_methods(root_module, root_module['ns3::YansWifiPhyHelper'])
147
    register_Ns3Ipv4ListRoutingHelper_methods(root_module, root_module['ns3::Ipv4ListRoutingHelper'])
142
    register_Ns3NqosWifiMacHelper_methods(root_module, root_module['ns3::NqosWifiMacHelper'])
148
    register_Ns3NqosWifiMacHelper_methods(root_module, root_module['ns3::NqosWifiMacHelper'])
143
    register_Ns3QosWifiMacHelper_methods(root_module, root_module['ns3::QosWifiMacHelper'])
149
    register_Ns3QosWifiMacHelper_methods(root_module, root_module['ns3::QosWifiMacHelper'])
144
    return
150
    return
 Lines 420-425    Link Here 
420
    cls.add_constructor([param('ns3::InternetStackHelper const &', 'arg0')])
426
    cls.add_constructor([param('ns3::InternetStackHelper const &', 'arg0')])
421
    ## internet-stack-helper.h: ns3::InternetStackHelper::InternetStackHelper() [constructor]
427
    ## internet-stack-helper.h: ns3::InternetStackHelper::InternetStackHelper() [constructor]
422
    cls.add_constructor([])
428
    cls.add_constructor([])
429
    ## internet-stack-helper.h: void ns3::InternetStackHelper::SetRoutingHelper(ns3::Ipv4RoutingHelper const & routing) [member function]
430
    cls.add_method('SetRoutingHelper', 
431
                   'void', 
432
                   [param('ns3::Ipv4RoutingHelper const &', 'routing')])
423
    ## internet-stack-helper.h: void ns3::InternetStackHelper::Install(std::string nodeName) const [member function]
433
    ## internet-stack-helper.h: void ns3::InternetStackHelper::Install(std::string nodeName) const [member function]
424
    cls.add_method('Install', 
434
    cls.add_method('Install', 
425
                   'void', 
435
                   'void', 
 Lines 516-526    Link Here 
516
                   [param('std::string', 'ipv4Name'), param('uint32_t', 'interface')])
526
                   [param('std::string', 'ipv4Name'), param('uint32_t', 'interface')])
517
    return
527
    return
518
528
529
def register_Ns3Ipv4RoutingHelper_methods(root_module, cls):
530
    ## internet-stack-helper.h: ns3::Ipv4RoutingHelper::Ipv4RoutingHelper(ns3::Ipv4RoutingHelper const & arg0) [copy constructor]
531
    cls.add_constructor([param('ns3::Ipv4RoutingHelper const &', 'arg0')])
532
    ## internet-stack-helper.h: ns3::Ipv4RoutingHelper::Ipv4RoutingHelper() [constructor]
533
    cls.add_constructor([])
534
    ## internet-stack-helper.h: ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4RoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
535
    cls.add_method('Create', 
536
                   'ns3::Ptr< ns3::Ipv4RoutingProtocol >', 
537
                   [param('ns3::Ptr< ns3::Node >', 'node')], 
538
                   is_pure_virtual=True, is_const=True, is_virtual=True)
539
    return
540
519
def register_Ns3Ipv4StaticRoutingHelper_methods(root_module, cls):
541
def register_Ns3Ipv4StaticRoutingHelper_methods(root_module, cls):
520
    ## ipv4-static-routing-helper.h: ns3::Ipv4StaticRoutingHelper::Ipv4StaticRoutingHelper(ns3::Ipv4StaticRoutingHelper const & arg0) [copy constructor]
542
    ## ipv4-static-routing-helper.h: ns3::Ipv4StaticRoutingHelper::Ipv4StaticRoutingHelper(ns3::Ipv4StaticRoutingHelper const & arg0) [copy constructor]
521
    cls.add_constructor([param('ns3::Ipv4StaticRoutingHelper const &', 'arg0')])
543
    cls.add_constructor([param('ns3::Ipv4StaticRoutingHelper const &', 'arg0')])
522
    ## ipv4-static-routing-helper.h: ns3::Ipv4StaticRoutingHelper::Ipv4StaticRoutingHelper() [constructor]
544
    ## ipv4-static-routing-helper.h: ns3::Ipv4StaticRoutingHelper::Ipv4StaticRoutingHelper() [constructor]
523
    cls.add_constructor([])
545
    cls.add_constructor([])
546
    ## ipv4-static-routing-helper.h: ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4StaticRoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
547
    cls.add_method('Create', 
548
                   'ns3::Ptr< ns3::Ipv4RoutingProtocol >', 
549
                   [param('ns3::Ptr< ns3::Node >', 'node')], 
550
                   is_const=True, is_virtual=True)
524
    ## ipv4-static-routing-helper.h: ns3::Ptr<ns3::Ipv4StaticRouting> ns3::Ipv4StaticRoutingHelper::GetStaticRouting(ns3::Ptr<ns3::Ipv4> ipv4) const [member function]
551
    ## ipv4-static-routing-helper.h: ns3::Ptr<ns3::Ipv4StaticRouting> ns3::Ipv4StaticRoutingHelper::GetStaticRouting(ns3::Ptr<ns3::Ipv4> ipv4) const [member function]
525
    cls.add_method('GetStaticRouting', 
552
    cls.add_method('GetStaticRouting', 
526
                   'ns3::Ptr< ns3::Ipv4StaticRouting >', 
553
                   'ns3::Ptr< ns3::Ipv4StaticRouting >', 
 Lines 752-777    Link Here 
752
    cls.add_constructor([param('ns3::OlsrHelper const &', 'arg0')])
779
    cls.add_constructor([param('ns3::OlsrHelper const &', 'arg0')])
753
    ## olsr-helper.h: ns3::OlsrHelper::OlsrHelper() [constructor]
780
    ## olsr-helper.h: ns3::OlsrHelper::OlsrHelper() [constructor]
754
    cls.add_constructor([])
781
    cls.add_constructor([])
755
    ## olsr-helper.h: void ns3::OlsrHelper::SetAgent(std::string tid, std::string n0="", ns3::AttributeValue const & v0=ns3::EmptyAttributeValue(), std::string n1="", ns3::AttributeValue const & v1=ns3::EmptyAttributeValue(), std::string n2="", ns3::AttributeValue const & v2=ns3::EmptyAttributeValue(), std::string n3="", ns3::AttributeValue const & v3=ns3::EmptyAttributeValue(), std::string n4="", ns3::AttributeValue const & v4=ns3::EmptyAttributeValue(), std::string n5="", ns3::AttributeValue const & v5=ns3::EmptyAttributeValue(), std::string n6="", ns3::AttributeValue const & v6=ns3::EmptyAttributeValue(), std::string n7="", ns3::AttributeValue const & v7=ns3::EmptyAttributeValue()) [member function]
782
    ## olsr-helper.h: ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::OlsrHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
756
    cls.add_method('SetAgent', 
783
    cls.add_method('Create', 
784
                   'ns3::Ptr< ns3::Ipv4RoutingProtocol >', 
785
                   [param('ns3::Ptr< ns3::Node >', 'node')], 
786
                   is_const=True, is_virtual=True)
787
    ## olsr-helper.h: void ns3::OlsrHelper::Set(std::string name, ns3::AttributeValue const & value) [member function]
788
    cls.add_method('Set', 
757
                   'void', 
789
                   'void', 
758
                   [param('std::string', 'tid'), param('std::string', 'n0', default_value='""'), param('ns3::AttributeValue const &', 'v0', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n1', default_value='""'), param('ns3::AttributeValue const &', 'v1', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n2', default_value='""'), param('ns3::AttributeValue const &', 'v2', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n3', default_value='""'), param('ns3::AttributeValue const &', 'v3', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n4', default_value='""'), param('ns3::AttributeValue const &', 'v4', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n5', default_value='""'), param('ns3::AttributeValue const &', 'v5', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n6', default_value='""'), param('ns3::AttributeValue const &', 'v6', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n7', default_value='""'), param('ns3::AttributeValue const &', 'v7', default_value='ns3::EmptyAttributeValue()')])
790
                   [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
759
    ## olsr-helper.h: void ns3::OlsrHelper::Install(ns3::NodeContainer container) [member function]
760
    cls.add_method('Install', 
761
                   'void', 
762
                   [param('ns3::NodeContainer', 'container')])
763
    ## olsr-helper.h: void ns3::OlsrHelper::Install(ns3::Ptr<ns3::Node> node) [member function]
764
    cls.add_method('Install', 
765
                   'void', 
766
                   [param('ns3::Ptr< ns3::Node >', 'node')])
767
    ## olsr-helper.h: void ns3::OlsrHelper::Install(std::string nodeName) [member function]
768
    cls.add_method('Install', 
769
                   'void', 
770
                   [param('std::string', 'nodeName')])
771
    ## olsr-helper.h: void ns3::OlsrHelper::InstallAll() [member function]
772
    cls.add_method('InstallAll', 
773
                   'void', 
774
                   [])
775
    return
791
    return
776
792
777
def register_Ns3OnOffHelper_methods(root_module, cls):
793
def register_Ns3OnOffHelper_methods(root_module, cls):
 Lines 1217-1222    Link Here 
1217
                   is_const=True, visibility='private', is_virtual=True)
1233
                   is_const=True, visibility='private', is_virtual=True)
1218
    return
1234
    return
1219
1235
1236
def register_Ns3Ipv4ListRoutingHelper_methods(root_module, cls):
1237
    ## internet-stack-helper.h: ns3::Ipv4ListRoutingHelper::Ipv4ListRoutingHelper(ns3::Ipv4ListRoutingHelper const & arg0) [copy constructor]
1238
    cls.add_constructor([param('ns3::Ipv4ListRoutingHelper const &', 'arg0')])
1239
    ## internet-stack-helper.h: ns3::Ipv4ListRoutingHelper::Ipv4ListRoutingHelper() [constructor]
1240
    cls.add_constructor([])
1241
    ## internet-stack-helper.h: void ns3::Ipv4ListRoutingHelper::Add(ns3::Ipv4RoutingHelper const & routing, int16_t priority) [member function]
1242
    cls.add_method('Add', 
1243
                   'void', 
1244
                   [param('ns3::Ipv4RoutingHelper const &', 'routing'), param('int16_t', 'priority')])
1245
    ## internet-stack-helper.h: ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4ListRoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
1246
    cls.add_method('Create', 
1247
                   'ns3::Ptr< ns3::Ipv4RoutingProtocol >', 
1248
                   [param('ns3::Ptr< ns3::Node >', 'node')], 
1249
                   is_const=True, is_virtual=True)
1250
    return
1251
1220
def register_Ns3NqosWifiMacHelper_methods(root_module, cls):
1252
def register_Ns3NqosWifiMacHelper_methods(root_module, cls):
1221
    ## nqos-wifi-mac-helper.h: ns3::NqosWifiMacHelper::NqosWifiMacHelper(ns3::NqosWifiMacHelper const & arg0) [copy constructor]
1253
    ## nqos-wifi-mac-helper.h: ns3::NqosWifiMacHelper::NqosWifiMacHelper(ns3::NqosWifiMacHelper const & arg0) [copy constructor]
1222
    cls.add_constructor([param('ns3::NqosWifiMacHelper const &', 'arg0')])
1254
    cls.add_constructor([param('ns3::NqosWifiMacHelper const &', 'arg0')])
(-)a/bindings/python/ns3_module_internet_stack.py (+5 lines)
 Lines 172-177    Link Here 
172
                   'uint16_t', 
172
                   'uint16_t', 
173
                   [], 
173
                   [], 
174
                   is_const=True)
174
                   is_const=True)
175
    ## icmpv4.h: uint32_t ns3::Icmpv4Echo::GetDataSize() const [member function]
176
    cls.add_method('GetDataSize', 
177
                   'uint32_t', 
178
                   [], 
179
                   is_const=True)
175
    ## icmpv4.h: uint32_t ns3::Icmpv4Echo::GetData(uint8_t * payload) const [member function]
180
    ## icmpv4.h: uint32_t ns3::Icmpv4Echo::GetData(uint8_t * payload) const [member function]
176
    cls.add_method('GetData', 
181
    cls.add_method('GetData', 
177
                   'uint32_t', 
182
                   'uint32_t', 
(-)a/bindings/python/ns3_module_olsr.py (-5 / +1 lines)
 Lines 102-114    Link Here 
102
    module.add_container('std::vector< ns3::olsr::MessageHeader::Hello::LinkMessage >', 'ns3::olsr::MessageHeader::Hello::LinkMessage', container_type='vector')
102
    module.add_container('std::vector< ns3::olsr::MessageHeader::Hello::LinkMessage >', 'ns3::olsr::MessageHeader::Hello::LinkMessage', container_type='vector')
103
    module.add_container('std::vector< ns3::olsr::MessageHeader::Hna::Association >', 'ns3::olsr::MessageHeader::Hna::Association', container_type='vector')
103
    module.add_container('std::vector< ns3::olsr::MessageHeader::Hna::Association >', 'ns3::olsr::MessageHeader::Hna::Association', container_type='vector')
104
    typehandlers.add_type_alias('std::vector< ns3::olsr::DuplicateTuple, std::allocator< ns3::olsr::DuplicateTuple > >', 'ns3::olsr::DuplicateSet')
104
    typehandlers.add_type_alias('std::vector< ns3::olsr::DuplicateTuple, std::allocator< ns3::olsr::DuplicateTuple > >', 'ns3::olsr::DuplicateSet')
105
    typehandlers.add_type_alias('std::vector< ns3::olsr::TopologyTuple, std::allocator< ns3::olsr::TopologyTuple > >', 'ns3::olsr::TopologySet')
106
    typehandlers.add_type_alias('std::set< ns3::Ipv4Address, std::less< ns3::Ipv4Address >, std::allocator< ns3::Ipv4Address > >', 'ns3::olsr::MprSet')
105
    typehandlers.add_type_alias('std::set< ns3::Ipv4Address, std::less< ns3::Ipv4Address >, std::allocator< ns3::Ipv4Address > >', 'ns3::olsr::MprSet')
107
    typehandlers.add_type_alias('std::vector< ns3::olsr::MprSelectorTuple, std::allocator< ns3::olsr::MprSelectorTuple > >', 'ns3::olsr::MprSelectorSet')
106
    typehandlers.add_type_alias('std::vector< ns3::olsr::MprSelectorTuple, std::allocator< ns3::olsr::MprSelectorTuple > >', 'ns3::olsr::MprSelectorSet')
108
    typehandlers.add_type_alias('std::vector< ns3::olsr::MessageHeader, std::allocator< ns3::olsr::MessageHeader > >', 'ns3::olsr::MessageList')
107
    typehandlers.add_type_alias('std::vector< ns3::olsr::MessageHeader, std::allocator< ns3::olsr::MessageHeader > >', 'ns3::olsr::MessageList')
109
    typehandlers.add_type_alias('std::vector< ns3::olsr::IfaceAssocTuple, std::allocator< ns3::olsr::IfaceAssocTuple > >', 'ns3::olsr::IfaceAssocSet')
108
    typehandlers.add_type_alias('std::vector< ns3::olsr::IfaceAssocTuple, std::allocator< ns3::olsr::IfaceAssocTuple > >', 'ns3::olsr::IfaceAssocSet')
110
    typehandlers.add_type_alias('std::vector< ns3::olsr::NeighborTuple, std::allocator< ns3::olsr::NeighborTuple > >', 'ns3::olsr::NeighborSet')
109
    typehandlers.add_type_alias('std::vector< ns3::olsr::NeighborTuple, std::allocator< ns3::olsr::NeighborTuple > >', 'ns3::olsr::NeighborSet')
111
    typehandlers.add_type_alias('std::vector< ns3::olsr::TwoHopNeighborTuple, std::allocator< ns3::olsr::TwoHopNeighborTuple > >', 'ns3::olsr::TwoHopNeighborSet')
110
    typehandlers.add_type_alias('std::vector< ns3::olsr::TwoHopNeighborTuple, std::allocator< ns3::olsr::TwoHopNeighborTuple > >', 'ns3::olsr::TwoHopNeighborSet')
111
    typehandlers.add_type_alias('std::vector< ns3::olsr::TopologyTuple, std::allocator< ns3::olsr::TopologyTuple > >', 'ns3::olsr::TopologySet')
112
    typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >', 'ns3::olsr::LinkSet')
112
    typehandlers.add_type_alias('std::vector< ns3::olsr::LinkTuple, std::allocator< ns3::olsr::LinkTuple > >', 'ns3::olsr::LinkSet')
113
113
114
def register_methods(root_module):
114
def register_methods(root_module):
 Lines 747-756    Link Here 
747
                   is_static=True)
747
                   is_static=True)
748
    ## olsr-routing-protocol.h: ns3::olsr::RoutingProtocol::RoutingProtocol() [constructor]
748
    ## olsr-routing-protocol.h: ns3::olsr::RoutingProtocol::RoutingProtocol() [constructor]
749
    cls.add_constructor([])
749
    cls.add_constructor([])
750
    ## olsr-routing-protocol.h: void ns3::olsr::RoutingProtocol::Start() [member function]
751
    cls.add_method('Start', 
752
                   'void', 
753
                   [])
754
    ## olsr-routing-protocol.h: void ns3::olsr::RoutingProtocol::SetMainInterface(uint32_t interface) [member function]
750
    ## olsr-routing-protocol.h: void ns3::olsr::RoutingProtocol::SetMainInterface(uint32_t interface) [member function]
755
    cls.add_method('SetMainInterface', 
751
    cls.add_method('SetMainInterface', 
756
                   'void', 
752
                   'void', 
(-)a/examples/mixed-wireless.cc (-6 / +12 lines)
 Lines 152-162    Link Here 
152
  YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default ();
152
  YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default ();
153
  wifiPhy.SetChannel (wifiChannel.Create ());
153
  wifiPhy.SetChannel (wifiChannel.Create ());
154
  NetDeviceContainer backboneDevices = wifi.Install (wifiPhy, mac, backbone);
154
  NetDeviceContainer backboneDevices = wifi.Install (wifiPhy, mac, backbone);
155
156
  // We enable OLSR (which will be consulted at a higher priority than
157
  // the global routing above) on the backbone ad hoc nodes
158
  NS_LOG_INFO ("Enabling OLSR routing on all backbone nodes");
159
  OlsrHelper olsr;
160
161
  Ipv4ListRoutingHelper list;
162
  list.Add (olsr, 10);
163
155
  //
164
  //
156
  // Add the IPv4 protocol stack to the nodes in our container
165
  // Add the IPv4 protocol stack to the nodes in our container
157
  //
166
  //
158
  InternetStackHelper internet;
167
  InternetStackHelper internet;
168
  internet.SetRoutingHelper (list);
159
  internet.Install (backbone);
169
  internet.Install (backbone);
170
171
160
  //
172
  //
161
  // Assign IPv4 addresses to the device drivers (actually to the associated
173
  // Assign IPv4 addresses to the device drivers (actually to the associated
162
  // IPv4 interfaces) we just created.
174
  // IPv4 interfaces) we just created.
 Lines 324-335    Link Here 
324
  NS_LOG_INFO ("Enabling global routing on all nodes");
336
  NS_LOG_INFO ("Enabling global routing on all nodes");
325
  GlobalRouteManager::PopulateRoutingTables ();
337
  GlobalRouteManager::PopulateRoutingTables ();
326
338
327
  // We enable OLSR (which will be consulted at a higher priority than
328
  // the global routing above) on the backbone ad hoc nodes
329
  NS_LOG_INFO ("Enabling OLSR routing on all backbone nodes");
330
  OlsrHelper olsr;
331
  olsr.Install (backbone);
332
333
  /////////////////////////////////////////////////////////////////////////// 
339
  /////////////////////////////////////////////////////////////////////////// 
334
  //                                                                       //
340
  //                                                                       //
335
  // Application configuration                                             //
341
  // Application configuration                                             //
(-)a/examples/simple-point-to-point-olsr.cc (-5 / +11 lines)
 Lines 82-88    Link Here 
82
  NodeContainer n32 = NodeContainer (c.Get(3), c.Get (2));
82
  NodeContainer n32 = NodeContainer (c.Get(3), c.Get (2));
83
  NodeContainer n34 = NodeContainer (c.Get (3), c.Get (4));
83
  NodeContainer n34 = NodeContainer (c.Get (3), c.Get (4));
84
84
85
  // Enable OLSR
86
  NS_LOG_INFO ("Enabling OLSR Routing.");
87
  OlsrHelper olsr;
88
89
  Ipv4StaticRoutingHelper staticRouting;
90
91
  Ipv4ListRoutingHelper list;
92
  list.Add (staticRouting, 0);
93
  list.Add (olsr, 10);
94
85
  InternetStackHelper internet;
95
  InternetStackHelper internet;
96
  internet.SetRoutingHelper (list);
86
  internet.Install (c);
97
  internet.Install (c);
87
98
88
  // We create the channels first without any IP addressing information
99
  // We create the channels first without any IP addressing information
 Lines 112-122    Link Here 
112
  ipv4.SetBase ("10.1.4.0", "255.255.255.0");
123
  ipv4.SetBase ("10.1.4.0", "255.255.255.0");
113
  Ipv4InterfaceContainer i34 = ipv4.Assign (nd34);
124
  Ipv4InterfaceContainer i34 = ipv4.Assign (nd34);
114
125
115
  // Enable OLSR
116
  NS_LOG_INFO ("Enabling OLSR Routing.");
117
  OlsrHelper olsr;
118
  olsr.InstallAll ();
119
120
  // Create the OnOff application to send UDP datagrams of size
126
  // Create the OnOff application to send UDP datagrams of size
121
  // 210 bytes at a rate of 448 Kb/s
127
  // 210 bytes at a rate of 448 Kb/s
122
  NS_LOG_INFO ("Create Applications.");
128
  NS_LOG_INFO ("Create Applications.");
(-)a/src/helper/internet-stack-helper.cc (-7 / +38 lines)
 Lines 153-159    Link Here 
153
#include "ns3/object.h"
153
#include "ns3/object.h"
154
#include "ns3/names.h"
154
#include "ns3/names.h"
155
#include "ns3/ipv4.h"
155
#include "ns3/ipv4.h"
156
#include "internet-stack-helper.h"
157
#include "ns3/packet-socket-factory.h"
156
#include "ns3/packet-socket-factory.h"
158
#include "ns3/config.h"
157
#include "ns3/config.h"
159
#include "ns3/simulator.h"
158
#include "ns3/simulator.h"
 Lines 164-169    Link Here 
164
#include "ns3/core-config.h"
163
#include "ns3/core-config.h"
165
#include "ns3/ipv4-list-routing.h"
164
#include "ns3/ipv4-list-routing.h"
166
#include "ns3/ipv4-static-routing.h"
165
#include "ns3/ipv4-static-routing.h"
166
#include "internet-stack-helper.h"
167
#include "ipv4-static-routing-helper.h"
167
#include <limits>
168
#include <limits>
168
169
169
namespace ns3 {
170
namespace ns3 {
 Lines 171-179    Link Here 
171
std::vector<InternetStackHelper::Trace> InternetStackHelper::m_traces;
172
std::vector<InternetStackHelper::Trace> InternetStackHelper::m_traces;
172
std::string InternetStackHelper::m_pcapBaseFilename;
173
std::string InternetStackHelper::m_pcapBaseFilename;
173
174
175
Ipv4RoutingHelper::~Ipv4RoutingHelper ()
176
{}
177
178
Ipv4ListRoutingHelper::Ipv4ListRoutingHelper()
179
{}
180
void 
181
Ipv4ListRoutingHelper::Add (const Ipv4RoutingHelper &routing, int16_t priority)
182
{
183
  m_list.push_back (std::make_pair(&routing,priority));
184
}
185
Ptr<Ipv4RoutingProtocol> 
186
Ipv4ListRoutingHelper::Create (Ptr<Node> node) const
187
{
188
  Ptr<Ipv4ListRouting> list = CreateObject<Ipv4ListRouting> ();
189
  for (std::list<std::pair<const Ipv4RoutingHelper *,int16_t> >::const_iterator i = m_list.begin ();
190
       i != m_list.end (); ++i)
191
    {
192
      Ptr<Ipv4RoutingProtocol> prot = i->first->Create (node);
193
      list->AddRoutingProtocol (prot,i->second);
194
    }
195
  return list;
196
}
197
174
InternetStackHelper::InternetStackHelper ()
198
InternetStackHelper::InternetStackHelper ()
175
{
199
{
176
  SetTcp ("ns3::TcpL4Protocol");
200
  SetTcp ("ns3::TcpL4Protocol");
201
  static Ipv4StaticRoutingHelper staticRouting;
202
  static Ipv4ListRoutingHelper listRouting;
203
  listRouting.Add (staticRouting,0);
204
  SetRoutingHelper (listRouting);
205
}
206
207
void 
208
InternetStackHelper::SetRoutingHelper (const Ipv4RoutingHelper &routing)
209
{
210
  m_routing = &routing;
177
}
211
}
178
212
179
void
213
void
 Lines 213-220    Link Here 
213
    }
247
    }
214
}
248
}
215
249
216
static void
250
void
217
CreateAndAggregateObjectFromTypeId (Ptr<Node> node, const std::string typeId)
251
InternetStackHelper::CreateAndAggregateObjectFromTypeId (Ptr<Node> node, const std::string typeId)
218
{
252
{
219
  ObjectFactory factory;
253
  ObjectFactory factory;
220
  factory.SetTypeId(typeId);
254
  factory.SetTypeId(typeId);
 Lines 241-250    Link Here 
241
  node->AggregateObject (factory);
275
  node->AggregateObject (factory);
242
  // Set routing
276
  // Set routing
243
  Ptr<Ipv4> ipv4 = node->GetObject<Ipv4> ();
277
  Ptr<Ipv4> ipv4 = node->GetObject<Ipv4> ();
244
  // XXX cut this over to use of TypeIds and factories
278
  Ptr<Ipv4RoutingProtocol> ipv4Routing = m_routing->Create (node);
245
  Ptr<Ipv4ListRouting> ipv4Routing = CreateObject<Ipv4ListRouting> ();
246
  Ptr<Ipv4StaticRouting> ipv4staticRouting = CreateObject<Ipv4StaticRouting> ();
247
  ipv4Routing->AddRoutingProtocol (ipv4staticRouting, 0);
248
  ipv4->SetRoutingProtocol (ipv4Routing);
279
  ipv4->SetRoutingProtocol (ipv4Routing);
249
}
280
}
250
281
(-)a/src/helper/internet-stack-helper.h (+23 lines)
 Lines 27-36    Link Here 
27
#include "ns3/packet.h"
27
#include "ns3/packet.h"
28
#include "ns3/ptr.h"
28
#include "ns3/ptr.h"
29
#include "ns3/object-factory.h"
29
#include "ns3/object-factory.h"
30
#include <list>
30
31
31
namespace ns3 {
32
namespace ns3 {
32
33
33
class Node;
34
class Node;
35
class Ipv4RoutingProtocol;
36
37
class Ipv4RoutingHelper
38
{
39
public:
40
  virtual ~Ipv4RoutingHelper ();
41
  virtual Ptr<Ipv4RoutingProtocol> Create (Ptr<Node> node) const = 0;
42
};
43
44
class Ipv4ListRoutingHelper : public Ipv4RoutingHelper
45
{
46
public:
47
  Ipv4ListRoutingHelper();
48
  void Add (const Ipv4RoutingHelper &routing, int16_t priority);
49
  virtual Ptr<Ipv4RoutingProtocol> Create (Ptr<Node> node) const;
50
private:
51
  std::list<std::pair<const Ipv4RoutingHelper *,int16_t> > m_list;
52
};
34
53
35
/**
54
/**
36
 * \brief aggregate IP/TCP/UDP functionality to existing Nodes.
55
 * \brief aggregate IP/TCP/UDP functionality to existing Nodes.
 Lines 40-45    Link Here 
40
public:
59
public:
41
  InternetStackHelper(void);
60
  InternetStackHelper(void);
42
61
62
  void SetRoutingHelper (const Ipv4RoutingHelper &routing);
63
43
  /**
64
  /**
44
   * Aggregate implementations of the ns3::Ipv4, ns3::Udp, and ns3::Tcp classes
65
   * Aggregate implementations of the ns3::Ipv4, ns3::Udp, and ns3::Tcp classes
45
   * onto the provided node.  This method will assert if called on a node that 
66
   * onto the provided node.  This method will assert if called on a node that 
 Lines 132-137    Link Here 
132
153
133
private:
154
private:
134
  ObjectFactory m_tcpFactory;
155
  ObjectFactory m_tcpFactory;
156
  const Ipv4RoutingHelper *m_routing;
157
  static void CreateAndAggregateObjectFromTypeId (Ptr<Node> node, const std::string typeId);
135
  static void Cleanup (void);
158
  static void Cleanup (void);
136
  static void LogRxIp (std::string context, Ptr<const Packet> packet, uint32_t deviceId);
159
  static void LogRxIp (std::string context, Ptr<const Packet> packet, uint32_t deviceId);
137
  static void LogTxIp (std::string context, Ptr<const Packet> packet, uint32_t deviceId);
160
  static void LogTxIp (std::string context, Ptr<const Packet> packet, uint32_t deviceId);
(-)a/src/helper/ipv4-static-routing-helper.cc (+9 lines)
 Lines 33-38    Link Here 
33
33
34
namespace ns3 {
34
namespace ns3 {
35
35
36
Ipv4StaticRoutingHelper::Ipv4StaticRoutingHelper()
37
{}
38
Ptr<Ipv4RoutingProtocol> 
39
Ipv4StaticRoutingHelper::Create (Ptr<Node> node) const
40
{
41
  return CreateObject<Ipv4StaticRouting> ();
42
}
43
44
36
Ptr<Ipv4StaticRouting>
45
Ptr<Ipv4StaticRouting>
37
Ipv4StaticRoutingHelper::GetStaticRouting (Ptr<Ipv4> ipv4) const
46
Ipv4StaticRoutingHelper::GetStaticRouting (Ptr<Ipv4> ipv4) const
38
{
47
{
(-)a/src/helper/ipv4-static-routing-helper.h (-1 / +5 lines)
 Lines 25-38    Link Here 
25
#include "ns3/ipv4-address.h"
25
#include "ns3/ipv4-address.h"
26
#include "ns3/node.h"
26
#include "ns3/node.h"
27
#include "ns3/net-device.h"
27
#include "ns3/net-device.h"
28
#include "internet-stack-helper.h"
28
#include "node-container.h"
29
#include "node-container.h"
29
#include "net-device-container.h"
30
#include "net-device-container.h"
30
31
31
namespace ns3 {
32
namespace ns3 {
32
33
33
class Ipv4StaticRoutingHelper
34
class Ipv4StaticRoutingHelper : public Ipv4RoutingHelper
34
{
35
{
35
public:
36
public:
37
  Ipv4StaticRoutingHelper();
38
  virtual Ptr<Ipv4RoutingProtocol> Create (Ptr<Node> node) const;
39
36
  Ptr<Ipv4StaticRouting> GetStaticRouting (Ptr<Ipv4> ipv4) const;
40
  Ptr<Ipv4StaticRouting> GetStaticRouting (Ptr<Ipv4> ipv4) const;
37
41
38
  void AddMulticastRoute (Ptr<Node> n, Ipv4Address source, Ipv4Address group,  
42
  void AddMulticastRoute (Ptr<Node> n, Ipv4Address source, Ipv4Address group,  
(-)a/src/helper/olsr-helper.cc (-53 / +7 lines)
 Lines 30-93    Link Here 
30
  m_agentFactory.SetTypeId ("ns3::olsr::RoutingProtocol");
30
  m_agentFactory.SetTypeId ("ns3::olsr::RoutingProtocol");
31
}
31
}
32
32
33
void 
33
Ptr<Ipv4RoutingProtocol> 
34
OlsrHelper::SetAgent (std::string tid,
34
OlsrHelper::Create (Ptr<Node> node) const
35
                      std::string n0, const AttributeValue &v0,
36
                      std::string n1, const AttributeValue &v1,
37
                      std::string n2, const AttributeValue &v2,
38
                      std::string n3, const AttributeValue &v3,
39
                      std::string n4, const AttributeValue &v4,
40
                      std::string n5, const AttributeValue &v5,
41
                      std::string n6, const AttributeValue &v6,
42
                      std::string n7, const AttributeValue &v7)
43
{
35
{
44
  m_agentFactory.SetTypeId (tid);
36
  Ptr<olsr::RoutingProtocol> agent = m_agentFactory.Create<olsr::RoutingProtocol> ();
45
  m_agentFactory.Set (n0, v0);
37
  node->AggregateObject (agent);
46
  m_agentFactory.Set (n1, v1);
38
  return agent;
47
  m_agentFactory.Set (n2, v2);
48
  m_agentFactory.Set (n3, v3);
49
  m_agentFactory.Set (n4, v4);
50
  m_agentFactory.Set (n5, v5);
51
  m_agentFactory.Set (n6, v6);
52
  m_agentFactory.Set (n7, v7);
53
}
39
}
54
40
55
void 
41
void 
56
OlsrHelper::Install (NodeContainer container)
42
OlsrHelper::Set (std::string name, const AttributeValue &value)
57
{
43
{
58
  for (NodeContainer::Iterator i = container.Begin (); i != container.End (); ++i)
44
  m_agentFactory.Set (name, value);
59
    {
60
      Ptr<Node> node = *i;
61
      Install (node);
62
    }
63
}
64
void 
65
OlsrHelper::Install (Ptr<Node> node)
66
{
67
  if (node->GetObject<olsr::RoutingProtocol> () != 0)
68
    {
69
      NS_FATAL_ERROR ("OlsrHelper::Install(): Aggregating "
70
         "an Olsr Agent to a node with an existing Olsr RoutingProtocol");
71
      return;
72
    }
73
  Ptr<olsr::RoutingProtocol> agent = m_agentFactory.Create<olsr::RoutingProtocol> ();
74
  node->AggregateObject (agent);
75
  Ptr<Ipv4> ipv4 = node->GetObject<Ipv4> ();
76
  Ptr<Ipv4ListRouting> ipv4Routing = DynamicCast<Ipv4ListRouting> (ipv4->GetRoutingProtocol ());
77
  NS_ASSERT (ipv4Routing);
78
  ipv4Routing->AddRoutingProtocol (agent, 10);
79
  agent->Start ();
80
}
81
void 
82
OlsrHelper::Install (std::string nodeName)
83
{
84
  Ptr<Node> node = Names::Find<Node> (nodeName);
85
  Install (node);
86
}
87
void 
88
OlsrHelper::InstallAll (void)
89
{
90
  Install (NodeContainer::GetGlobal ());
91
}
45
}
92
46
93
} // namespace ns3
47
} // namespace ns3
(-)a/src/helper/olsr-helper.h (-28 / +5 lines)
 Lines 21-68    Link Here 
21
#define OLSR_HELPER_H
21
#define OLSR_HELPER_H
22
22
23
#include "ns3/object-factory.h"
23
#include "ns3/object-factory.h"
24
#include "ns3/node-container.h"
25
#include "ns3/node.h"
24
#include "ns3/node.h"
25
#include "node-container.h"
26
#include "internet-stack-helper.h"
26
27
27
namespace ns3 {
28
namespace ns3 {
28
29
29
/**
30
/**
30
 * \brief Helper class that adds OLSR routing to nodes.
31
 * \brief Helper class that adds OLSR routing to nodes.
31
 */
32
 */
32
class OlsrHelper
33
class OlsrHelper : public Ipv4RoutingHelper
33
{
34
{
34
public:
35
public:
35
  OlsrHelper ();
36
  OlsrHelper ();
37
  virtual Ptr<Ipv4RoutingProtocol> Create (Ptr<Node> node) const;
36
38
37
  /**
39
  /**
38
   * \brief Set default OLSR routing agent attributes
40
   * \brief Set default OLSR routing agent attributes
39
   */
41
   */
40
  void SetAgent (std::string tid,
42
  void Set (std::string name, const AttributeValue &value);
41
                 std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
42
                 std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
43
                 std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
44
                 std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
45
                 std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
46
                 std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
47
                 std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
48
                 std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue ());
49
50
  /**
51
   * \brief Enable OLSR routing for a set of nodes
52
   */
53
  void Install (NodeContainer container);
54
  /**
55
   * \brief Enable OLSR routing for a single node
56
   */
57
  void Install (Ptr<Node> node);
58
  /**
59
   * \brief Enable OLSR routing for a single node
60
   */
61
  void Install (std::string nodeName);
62
  /**
63
   * \brief Enable OLSR routing for all nodes
64
   */
65
  void InstallAll (void);
66
private:
43
private:
67
  ObjectFactory m_agentFactory;
44
  ObjectFactory m_agentFactory;
68
};
45
};
(-)a/src/internet-stack/ipv4-l3-protocol.cc (-5 / +1 lines)
 Lines 187-197    Link Here 
187
    }
187
    }
188
  m_interfaces.clear ();
188
  m_interfaces.clear ();
189
  m_node = 0;
189
  m_node = 0;
190
  if (m_routingProtocol)
190
  m_routingProtocol = 0;
191
    {
192
      m_routingProtocol->Dispose ();
193
      m_routingProtocol = 0;
194
    }
195
  Object::DoDispose ();
191
  Object::DoDispose ();
196
}
192
}
197
193
(-)a/src/routing/olsr/olsr-routing-protocol.cc (+2 lines)
 Lines 213-218    Link Here 
213
  m_linkTupleTimerFirstTime = true;
213
  m_linkTupleTimerFirstTime = true;
214
214
215
  m_ipv4 = ipv4;
215
  m_ipv4 = ipv4;
216
217
  Simulator::ScheduleNow (&RoutingProtocol::Start, this);
216
}
218
}
217
219
218
void RoutingProtocol::DoDispose ()
220
void RoutingProtocol::DoDispose ()
(-)a/src/routing/olsr/olsr-routing-protocol.h (-2 / +1 lines)
 Lines 68-74    Link Here 
68
  RoutingProtocol ();
68
  RoutingProtocol ();
69
  virtual ~RoutingProtocol ();
69
  virtual ~RoutingProtocol ();
70
70
71
  void Start ();
72
  void SetMainInterface (uint32_t interface);
71
  void SetMainInterface (uint32_t interface);
73
72
74
private:
73
private:
 Lines 101-107    Link Here 
101
  Ptr<Ipv4> m_ipv4;
100
  Ptr<Ipv4> m_ipv4;
102
	
101
	
103
private:
102
private:
104
103
  void Start ();
105
  void Clear ();
104
  void Clear ();
106
  uint32_t GetSize () const { return m_table.size (); }
105
  uint32_t GetSize () const { return m_table.size (); }
107
  std::vector<RoutingTableEntry> GetEntries () const;
106
  std::vector<RoutingTableEntry> GetEntries () const;

Return to bug 600