equal
deleted
inserted
replaced
21 |
21 |
22 #include "ns3/log.h" |
22 #include "ns3/log.h" |
23 #include "ns3/ipv6-address.h" |
23 #include "ns3/ipv6-address.h" |
24 #include "ns3/node.h" |
24 #include "ns3/node.h" |
25 #include "ns3/mac48-address.h" |
25 #include "ns3/mac48-address.h" |
|
26 #ifdef WIN32 |
|
27 #include "ns3/simulator.h" |
|
28 #endif |
26 |
29 |
27 NS_LOG_COMPONENT_DEFINE ("TestIpv6"); |
30 NS_LOG_COMPONENT_DEFINE ("TestIpv6"); |
28 |
31 |
29 using namespace ns3; |
32 using namespace ns3; |
30 |
33 |
63 for (uint32_t i = 0; i < 10; ++i) |
66 for (uint32_t i = 0; i < 10; ++i) |
64 { |
67 { |
65 Ipv6Address ipv6address = Ipv6Address::MakeAutoconfiguredAddress (m_addresses[i], prefix2); |
68 Ipv6Address ipv6address = Ipv6Address::MakeAutoconfiguredAddress (m_addresses[i], prefix2); |
66 NS_LOG_INFO ("address = " << ipv6address); |
69 NS_LOG_INFO ("address = " << ipv6address); |
67 } |
70 } |
|
71 #ifdef WIN32 |
|
72 Simulator::Run (); |
|
73 #endif |
68 } |
74 } |
69 |
75 |