diff --git a/bindings/python/ns3_module_core.py b/bindings/python/ns3_module_core.py index 7203fa363..16238e473 100644 --- a/bindings/python/ns3_module_core.py +++ b/bindings/python/ns3_module_core.py @@ -2459,7 +2459,7 @@ def register_Ns3TracedValue__Unsigned_int_methods(root_module, cls): cls.add_constructor([param('ns3::BooleanValue const &', 'value')]) ## traced-value.h: ns3::TracedValue::TracedValue(ns3::EnumValue const & value) [constructor] cls.add_constructor([param('ns3::EnumValue const &', 'value')]) - ## traced-value.h: void ns3::TracedValue::Connect(ns3::CallbackBase const & cb, std::basic_string,std::allocator > path) [member function] + ## traced-value.h: void ns3::TracedValue::Connect(ns3::CallbackBase const & cb, std::string path) [member function] cls.add_method('Connect', 'void', [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')]) @@ -2467,7 +2467,7 @@ def register_Ns3TracedValue__Unsigned_int_methods(root_module, cls): cls.add_method('ConnectWithoutContext', 'void', [param('ns3::CallbackBase const &', 'cb')]) - ## traced-value.h: void ns3::TracedValue::Disconnect(ns3::CallbackBase const & cb, std::basic_string,std::allocator > path) [member function] + ## traced-value.h: void ns3::TracedValue::Disconnect(ns3::CallbackBase const & cb, std::string path) [member function] cls.add_method('Disconnect', 'void', [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')]) @@ -2643,7 +2643,7 @@ def register_functions(root_module): module.add_function('TypeNameGet', 'std::string', [], - template_parameters=['long']) + template_parameters=['long long']) ## type-name.h: extern std::string ns3::TypeNameGet() [free function] module.add_function('TypeNameGet', 'std::string', @@ -2663,7 +2663,7 @@ def register_functions(root_module): module.add_function('TypeNameGet', 'std::string', [], - template_parameters=['unsigned long']) + template_parameters=['unsigned long long']) ## type-name.h: extern std::string ns3::TypeNameGet() [free function] module.add_function('TypeNameGet', 'std::string', diff --git a/bindings/python/ns3_module_dot11s.py b/bindings/python/ns3_module_dot11s.py index 6d72fd5a7..71e2d9cb1 100644 --- a/bindings/python/ns3_module_dot11s.py +++ b/bindings/python/ns3_module_dot11s.py @@ -61,6 +61,8 @@ def register_types_ns3_addressUtils(module): def register_types_ns3_dot11s(module): root_module = module.get_root() + ## ie-dot11s-configuration.h: ns3::dot11s::dot11sPathSelectionProtocol [enumeration] + module.add_enum('dot11sPathSelectionProtocol', ['PROTOCOL_HWMP']) ## ie-dot11s-configuration.h: ns3::dot11s::dot11sSynchronizationProtocolIdentifier [enumeration] module.add_enum('dot11sSynchronizationProtocolIdentifier', ['SYNC_NEIGHBOUR_OFFSET', 'SYNC_NULL']) ## ie-dot11s-configuration.h: ns3::dot11s::dot11sCongestionControlMode [enumeration] @@ -71,8 +73,6 @@ def register_types_ns3_dot11s(module): module.add_enum('PmpReasonCode', ['REASON11S_PEERING_CANCELLED', 'REASON11S_MESH_MAX_PEERS', 'REASON11S_MESH_CAPABILITY_POLICY_VIOLATION', 'REASON11S_MESH_CLOSE_RCVD', 'REASON11S_MESH_MAX_RETRIES', 'REASON11S_MESH_CONFIRM_TIMEOUT', 'REASON11S_MESH_INVALID_GTK', 'REASON11S_MESH_INCONSISTENT_PARAMETERS', 'REASON11S_MESH_INVALID_SECURITY_CAPABILITY', 'REASON11S_RESERVED']) ## ie-dot11s-configuration.h: ns3::dot11s::dot11sPathSelectionMetric [enumeration] module.add_enum('dot11sPathSelectionMetric', ['METRIC_AIRTIME']) - ## ie-dot11s-configuration.h: ns3::dot11s::dot11sPathSelectionProtocol [enumeration] - module.add_enum('dot11sPathSelectionProtocol', ['PROTOCOL_HWMP']) ## ie-dot11s-configuration.h: ns3::dot11s::Dot11sMeshCapability [class] module.add_class('Dot11sMeshCapability') ## hwmp-protocol.h: ns3::dot11s::HwmpProtocol [class] diff --git a/bindings/python/ns3_module_flow_monitor.py b/bindings/python/ns3_module_flow_monitor.py index 1b8d38400..88b4135ca 100644 --- a/bindings/python/ns3_module_flow_monitor.py +++ b/bindings/python/ns3_module_flow_monitor.py @@ -23,8 +23,6 @@ def register_types(module): module.add_class('FlowMonitor', parent=root_module['ns3::Object']) ## flow-monitor.h: ns3::FlowMonitor::FlowStats [struct] module.add_class('FlowStats', outer_class=root_module['ns3::FlowMonitor']) - module.add_container('std::map< unsigned int, ns3::FlowProbe::FlowStats >', ('unsigned int', 'ns3::FlowProbe::FlowStats'), container_type='map') - module.add_container('std::map< unsigned int, ns3::FlowMonitor::FlowStats >', ('unsigned int', 'ns3::FlowMonitor::FlowStats'), container_type='map') typehandlers.add_type_alias('uint32_t', 'ns3::FlowPacketId') typehandlers.add_type_alias('uint32_t*', 'ns3::FlowPacketId*') typehandlers.add_type_alias('uint32_t&', 'ns3::FlowPacketId&') @@ -209,7 +207,7 @@ def register_Ns3FlowProbeFlowStats_methods(root_module, cls): ## flow-probe.h: ns3::FlowProbe::FlowStats::bytes [variable] cls.add_instance_attribute('bytes', 'uint64_t', is_const=False) ## flow-probe.h: ns3::FlowProbe::FlowStats::bytesDropped [variable] - cls.add_instance_attribute('bytesDropped', 'std::vector< unsigned long >', is_const=False) + cls.add_instance_attribute('bytesDropped', 'std::vector< unsigned long long >', is_const=False) ## flow-probe.h: ns3::FlowProbe::FlowStats::delayFromFirstProbeSum [variable] cls.add_instance_attribute('delayFromFirstProbeSum', 'ns3::Time', is_const=False) ## flow-probe.h: ns3::FlowProbe::FlowStats::packets [variable] @@ -363,7 +361,7 @@ def register_Ns3FlowMonitorFlowStats_methods(root_module, cls): ## flow-monitor.h: ns3::FlowMonitor::FlowStats::FlowStats(ns3::FlowMonitor::FlowStats const & arg0) [copy constructor] cls.add_constructor([param('ns3::FlowMonitor::FlowStats const &', 'arg0')]) ## flow-monitor.h: ns3::FlowMonitor::FlowStats::bytesDropped [variable] - cls.add_instance_attribute('bytesDropped', 'std::vector< unsigned long >', is_const=False) + cls.add_instance_attribute('bytesDropped', 'std::vector< unsigned long long >', is_const=False) ## flow-monitor.h: ns3::FlowMonitor::FlowStats::delayHistogram [variable] cls.add_instance_attribute('delayHistogram', 'ns3::Histogram', is_const=False) ## flow-monitor.h: ns3::FlowMonitor::FlowStats::delaySum [variable] diff --git a/bindings/python/ns3_module_internet_stack.py b/bindings/python/ns3_module_internet_stack.py index d1514ee98..9e4973910 100644 --- a/bindings/python/ns3_module_internet_stack.py +++ b/bindings/python/ns3_module_internet_stack.py @@ -83,12 +83,22 @@ def register_types(module): module.add_class('Ipv6L3Protocol', parent=root_module['ns3::Ipv6']) ## ipv6-l3-protocol.h: ns3::Ipv6L3Protocol::DropReason [enumeration] module.add_enum('DropReason', ['DROP_TTL_EXPIRED', 'DROP_NO_ROUTE', 'DROP_BAD_CHECKSUM', 'DROP_INTERFACE_DOWN', 'DROP_ROUTE_ERROR'], outer_class=root_module['ns3::Ipv6L3Protocol']) + ## ipv6-l4-protocol.h: ns3::Ipv6L4Protocol [class] + module.add_class('Ipv6L4Protocol', parent=root_module['ns3::Object']) + ## ipv6-l4-protocol.h: ns3::Ipv6L4Protocol::RxStatus_e [enumeration] + module.add_enum('RxStatus_e', ['RX_OK', 'RX_CSUM_FAILED', 'RX_ENDPOINT_UNREACH'], outer_class=root_module['ns3::Ipv6L4Protocol']) + ## ndisc-cache.h: ns3::NdiscCache [class] + module.add_class('NdiscCache', parent=root_module['ns3::Object']) + ## ndisc-cache.h: ns3::NdiscCache::Entry [class] + module.add_class('Entry', outer_class=root_module['ns3::NdiscCache']) ## tcp-l4-protocol.h: ns3::TcpL4Protocol [class] module.add_class('TcpL4Protocol', parent=root_module['ns3::Ipv4L4Protocol']) ## udp-l4-protocol.h: ns3::UdpL4Protocol [class] module.add_class('UdpL4Protocol', parent=root_module['ns3::Ipv4L4Protocol']) ## icmpv4-l4-protocol.h: ns3::Icmpv4L4Protocol [class] module.add_class('Icmpv4L4Protocol', parent=root_module['ns3::Ipv4L4Protocol']) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol [class] + module.add_class('Icmpv6L4Protocol', parent=root_module['ns3::Ipv6L4Protocol']) ## Register a nested module for the namespace Config @@ -189,9 +199,13 @@ def register_methods(root_module): register_Ns3Ipv4L3Protocol_methods(root_module, root_module['ns3::Ipv4L3Protocol']) register_Ns3Ipv4L4Protocol_methods(root_module, root_module['ns3::Ipv4L4Protocol']) register_Ns3Ipv6L3Protocol_methods(root_module, root_module['ns3::Ipv6L3Protocol']) + register_Ns3Ipv6L4Protocol_methods(root_module, root_module['ns3::Ipv6L4Protocol']) + register_Ns3NdiscCache_methods(root_module, root_module['ns3::NdiscCache']) + register_Ns3NdiscCacheEntry_methods(root_module, root_module['ns3::NdiscCache::Entry']) register_Ns3TcpL4Protocol_methods(root_module, root_module['ns3::TcpL4Protocol']) register_Ns3UdpL4Protocol_methods(root_module, root_module['ns3::UdpL4Protocol']) register_Ns3Icmpv4L4Protocol_methods(root_module, root_module['ns3::Icmpv4L4Protocol']) + register_Ns3Icmpv6L4Protocol_methods(root_module, root_module['ns3::Icmpv6L4Protocol']) return def register_Ns3Icmpv4DestinationUnreachable_methods(root_module, cls): @@ -2190,6 +2204,248 @@ def register_Ns3Ipv6L3Protocol_methods(root_module, cls): is_const=True, visibility='private', is_virtual=True) return +def register_Ns3Ipv6L4Protocol_methods(root_module, cls): + ## ipv6-l4-protocol.h: ns3::Ipv6L4Protocol::Ipv6L4Protocol() [constructor] + cls.add_constructor([]) + ## ipv6-l4-protocol.h: ns3::Ipv6L4Protocol::Ipv6L4Protocol(ns3::Ipv6L4Protocol const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Ipv6L4Protocol const &', 'arg0')]) + ## ipv6-l4-protocol.h: int ns3::Ipv6L4Protocol::GetProtocolNumber() const [member function] + cls.add_method('GetProtocolNumber', + 'int', + [], + is_pure_virtual=True, is_const=True, is_virtual=True) + ## ipv6-l4-protocol.h: static ns3::TypeId ns3::Ipv6L4Protocol::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## ipv6-l4-protocol.h: ns3::Ipv6L4Protocol::RxStatus_e ns3::Ipv6L4Protocol::Receive(ns3::Ptr p, ns3::Ipv6Address const & src, ns3::Ipv6Address const & dst, ns3::Ptr incomingInterface) [member function] + cls.add_method('Receive', + 'ns3::Ipv6L4Protocol::RxStatus_e', + [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv6Address const &', 'src'), param('ns3::Ipv6Address const &', 'dst'), param('ns3::Ptr< ns3::Ipv6Interface >', 'incomingInterface')], + is_pure_virtual=True, is_virtual=True) + ## ipv6-l4-protocol.h: void ns3::Ipv6L4Protocol::ReceiveIcmp(ns3::Ipv6Address icmpSource, uint8_t icmpTtl, uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo, ns3::Ipv6Address payloadSource, ns3::Ipv6Address payloadDestination, uint8_t const * payload) [member function] + cls.add_method('ReceiveIcmp', + 'void', + [param('ns3::Ipv6Address', 'icmpSource'), param('uint8_t', 'icmpTtl'), param('uint8_t', 'icmpType'), param('uint8_t', 'icmpCode'), param('uint32_t', 'icmpInfo'), param('ns3::Ipv6Address', 'payloadSource'), param('ns3::Ipv6Address', 'payloadDestination'), param('uint8_t const *', 'payload')], + is_virtual=True) + return + +def register_Ns3NdiscCache_methods(root_module, cls): + ## ndisc-cache.h: ns3::NdiscCache::NdiscCache() [constructor] + cls.add_constructor([]) + ## ndisc-cache.h: ns3::NdiscCache::Entry * ns3::NdiscCache::Add(ns3::Ipv6Address to) [member function] + cls.add_method('Add', + 'ns3::NdiscCache::Entry *', + [param('ns3::Ipv6Address', 'to')]) + ## ndisc-cache.h: void ns3::NdiscCache::Flush() [member function] + cls.add_method('Flush', + 'void', + []) + ## ndisc-cache.h: ns3::Ptr ns3::NdiscCache::GetDevice() const [member function] + cls.add_method('GetDevice', + 'ns3::Ptr< ns3::NetDevice >', + [], + is_const=True) + ## ndisc-cache.h: ns3::Ptr ns3::NdiscCache::GetInterface() const [member function] + cls.add_method('GetInterface', + 'ns3::Ptr< ns3::Ipv6Interface >', + [], + is_const=True) + ## ndisc-cache.h: static ns3::TypeId ns3::NdiscCache::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## ndisc-cache.h: uint32_t ns3::NdiscCache::GetUnresQlen() [member function] + cls.add_method('GetUnresQlen', + 'uint32_t', + []) + ## ndisc-cache.h: ns3::NdiscCache::Entry * ns3::NdiscCache::Lookup(ns3::Ipv6Address dst) [member function] + cls.add_method('Lookup', + 'ns3::NdiscCache::Entry *', + [param('ns3::Ipv6Address', 'dst')]) + ## ndisc-cache.h: void ns3::NdiscCache::Remove(ns3::NdiscCache::Entry * entry) [member function] + cls.add_method('Remove', + 'void', + [param('ns3::NdiscCache::Entry *', 'entry')]) + ## ndisc-cache.h: void ns3::NdiscCache::SetDevice(ns3::Ptr device, ns3::Ptr interface) [member function] + cls.add_method('SetDevice', + 'void', + [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Ipv6Interface >', 'interface')]) + ## ndisc-cache.h: void ns3::NdiscCache::SetUnresQlen(uint32_t unresQlen) [member function] + cls.add_method('SetUnresQlen', + 'void', + [param('uint32_t', 'unresQlen')]) + ## ndisc-cache.h: ns3::NdiscCache::DEFAULT_UNRES_QLEN [variable] + cls.add_static_attribute('DEFAULT_UNRES_QLEN', 'uint32_t const', is_const=True) + ## ndisc-cache.h: void ns3::NdiscCache::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + visibility='private', is_virtual=True) + return + +def register_Ns3NdiscCacheEntry_methods(root_module, cls): + ## ndisc-cache.h: ns3::NdiscCache::Entry::Entry(ns3::NdiscCache::Entry const & arg0) [copy constructor] + cls.add_constructor([param('ns3::NdiscCache::Entry const &', 'arg0')]) + ## ndisc-cache.h: ns3::NdiscCache::Entry::Entry(ns3::NdiscCache * nd) [constructor] + cls.add_constructor([param('ns3::NdiscCache *', 'nd')]) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::AddWaitingPacket(ns3::Ptr p) [member function] + cls.add_method('AddWaitingPacket', + 'void', + [param('ns3::Ptr< ns3::Packet >', 'p')]) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::ClearWaitingPacket() [member function] + cls.add_method('ClearWaitingPacket', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::FunctionDelayTimeout() [member function] + cls.add_method('FunctionDelayTimeout', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::FunctionProbeTimeout() [member function] + cls.add_method('FunctionProbeTimeout', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::FunctionReachableTimeout() [member function] + cls.add_method('FunctionReachableTimeout', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::FunctionRetransmitTimeout() [member function] + cls.add_method('FunctionRetransmitTimeout', + 'void', + []) + ## ndisc-cache.h: ns3::Time ns3::NdiscCache::Entry::GetLastReachabilityConfirmation() const [member function] + cls.add_method('GetLastReachabilityConfirmation', + 'ns3::Time', + [], + is_const=True) + ## ndisc-cache.h: ns3::Address ns3::NdiscCache::Entry::GetMacAddress() const [member function] + cls.add_method('GetMacAddress', + 'ns3::Address', + [], + is_const=True) + ## ndisc-cache.h: uint8_t ns3::NdiscCache::Entry::GetNSRetransmit() const [member function] + cls.add_method('GetNSRetransmit', + 'uint8_t', + [], + is_const=True) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::IncNSRetransmit() [member function] + cls.add_method('IncNSRetransmit', + 'void', + []) + ## ndisc-cache.h: bool ns3::NdiscCache::Entry::IsDelay() const [member function] + cls.add_method('IsDelay', + 'bool', + [], + is_const=True) + ## ndisc-cache.h: bool ns3::NdiscCache::Entry::IsIncomplete() const [member function] + cls.add_method('IsIncomplete', + 'bool', + [], + is_const=True) + ## ndisc-cache.h: bool ns3::NdiscCache::Entry::IsProbe() const [member function] + cls.add_method('IsProbe', + 'bool', + [], + is_const=True) + ## ndisc-cache.h: bool ns3::NdiscCache::Entry::IsReachable() const [member function] + cls.add_method('IsReachable', + 'bool', + [], + is_const=True) + ## ndisc-cache.h: bool ns3::NdiscCache::Entry::IsRouter() const [member function] + cls.add_method('IsRouter', + 'bool', + [], + is_const=True) + ## ndisc-cache.h: bool ns3::NdiscCache::Entry::IsStale() const [member function] + cls.add_method('IsStale', + 'bool', + [], + is_const=True) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::MarkDelay() [member function] + cls.add_method('MarkDelay', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::MarkIncomplete(ns3::Ptr p) [member function] + cls.add_method('MarkIncomplete', + 'void', + [param('ns3::Ptr< ns3::Packet >', 'p')]) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::MarkProbe() [member function] + cls.add_method('MarkProbe', + 'void', + []) + ## ndisc-cache.h: std::list, std::allocator > > ns3::NdiscCache::Entry::MarkReachable(ns3::Address mac) [member function] + cls.add_method('MarkReachable', + 'std::list< ns3::Ptr< ns3::Packet > >', + [param('ns3::Address', 'mac')]) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::MarkReachable() [member function] + cls.add_method('MarkReachable', + 'void', + []) + ## ndisc-cache.h: std::list, std::allocator > > ns3::NdiscCache::Entry::MarkStale(ns3::Address mac) [member function] + cls.add_method('MarkStale', + 'std::list< ns3::Ptr< ns3::Packet > >', + [param('ns3::Address', 'mac')]) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::MarkStale() [member function] + cls.add_method('MarkStale', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::ResetNSRetransmit() [member function] + cls.add_method('ResetNSRetransmit', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::SetIpv6Address(ns3::Ipv6Address ipv6Address) [member function] + cls.add_method('SetIpv6Address', + 'void', + [param('ns3::Ipv6Address', 'ipv6Address')]) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::SetMacAddress(ns3::Address mac) [member function] + cls.add_method('SetMacAddress', + 'void', + [param('ns3::Address', 'mac')]) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::SetRouter(bool router) [member function] + cls.add_method('SetRouter', + 'void', + [param('bool', 'router')]) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::StartDelayTimer() [member function] + cls.add_method('StartDelayTimer', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::StartProbeTimer() [member function] + cls.add_method('StartProbeTimer', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::StartReachableTimer() [member function] + cls.add_method('StartReachableTimer', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::StartRetransmitTimer() [member function] + cls.add_method('StartRetransmitTimer', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::StopDelayTimer() [member function] + cls.add_method('StopDelayTimer', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::StopProbeTimer() [member function] + cls.add_method('StopProbeTimer', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::StopReachableTimer() [member function] + cls.add_method('StopReachableTimer', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::StopRetransmitTimer() [member function] + cls.add_method('StopRetransmitTimer', + 'void', + []) + ## ndisc-cache.h: void ns3::NdiscCache::Entry::UpdateLastReachabilityconfirmation() [member function] + cls.add_method('UpdateLastReachabilityconfirmation', + 'void', + []) + return + def register_Ns3TcpL4Protocol_methods(root_module, cls): ## tcp-l4-protocol.h: ns3::TcpL4Protocol::PROT_NUMBER [variable] cls.add_static_attribute('PROT_NUMBER', 'uint8_t const', is_const=True) @@ -2392,6 +2648,178 @@ def register_Ns3Icmpv4L4Protocol_methods(root_module, cls): visibility='private', is_virtual=True) return +def register_Ns3Icmpv6L4Protocol_methods(root_module, cls): + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::Icmpv6L4Protocol(ns3::Icmpv6L4Protocol const & arg0) [copy constructor] + cls.add_constructor([param('ns3::Icmpv6L4Protocol const &', 'arg0')]) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::Icmpv6L4Protocol() [constructor] + cls.add_constructor([]) + ## icmpv6-l4-protocol.h: ns3::Ptr ns3::Icmpv6L4Protocol::CreateCache(ns3::Ptr device, ns3::Ptr interface) [member function] + cls.add_method('CreateCache', + 'ns3::Ptr< ns3::NdiscCache >', + [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Ipv6Interface >', 'interface')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::DoDAD(ns3::Ipv6Address target, ns3::Ptr interface) [member function] + cls.add_method('DoDAD', + 'void', + [param('ns3::Ipv6Address', 'target'), param('ns3::Ptr< ns3::Ipv6Interface >', 'interface')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::DoDad(ns3::Ipv6Address addr, ns3::Ptr interface) [member function] + cls.add_method('DoDad', + 'void', + [param('ns3::Ipv6Address', 'addr'), param('ns3::Ptr< ns3::Ipv6Interface >', 'interface')]) + ## icmpv6-l4-protocol.h: ns3::Ptr ns3::Icmpv6L4Protocol::ForgeEchoRequest(ns3::Ipv6Address src, ns3::Ipv6Address dst, uint16_t id, uint16_t seq, ns3::Ptr data) [member function] + cls.add_method('ForgeEchoRequest', + 'ns3::Ptr< ns3::Packet >', + [param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('uint16_t', 'id'), param('uint16_t', 'seq'), param('ns3::Ptr< ns3::Packet >', 'data')]) + ## icmpv6-l4-protocol.h: ns3::Ptr ns3::Icmpv6L4Protocol::ForgeNA(ns3::Ipv6Address src, ns3::Ipv6Address dst, ns3::Address * hardwareAddress, uint8_t flags) [member function] + cls.add_method('ForgeNA', + 'ns3::Ptr< ns3::Packet >', + [param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('ns3::Address *', 'hardwareAddress'), param('uint8_t', 'flags')]) + ## icmpv6-l4-protocol.h: ns3::Ptr ns3::Icmpv6L4Protocol::ForgeNS(ns3::Ipv6Address src, ns3::Ipv6Address dst, ns3::Ipv6Address target, ns3::Address hardwareAddress) [member function] + cls.add_method('ForgeNS', + 'ns3::Ptr< ns3::Packet >', + [param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('ns3::Ipv6Address', 'target'), param('ns3::Address', 'hardwareAddress')]) + ## icmpv6-l4-protocol.h: ns3::Ptr ns3::Icmpv6L4Protocol::ForgeRS(ns3::Ipv6Address src, ns3::Ipv6Address dst, ns3::Address hardwareAddress) [member function] + cls.add_method('ForgeRS', + 'ns3::Ptr< ns3::Packet >', + [param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('ns3::Address', 'hardwareAddress')]) + ## icmpv6-l4-protocol.h: static void ns3::Icmpv6L4Protocol::FunctionDadTimeout(ns3::Ptr icmpv6, ns3::Ipv6Interface * interface, ns3::Ipv6Address addr) [member function] + cls.add_method('FunctionDadTimeout', + 'void', + [param('ns3::Ptr< ns3::Icmpv6L4Protocol >', 'icmpv6'), param('ns3::Ipv6Interface *', 'interface'), param('ns3::Ipv6Address', 'addr')], + is_static=True) + ## icmpv6-l4-protocol.h: int ns3::Icmpv6L4Protocol::GetProtocolNumber() const [member function] + cls.add_method('GetProtocolNumber', + 'int', + [], + is_const=True, is_virtual=True) + ## icmpv6-l4-protocol.h: static uint16_t ns3::Icmpv6L4Protocol::GetStaticProtocolNumber() [member function] + cls.add_method('GetStaticProtocolNumber', + 'uint16_t', + [], + is_static=True) + ## icmpv6-l4-protocol.h: static ns3::TypeId ns3::Icmpv6L4Protocol::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## icmpv6-l4-protocol.h: int ns3::Icmpv6L4Protocol::GetVersion() const [member function] + cls.add_method('GetVersion', + 'int', + [], + is_const=True, is_virtual=True) + ## icmpv6-l4-protocol.h: bool ns3::Icmpv6L4Protocol::IsAlwaysDad() const [member function] + cls.add_method('IsAlwaysDad', + 'bool', + [], + is_const=True) + ## icmpv6-l4-protocol.h: bool ns3::Icmpv6L4Protocol::Lookup(ns3::Ipv6Address dst, ns3::Ptr device, ns3::Ptr cache, ns3::Address * hardwareDestination) [member function] + cls.add_method('Lookup', + 'bool', + [param('ns3::Ipv6Address', 'dst'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::NdiscCache >', 'cache'), param('ns3::Address *', 'hardwareDestination')]) + ## icmpv6-l4-protocol.h: bool ns3::Icmpv6L4Protocol::Lookup(ns3::Ptr p, ns3::Ipv6Address dst, ns3::Ptr device, ns3::Ptr cache, ns3::Address * hardwareDestination) [member function] + cls.add_method('Lookup', + 'bool', + [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv6Address', 'dst'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::NdiscCache >', 'cache'), param('ns3::Address *', 'hardwareDestination')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::NotifyNewAggregate() [member function] + cls.add_method('NotifyNewAggregate', + 'void', + [], + is_virtual=True) + ## icmpv6-l4-protocol.h: ns3::Ipv6L4Protocol::RxStatus_e ns3::Icmpv6L4Protocol::Receive(ns3::Ptr p, ns3::Ipv6Address const & src, ns3::Ipv6Address const & dst, ns3::Ptr interface) [member function] + cls.add_method('Receive', + 'ns3::Ipv6L4Protocol::RxStatus_e', + [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv6Address const &', 'src'), param('ns3::Ipv6Address const &', 'dst'), param('ns3::Ptr< ns3::Ipv6Interface >', 'interface')], + is_virtual=True) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::SendEchoReply(ns3::Ipv6Address src, ns3::Ipv6Address dst, uint16_t id, uint16_t seq, ns3::Ptr data) [member function] + cls.add_method('SendEchoReply', + 'void', + [param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('uint16_t', 'id'), param('uint16_t', 'seq'), param('ns3::Ptr< ns3::Packet >', 'data')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::SendErrorDestinationUnreachable(ns3::Ptr malformedPacket, ns3::Ipv6Address dst, uint8_t code) [member function] + cls.add_method('SendErrorDestinationUnreachable', + 'void', + [param('ns3::Ptr< ns3::Packet >', 'malformedPacket'), param('ns3::Ipv6Address', 'dst'), param('uint8_t', 'code')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::SendErrorParameterError(ns3::Ptr malformedPacket, ns3::Ipv6Address dst, uint8_t code, uint32_t ptr) [member function] + cls.add_method('SendErrorParameterError', + 'void', + [param('ns3::Ptr< ns3::Packet >', 'malformedPacket'), param('ns3::Ipv6Address', 'dst'), param('uint8_t', 'code'), param('uint32_t', 'ptr')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::SendErrorTimeExceeded(ns3::Ptr malformedPacket, ns3::Ipv6Address dst, uint8_t code) [member function] + cls.add_method('SendErrorTimeExceeded', + 'void', + [param('ns3::Ptr< ns3::Packet >', 'malformedPacket'), param('ns3::Ipv6Address', 'dst'), param('uint8_t', 'code')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::SendErrorTooBig(ns3::Ptr malformedPacket, ns3::Ipv6Address dst, uint32_t mtu) [member function] + cls.add_method('SendErrorTooBig', + 'void', + [param('ns3::Ptr< ns3::Packet >', 'malformedPacket'), param('ns3::Ipv6Address', 'dst'), param('uint32_t', 'mtu')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::SendMessage(ns3::Ptr packet, ns3::Ipv6Address src, ns3::Ipv6Address dst, uint8_t ttl) [member function] + cls.add_method('SendMessage', + 'void', + [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('uint8_t', 'ttl')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::SendMessage(ns3::Ptr packet, ns3::Ipv6Address dst, ns3::Icmpv6Header & icmpv6Hdr, uint8_t ttl) [member function] + cls.add_method('SendMessage', + 'void', + [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv6Address', 'dst'), param('ns3::Icmpv6Header &', 'icmpv6Hdr'), param('uint8_t', 'ttl')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::SendNA(ns3::Ipv6Address src, ns3::Ipv6Address dst, ns3::Address * hardwareAddress, uint8_t flags) [member function] + cls.add_method('SendNA', + 'void', + [param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('ns3::Address *', 'hardwareAddress'), param('uint8_t', 'flags')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::SendNS(ns3::Ipv6Address src, ns3::Ipv6Address dst, ns3::Ipv6Address target, ns3::Address hardwareAddress) [member function] + cls.add_method('SendNS', + 'void', + [param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('ns3::Ipv6Address', 'target'), param('ns3::Address', 'hardwareAddress')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::SendRS(ns3::Ipv6Address src, ns3::Ipv6Address dst, ns3::Address hardwareAddress) [member function] + cls.add_method('SendRS', + 'void', + [param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('ns3::Address', 'hardwareAddress')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::SendRedirection(ns3::Ptr redirectedPacket, ns3::Ipv6Address dst, ns3::Ipv6Address redirTarget, ns3::Ipv6Address redirDestination, ns3::Address redirHardwareTarget) [member function] + cls.add_method('SendRedirection', + 'void', + [param('ns3::Ptr< ns3::Packet >', 'redirectedPacket'), param('ns3::Ipv6Address', 'dst'), param('ns3::Ipv6Address', 'redirTarget'), param('ns3::Ipv6Address', 'redirDestination'), param('ns3::Address', 'redirHardwareTarget')]) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::SetNode(ns3::Ptr node) [member function] + cls.add_method('SetNode', + 'void', + [param('ns3::Ptr< ns3::Node >', 'node')]) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::DELAY_FIRST_PROBE_TIME [variable] + cls.add_static_attribute('DELAY_FIRST_PROBE_TIME', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MAX_ANYCAST_DELAY_TIME [variable] + cls.add_static_attribute('MAX_ANYCAST_DELAY_TIME', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MAX_FINAL_RTR_ADVERTISEMENTS [variable] + cls.add_static_attribute('MAX_FINAL_RTR_ADVERTISEMENTS', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MAX_INITIAL_RTR_ADVERTISEMENTS [variable] + cls.add_static_attribute('MAX_INITIAL_RTR_ADVERTISEMENTS', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MAX_INITIAL_RTR_ADVERT_INTERVAL [variable] + cls.add_static_attribute('MAX_INITIAL_RTR_ADVERT_INTERVAL', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MAX_MULTICAST_SOLICIT [variable] + cls.add_static_attribute('MAX_MULTICAST_SOLICIT', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MAX_NEIGHBOR_ADVERTISEMENT [variable] + cls.add_static_attribute('MAX_NEIGHBOR_ADVERTISEMENT', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MAX_RANDOM_FACTOR [variable] + cls.add_static_attribute('MAX_RANDOM_FACTOR', 'double const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MAX_RA_DELAY_TIME [variable] + cls.add_static_attribute('MAX_RA_DELAY_TIME', 'uint32_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MAX_RTR_SOLICITATIONS [variable] + cls.add_static_attribute('MAX_RTR_SOLICITATIONS', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MAX_RTR_SOLICITATION_DELAY [variable] + cls.add_static_attribute('MAX_RTR_SOLICITATION_DELAY', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MAX_UNICAST_SOLICIT [variable] + cls.add_static_attribute('MAX_UNICAST_SOLICIT', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MIN_DELAY_BETWEEN_RAS [variable] + cls.add_static_attribute('MIN_DELAY_BETWEEN_RAS', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::MIN_RANDOM_FACTOR [variable] + cls.add_static_attribute('MIN_RANDOM_FACTOR', 'double const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::PROT_NUMBER [variable] + cls.add_static_attribute('PROT_NUMBER', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::REACHABLE_TIME [variable] + cls.add_static_attribute('REACHABLE_TIME', 'uint32_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::RETRANS_TIMER [variable] + cls.add_static_attribute('RETRANS_TIMER', 'uint32_t const', is_const=True) + ## icmpv6-l4-protocol.h: ns3::Icmpv6L4Protocol::RTR_SOLICITATION_INTERVAL [variable] + cls.add_static_attribute('RTR_SOLICITATION_INTERVAL', 'uint8_t const', is_const=True) + ## icmpv6-l4-protocol.h: void ns3::Icmpv6L4Protocol::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + visibility='protected', is_virtual=True) + return + def register_functions(root_module): module = root_module register_functions_ns3_Config(module.get_submodule('Config'), root_module) diff --git a/bindings/python/ns3modulegen_generated.py b/bindings/python/ns3modulegen_generated.py index 5535306e6..45a6845b1 100644 --- a/bindings/python/ns3modulegen_generated.py +++ b/bindings/python/ns3modulegen_generated.py @@ -16,28 +16,28 @@ import ns3_module_core import ns3_module_simulator import ns3_module_mobility import ns3_module_common -import ns3_module_node import ns3_module_contrib +import ns3_module_node +import ns3_module_tap_bridge +import ns3_module_v4ping +import ns3_module_static_routing +import ns3_module_packet_sink +import ns3_module_stats +import ns3_module_onoff import ns3_module_point_to_point import ns3_module_internet_stack -import ns3_module_tap_bridge import ns3_module_csma -import ns3_module_wifi -import ns3_module_static_routing -import ns3_module_v4ping -import ns3_module_virtual_net_device -import ns3_module_packet_sink -import ns3_module_global_routing -import ns3_module_stats import ns3_module_list_routing +import ns3_module_virtual_net_device +import ns3_module_wifi import ns3_module_emu import ns3_module_bridge -import ns3_module_onoff +import ns3_module_global_routing import ns3_module_udp_echo -import ns3_module_ping6 import ns3_module_olsr -import ns3_module_flow_monitor import ns3_module_radvd +import ns3_module_ping6 +import ns3_module_flow_monitor import ns3_module_mesh import ns3_module_helper import ns3_module_dot11s @@ -94,17 +94,6 @@ def register_types(module): ns3_module_common__local.register_types(module) root_module.end_section('ns3_module_common') - root_module.begin_section('ns3_module_node') - ns3_module_node.register_types(module) - - try: - import ns3_module_node__local - except ImportError: - pass - else: - ns3_module_node__local.register_types(module) - - root_module.end_section('ns3_module_node') root_module.begin_section('ns3_module_contrib') ns3_module_contrib.register_types(module) @@ -116,6 +105,83 @@ def register_types(module): ns3_module_contrib__local.register_types(module) root_module.end_section('ns3_module_contrib') + root_module.begin_section('ns3_module_node') + ns3_module_node.register_types(module) + + try: + import ns3_module_node__local + except ImportError: + pass + else: + ns3_module_node__local.register_types(module) + + root_module.end_section('ns3_module_node') + root_module.begin_section('ns3_module_tap_bridge') + ns3_module_tap_bridge.register_types(module) + + try: + import ns3_module_tap_bridge__local + except ImportError: + pass + else: + ns3_module_tap_bridge__local.register_types(module) + + root_module.end_section('ns3_module_tap_bridge') + root_module.begin_section('ns3_module_v4ping') + ns3_module_v4ping.register_types(module) + + try: + import ns3_module_v4ping__local + except ImportError: + pass + else: + ns3_module_v4ping__local.register_types(module) + + root_module.end_section('ns3_module_v4ping') + root_module.begin_section('ns3_module_static_routing') + ns3_module_static_routing.register_types(module) + + try: + import ns3_module_static_routing__local + except ImportError: + pass + else: + ns3_module_static_routing__local.register_types(module) + + root_module.end_section('ns3_module_static_routing') + root_module.begin_section('ns3_module_packet_sink') + ns3_module_packet_sink.register_types(module) + + try: + import ns3_module_packet_sink__local + except ImportError: + pass + else: + ns3_module_packet_sink__local.register_types(module) + + root_module.end_section('ns3_module_packet_sink') + root_module.begin_section('ns3_module_stats') + ns3_module_stats.register_types(module) + + try: + import ns3_module_stats__local + except ImportError: + pass + else: + ns3_module_stats__local.register_types(module) + + root_module.end_section('ns3_module_stats') + root_module.begin_section('ns3_module_onoff') + ns3_module_onoff.register_types(module) + + try: + import ns3_module_onoff__local + except ImportError: + pass + else: + ns3_module_onoff__local.register_types(module) + + root_module.end_section('ns3_module_onoff') root_module.begin_section('ns3_module_point_to_point') ns3_module_point_to_point.register_types(module) @@ -138,17 +204,6 @@ def register_types(module): ns3_module_internet_stack__local.register_types(module) root_module.end_section('ns3_module_internet_stack') - root_module.begin_section('ns3_module_tap_bridge') - ns3_module_tap_bridge.register_types(module) - - try: - import ns3_module_tap_bridge__local - except ImportError: - pass - else: - ns3_module_tap_bridge__local.register_types(module) - - root_module.end_section('ns3_module_tap_bridge') root_module.begin_section('ns3_module_csma') ns3_module_csma.register_types(module) @@ -160,83 +215,6 @@ def register_types(module): ns3_module_csma__local.register_types(module) root_module.end_section('ns3_module_csma') - root_module.begin_section('ns3_module_wifi') - ns3_module_wifi.register_types(module) - - try: - import ns3_module_wifi__local - except ImportError: - pass - else: - ns3_module_wifi__local.register_types(module) - - root_module.end_section('ns3_module_wifi') - root_module.begin_section('ns3_module_static_routing') - ns3_module_static_routing.register_types(module) - - try: - import ns3_module_static_routing__local - except ImportError: - pass - else: - ns3_module_static_routing__local.register_types(module) - - root_module.end_section('ns3_module_static_routing') - root_module.begin_section('ns3_module_v4ping') - ns3_module_v4ping.register_types(module) - - try: - import ns3_module_v4ping__local - except ImportError: - pass - else: - ns3_module_v4ping__local.register_types(module) - - root_module.end_section('ns3_module_v4ping') - root_module.begin_section('ns3_module_virtual_net_device') - ns3_module_virtual_net_device.register_types(module) - - try: - import ns3_module_virtual_net_device__local - except ImportError: - pass - else: - ns3_module_virtual_net_device__local.register_types(module) - - root_module.end_section('ns3_module_virtual_net_device') - root_module.begin_section('ns3_module_packet_sink') - ns3_module_packet_sink.register_types(module) - - try: - import ns3_module_packet_sink__local - except ImportError: - pass - else: - ns3_module_packet_sink__local.register_types(module) - - root_module.end_section('ns3_module_packet_sink') - root_module.begin_section('ns3_module_global_routing') - ns3_module_global_routing.register_types(module) - - try: - import ns3_module_global_routing__local - except ImportError: - pass - else: - ns3_module_global_routing__local.register_types(module) - - root_module.end_section('ns3_module_global_routing') - root_module.begin_section('ns3_module_stats') - ns3_module_stats.register_types(module) - - try: - import ns3_module_stats__local - except ImportError: - pass - else: - ns3_module_stats__local.register_types(module) - - root_module.end_section('ns3_module_stats') root_module.begin_section('ns3_module_list_routing') ns3_module_list_routing.register_types(module) @@ -248,6 +226,28 @@ def register_types(module): ns3_module_list_routing__local.register_types(module) root_module.end_section('ns3_module_list_routing') + root_module.begin_section('ns3_module_virtual_net_device') + ns3_module_virtual_net_device.register_types(module) + + try: + import ns3_module_virtual_net_device__local + except ImportError: + pass + else: + ns3_module_virtual_net_device__local.register_types(module) + + root_module.end_section('ns3_module_virtual_net_device') + root_module.begin_section('ns3_module_wifi') + ns3_module_wifi.register_types(module) + + try: + import ns3_module_wifi__local + except ImportError: + pass + else: + ns3_module_wifi__local.register_types(module) + + root_module.end_section('ns3_module_wifi') root_module.begin_section('ns3_module_emu') ns3_module_emu.register_types(module) @@ -270,17 +270,17 @@ def register_types(module): ns3_module_bridge__local.register_types(module) root_module.end_section('ns3_module_bridge') - root_module.begin_section('ns3_module_onoff') - ns3_module_onoff.register_types(module) + root_module.begin_section('ns3_module_global_routing') + ns3_module_global_routing.register_types(module) try: - import ns3_module_onoff__local + import ns3_module_global_routing__local except ImportError: pass else: - ns3_module_onoff__local.register_types(module) + ns3_module_global_routing__local.register_types(module) - root_module.end_section('ns3_module_onoff') + root_module.end_section('ns3_module_global_routing') root_module.begin_section('ns3_module_udp_echo') ns3_module_udp_echo.register_types(module) @@ -292,17 +292,6 @@ def register_types(module): ns3_module_udp_echo__local.register_types(module) root_module.end_section('ns3_module_udp_echo') - root_module.begin_section('ns3_module_ping6') - ns3_module_ping6.register_types(module) - - try: - import ns3_module_ping6__local - except ImportError: - pass - else: - ns3_module_ping6__local.register_types(module) - - root_module.end_section('ns3_module_ping6') root_module.begin_section('ns3_module_olsr') ns3_module_olsr.register_types(module) @@ -314,17 +303,6 @@ def register_types(module): ns3_module_olsr__local.register_types(module) root_module.end_section('ns3_module_olsr') - root_module.begin_section('ns3_module_flow_monitor') - ns3_module_flow_monitor.register_types(module) - - try: - import ns3_module_flow_monitor__local - except ImportError: - pass - else: - ns3_module_flow_monitor__local.register_types(module) - - root_module.end_section('ns3_module_flow_monitor') root_module.begin_section('ns3_module_radvd') ns3_module_radvd.register_types(module) @@ -336,6 +314,28 @@ def register_types(module): ns3_module_radvd__local.register_types(module) root_module.end_section('ns3_module_radvd') + root_module.begin_section('ns3_module_ping6') + ns3_module_ping6.register_types(module) + + try: + import ns3_module_ping6__local + except ImportError: + pass + else: + ns3_module_ping6__local.register_types(module) + + root_module.end_section('ns3_module_ping6') + root_module.begin_section('ns3_module_flow_monitor') + ns3_module_flow_monitor.register_types(module) + + try: + import ns3_module_flow_monitor__local + except ImportError: + pass + else: + ns3_module_flow_monitor__local.register_types(module) + + root_module.end_section('ns3_module_flow_monitor') root_module.begin_section('ns3_module_mesh') ns3_module_mesh.register_types(module) @@ -382,7 +382,7 @@ def register_types(module): root_module.end_section('ns3_module_flame') module.add_container('std::vector< unsigned int >', 'unsigned int', container_type='vector') module.add_container('std::vector< bool >', 'bool', container_type='vector') - module.add_container('std::vector< unsigned long >', 'long unsigned int', container_type='vector') + module.add_container('std::vector< unsigned long long >', 'long long unsigned int', container_type='vector') module.add_container('std::list< unsigned int >', 'unsigned int', container_type='list') module.add_container('std::list< std::pair< ns3::Ptr< ns3::Packet >, ns3::AmsduSubframeHeader > >', 'std::pair< ns3::Ptr< ns3::Packet >, ns3::AmsduSubframeHeader >', container_type='list') @@ -502,17 +502,6 @@ def register_methods(root_module): ns3_module_common__local.register_methods(root_module) root_module.end_section('ns3_module_common') - root_module.begin_section('ns3_module_node') - ns3_module_node.register_methods(root_module) - - try: - import ns3_module_node__local - except ImportError: - pass - else: - ns3_module_node__local.register_methods(root_module) - - root_module.end_section('ns3_module_node') root_module.begin_section('ns3_module_contrib') ns3_module_contrib.register_methods(root_module) @@ -524,6 +513,83 @@ def register_methods(root_module): ns3_module_contrib__local.register_methods(root_module) root_module.end_section('ns3_module_contrib') + root_module.begin_section('ns3_module_node') + ns3_module_node.register_methods(root_module) + + try: + import ns3_module_node__local + except ImportError: + pass + else: + ns3_module_node__local.register_methods(root_module) + + root_module.end_section('ns3_module_node') + root_module.begin_section('ns3_module_tap_bridge') + ns3_module_tap_bridge.register_methods(root_module) + + try: + import ns3_module_tap_bridge__local + except ImportError: + pass + else: + ns3_module_tap_bridge__local.register_methods(root_module) + + root_module.end_section('ns3_module_tap_bridge') + root_module.begin_section('ns3_module_v4ping') + ns3_module_v4ping.register_methods(root_module) + + try: + import ns3_module_v4ping__local + except ImportError: + pass + else: + ns3_module_v4ping__local.register_methods(root_module) + + root_module.end_section('ns3_module_v4ping') + root_module.begin_section('ns3_module_static_routing') + ns3_module_static_routing.register_methods(root_module) + + try: + import ns3_module_static_routing__local + except ImportError: + pass + else: + ns3_module_static_routing__local.register_methods(root_module) + + root_module.end_section('ns3_module_static_routing') + root_module.begin_section('ns3_module_packet_sink') + ns3_module_packet_sink.register_methods(root_module) + + try: + import ns3_module_packet_sink__local + except ImportError: + pass + else: + ns3_module_packet_sink__local.register_methods(root_module) + + root_module.end_section('ns3_module_packet_sink') + root_module.begin_section('ns3_module_stats') + ns3_module_stats.register_methods(root_module) + + try: + import ns3_module_stats__local + except ImportError: + pass + else: + ns3_module_stats__local.register_methods(root_module) + + root_module.end_section('ns3_module_stats') + root_module.begin_section('ns3_module_onoff') + ns3_module_onoff.register_methods(root_module) + + try: + import ns3_module_onoff__local + except ImportError: + pass + else: + ns3_module_onoff__local.register_methods(root_module) + + root_module.end_section('ns3_module_onoff') root_module.begin_section('ns3_module_point_to_point') ns3_module_point_to_point.register_methods(root_module) @@ -546,17 +612,6 @@ def register_methods(root_module): ns3_module_internet_stack__local.register_methods(root_module) root_module.end_section('ns3_module_internet_stack') - root_module.begin_section('ns3_module_tap_bridge') - ns3_module_tap_bridge.register_methods(root_module) - - try: - import ns3_module_tap_bridge__local - except ImportError: - pass - else: - ns3_module_tap_bridge__local.register_methods(root_module) - - root_module.end_section('ns3_module_tap_bridge') root_module.begin_section('ns3_module_csma') ns3_module_csma.register_methods(root_module) @@ -568,83 +623,6 @@ def register_methods(root_module): ns3_module_csma__local.register_methods(root_module) root_module.end_section('ns3_module_csma') - root_module.begin_section('ns3_module_wifi') - ns3_module_wifi.register_methods(root_module) - - try: - import ns3_module_wifi__local - except ImportError: - pass - else: - ns3_module_wifi__local.register_methods(root_module) - - root_module.end_section('ns3_module_wifi') - root_module.begin_section('ns3_module_static_routing') - ns3_module_static_routing.register_methods(root_module) - - try: - import ns3_module_static_routing__local - except ImportError: - pass - else: - ns3_module_static_routing__local.register_methods(root_module) - - root_module.end_section('ns3_module_static_routing') - root_module.begin_section('ns3_module_v4ping') - ns3_module_v4ping.register_methods(root_module) - - try: - import ns3_module_v4ping__local - except ImportError: - pass - else: - ns3_module_v4ping__local.register_methods(root_module) - - root_module.end_section('ns3_module_v4ping') - root_module.begin_section('ns3_module_virtual_net_device') - ns3_module_virtual_net_device.register_methods(root_module) - - try: - import ns3_module_virtual_net_device__local - except ImportError: - pass - else: - ns3_module_virtual_net_device__local.register_methods(root_module) - - root_module.end_section('ns3_module_virtual_net_device') - root_module.begin_section('ns3_module_packet_sink') - ns3_module_packet_sink.register_methods(root_module) - - try: - import ns3_module_packet_sink__local - except ImportError: - pass - else: - ns3_module_packet_sink__local.register_methods(root_module) - - root_module.end_section('ns3_module_packet_sink') - root_module.begin_section('ns3_module_global_routing') - ns3_module_global_routing.register_methods(root_module) - - try: - import ns3_module_global_routing__local - except ImportError: - pass - else: - ns3_module_global_routing__local.register_methods(root_module) - - root_module.end_section('ns3_module_global_routing') - root_module.begin_section('ns3_module_stats') - ns3_module_stats.register_methods(root_module) - - try: - import ns3_module_stats__local - except ImportError: - pass - else: - ns3_module_stats__local.register_methods(root_module) - - root_module.end_section('ns3_module_stats') root_module.begin_section('ns3_module_list_routing') ns3_module_list_routing.register_methods(root_module) @@ -656,6 +634,28 @@ def register_methods(root_module): ns3_module_list_routing__local.register_methods(root_module) root_module.end_section('ns3_module_list_routing') + root_module.begin_section('ns3_module_virtual_net_device') + ns3_module_virtual_net_device.register_methods(root_module) + + try: + import ns3_module_virtual_net_device__local + except ImportError: + pass + else: + ns3_module_virtual_net_device__local.register_methods(root_module) + + root_module.end_section('ns3_module_virtual_net_device') + root_module.begin_section('ns3_module_wifi') + ns3_module_wifi.register_methods(root_module) + + try: + import ns3_module_wifi__local + except ImportError: + pass + else: + ns3_module_wifi__local.register_methods(root_module) + + root_module.end_section('ns3_module_wifi') root_module.begin_section('ns3_module_emu') ns3_module_emu.register_methods(root_module) @@ -678,17 +678,17 @@ def register_methods(root_module): ns3_module_bridge__local.register_methods(root_module) root_module.end_section('ns3_module_bridge') - root_module.begin_section('ns3_module_onoff') - ns3_module_onoff.register_methods(root_module) + root_module.begin_section('ns3_module_global_routing') + ns3_module_global_routing.register_methods(root_module) try: - import ns3_module_onoff__local + import ns3_module_global_routing__local except ImportError: pass else: - ns3_module_onoff__local.register_methods(root_module) + ns3_module_global_routing__local.register_methods(root_module) - root_module.end_section('ns3_module_onoff') + root_module.end_section('ns3_module_global_routing') root_module.begin_section('ns3_module_udp_echo') ns3_module_udp_echo.register_methods(root_module) @@ -700,17 +700,6 @@ def register_methods(root_module): ns3_module_udp_echo__local.register_methods(root_module) root_module.end_section('ns3_module_udp_echo') - root_module.begin_section('ns3_module_ping6') - ns3_module_ping6.register_methods(root_module) - - try: - import ns3_module_ping6__local - except ImportError: - pass - else: - ns3_module_ping6__local.register_methods(root_module) - - root_module.end_section('ns3_module_ping6') root_module.begin_section('ns3_module_olsr') ns3_module_olsr.register_methods(root_module) @@ -722,17 +711,6 @@ def register_methods(root_module): ns3_module_olsr__local.register_methods(root_module) root_module.end_section('ns3_module_olsr') - root_module.begin_section('ns3_module_flow_monitor') - ns3_module_flow_monitor.register_methods(root_module) - - try: - import ns3_module_flow_monitor__local - except ImportError: - pass - else: - ns3_module_flow_monitor__local.register_methods(root_module) - - root_module.end_section('ns3_module_flow_monitor') root_module.begin_section('ns3_module_radvd') ns3_module_radvd.register_methods(root_module) @@ -744,6 +722,28 @@ def register_methods(root_module): ns3_module_radvd__local.register_methods(root_module) root_module.end_section('ns3_module_radvd') + root_module.begin_section('ns3_module_ping6') + ns3_module_ping6.register_methods(root_module) + + try: + import ns3_module_ping6__local + except ImportError: + pass + else: + ns3_module_ping6__local.register_methods(root_module) + + root_module.end_section('ns3_module_ping6') + root_module.begin_section('ns3_module_flow_monitor') + ns3_module_flow_monitor.register_methods(root_module) + + try: + import ns3_module_flow_monitor__local + except ImportError: + pass + else: + ns3_module_flow_monitor__local.register_methods(root_module) + + root_module.end_section('ns3_module_flow_monitor') root_module.begin_section('ns3_module_mesh') ns3_module_mesh.register_methods(root_module) @@ -836,17 +836,6 @@ def register_functions(root_module): ns3_module_common__local.register_functions(root_module) root_module.end_section('ns3_module_common') - root_module.begin_section('ns3_module_node') - ns3_module_node.register_functions(root_module) - - try: - import ns3_module_node__local - except ImportError: - pass - else: - ns3_module_node__local.register_functions(root_module) - - root_module.end_section('ns3_module_node') root_module.begin_section('ns3_module_contrib') ns3_module_contrib.register_functions(root_module) @@ -858,6 +847,83 @@ def register_functions(root_module): ns3_module_contrib__local.register_functions(root_module) root_module.end_section('ns3_module_contrib') + root_module.begin_section('ns3_module_node') + ns3_module_node.register_functions(root_module) + + try: + import ns3_module_node__local + except ImportError: + pass + else: + ns3_module_node__local.register_functions(root_module) + + root_module.end_section('ns3_module_node') + root_module.begin_section('ns3_module_tap_bridge') + ns3_module_tap_bridge.register_functions(root_module) + + try: + import ns3_module_tap_bridge__local + except ImportError: + pass + else: + ns3_module_tap_bridge__local.register_functions(root_module) + + root_module.end_section('ns3_module_tap_bridge') + root_module.begin_section('ns3_module_v4ping') + ns3_module_v4ping.register_functions(root_module) + + try: + import ns3_module_v4ping__local + except ImportError: + pass + else: + ns3_module_v4ping__local.register_functions(root_module) + + root_module.end_section('ns3_module_v4ping') + root_module.begin_section('ns3_module_static_routing') + ns3_module_static_routing.register_functions(root_module) + + try: + import ns3_module_static_routing__local + except ImportError: + pass + else: + ns3_module_static_routing__local.register_functions(root_module) + + root_module.end_section('ns3_module_static_routing') + root_module.begin_section('ns3_module_packet_sink') + ns3_module_packet_sink.register_functions(root_module) + + try: + import ns3_module_packet_sink__local + except ImportError: + pass + else: + ns3_module_packet_sink__local.register_functions(root_module) + + root_module.end_section('ns3_module_packet_sink') + root_module.begin_section('ns3_module_stats') + ns3_module_stats.register_functions(root_module) + + try: + import ns3_module_stats__local + except ImportError: + pass + else: + ns3_module_stats__local.register_functions(root_module) + + root_module.end_section('ns3_module_stats') + root_module.begin_section('ns3_module_onoff') + ns3_module_onoff.register_functions(root_module) + + try: + import ns3_module_onoff__local + except ImportError: + pass + else: + ns3_module_onoff__local.register_functions(root_module) + + root_module.end_section('ns3_module_onoff') root_module.begin_section('ns3_module_point_to_point') ns3_module_point_to_point.register_functions(root_module) @@ -880,17 +946,6 @@ def register_functions(root_module): ns3_module_internet_stack__local.register_functions(root_module) root_module.end_section('ns3_module_internet_stack') - root_module.begin_section('ns3_module_tap_bridge') - ns3_module_tap_bridge.register_functions(root_module) - - try: - import ns3_module_tap_bridge__local - except ImportError: - pass - else: - ns3_module_tap_bridge__local.register_functions(root_module) - - root_module.end_section('ns3_module_tap_bridge') root_module.begin_section('ns3_module_csma') ns3_module_csma.register_functions(root_module) @@ -902,83 +957,6 @@ def register_functions(root_module): ns3_module_csma__local.register_functions(root_module) root_module.end_section('ns3_module_csma') - root_module.begin_section('ns3_module_wifi') - ns3_module_wifi.register_functions(root_module) - - try: - import ns3_module_wifi__local - except ImportError: - pass - else: - ns3_module_wifi__local.register_functions(root_module) - - root_module.end_section('ns3_module_wifi') - root_module.begin_section('ns3_module_static_routing') - ns3_module_static_routing.register_functions(root_module) - - try: - import ns3_module_static_routing__local - except ImportError: - pass - else: - ns3_module_static_routing__local.register_functions(root_module) - - root_module.end_section('ns3_module_static_routing') - root_module.begin_section('ns3_module_v4ping') - ns3_module_v4ping.register_functions(root_module) - - try: - import ns3_module_v4ping__local - except ImportError: - pass - else: - ns3_module_v4ping__local.register_functions(root_module) - - root_module.end_section('ns3_module_v4ping') - root_module.begin_section('ns3_module_virtual_net_device') - ns3_module_virtual_net_device.register_functions(root_module) - - try: - import ns3_module_virtual_net_device__local - except ImportError: - pass - else: - ns3_module_virtual_net_device__local.register_functions(root_module) - - root_module.end_section('ns3_module_virtual_net_device') - root_module.begin_section('ns3_module_packet_sink') - ns3_module_packet_sink.register_functions(root_module) - - try: - import ns3_module_packet_sink__local - except ImportError: - pass - else: - ns3_module_packet_sink__local.register_functions(root_module) - - root_module.end_section('ns3_module_packet_sink') - root_module.begin_section('ns3_module_global_routing') - ns3_module_global_routing.register_functions(root_module) - - try: - import ns3_module_global_routing__local - except ImportError: - pass - else: - ns3_module_global_routing__local.register_functions(root_module) - - root_module.end_section('ns3_module_global_routing') - root_module.begin_section('ns3_module_stats') - ns3_module_stats.register_functions(root_module) - - try: - import ns3_module_stats__local - except ImportError: - pass - else: - ns3_module_stats__local.register_functions(root_module) - - root_module.end_section('ns3_module_stats') root_module.begin_section('ns3_module_list_routing') ns3_module_list_routing.register_functions(root_module) @@ -990,6 +968,28 @@ def register_functions(root_module): ns3_module_list_routing__local.register_functions(root_module) root_module.end_section('ns3_module_list_routing') + root_module.begin_section('ns3_module_virtual_net_device') + ns3_module_virtual_net_device.register_functions(root_module) + + try: + import ns3_module_virtual_net_device__local + except ImportError: + pass + else: + ns3_module_virtual_net_device__local.register_functions(root_module) + + root_module.end_section('ns3_module_virtual_net_device') + root_module.begin_section('ns3_module_wifi') + ns3_module_wifi.register_functions(root_module) + + try: + import ns3_module_wifi__local + except ImportError: + pass + else: + ns3_module_wifi__local.register_functions(root_module) + + root_module.end_section('ns3_module_wifi') root_module.begin_section('ns3_module_emu') ns3_module_emu.register_functions(root_module) @@ -1012,17 +1012,17 @@ def register_functions(root_module): ns3_module_bridge__local.register_functions(root_module) root_module.end_section('ns3_module_bridge') - root_module.begin_section('ns3_module_onoff') - ns3_module_onoff.register_functions(root_module) + root_module.begin_section('ns3_module_global_routing') + ns3_module_global_routing.register_functions(root_module) try: - import ns3_module_onoff__local + import ns3_module_global_routing__local except ImportError: pass else: - ns3_module_onoff__local.register_functions(root_module) + ns3_module_global_routing__local.register_functions(root_module) - root_module.end_section('ns3_module_onoff') + root_module.end_section('ns3_module_global_routing') root_module.begin_section('ns3_module_udp_echo') ns3_module_udp_echo.register_functions(root_module) @@ -1034,17 +1034,6 @@ def register_functions(root_module): ns3_module_udp_echo__local.register_functions(root_module) root_module.end_section('ns3_module_udp_echo') - root_module.begin_section('ns3_module_ping6') - ns3_module_ping6.register_functions(root_module) - - try: - import ns3_module_ping6__local - except ImportError: - pass - else: - ns3_module_ping6__local.register_functions(root_module) - - root_module.end_section('ns3_module_ping6') root_module.begin_section('ns3_module_olsr') ns3_module_olsr.register_functions(root_module) @@ -1056,17 +1045,6 @@ def register_functions(root_module): ns3_module_olsr__local.register_functions(root_module) root_module.end_section('ns3_module_olsr') - root_module.begin_section('ns3_module_flow_monitor') - ns3_module_flow_monitor.register_functions(root_module) - - try: - import ns3_module_flow_monitor__local - except ImportError: - pass - else: - ns3_module_flow_monitor__local.register_functions(root_module) - - root_module.end_section('ns3_module_flow_monitor') root_module.begin_section('ns3_module_radvd') ns3_module_radvd.register_functions(root_module) @@ -1078,6 +1056,28 @@ def register_functions(root_module): ns3_module_radvd__local.register_functions(root_module) root_module.end_section('ns3_module_radvd') + root_module.begin_section('ns3_module_ping6') + ns3_module_ping6.register_functions(root_module) + + try: + import ns3_module_ping6__local + except ImportError: + pass + else: + ns3_module_ping6__local.register_functions(root_module) + + root_module.end_section('ns3_module_ping6') + root_module.begin_section('ns3_module_flow_monitor') + ns3_module_flow_monitor.register_functions(root_module) + + try: + import ns3_module_flow_monitor__local + except ImportError: + pass + else: + ns3_module_flow_monitor__local.register_functions(root_module) + + root_module.end_section('ns3_module_flow_monitor') root_module.begin_section('ns3_module_mesh') ns3_module_mesh.register_functions(root_module) diff --git a/src/internet-stack/ndisc-cache.cc b/src/internet-stack/ndisc-cache.cc index 0fc16d9c1..b2ac6040a 100644 --- a/src/internet-stack/ndisc-cache.cc +++ b/src/internet-stack/ndisc-cache.cc @@ -23,9 +23,9 @@ #include "ns3/node.h" #include "ipv6-l3-protocol.h" -#include "ipv6-interface.h" #include "icmpv6-l4-protocol.h" #include "ndisc-cache.h" +#include "ipv6-interface.h" namespace ns3 { diff --git a/src/internet-stack/ndisc-cache.h b/src/internet-stack/ndisc-cache.h index 00387ade1..09f095342 100644 --- a/src/internet-stack/ndisc-cache.h +++ b/src/internet-stack/ndisc-cache.h @@ -415,6 +415,18 @@ class NdiscCache : public Object typedef sgi::hash_map Cache; typedef sgi::hash_map::iterator CacheI; + /** + * \brief Copy constructor. + * \param a cache to copy + */ + NdiscCache (NdiscCache const &a); + + /** + * \brief Equal operator. + * \param a cache to copy + */ + NdiscCache& operator= (NdiscCache const &a); + /** * \brief Dispose this object. */