equal
deleted
inserted
replaced
87 internet.Install (c1); |
87 internet.Install (c1); |
88 |
88 |
89 NS_LOG_INFO ("Assign IP Addresses."); |
89 NS_LOG_INFO ("Assign IP Addresses."); |
90 Ipv4AddressHelper ipv4Addr; |
90 Ipv4AddressHelper ipv4Addr; |
91 ipv4Addr.SetBase ("10.1.1.0", "255.255.255.0"); |
91 ipv4Addr.SetBase ("10.1.1.0", "255.255.255.0"); |
92 ipv4Addr.Allocate (nd0); |
92 ipv4Addr.Assign (nd0); |
93 ipv4Addr.SetBase ("10.1.2.0", "255.255.255.0"); |
93 ipv4Addr.SetBase ("10.1.2.0", "255.255.255.0"); |
94 ipv4Addr.Allocate (nd1); |
94 ipv4Addr.Assign (nd1); |
95 |
95 |
96 NS_LOG_INFO ("Configure multicasting."); |
96 NS_LOG_INFO ("Configure multicasting."); |
97 // |
97 // |
98 // Now we can configure multicasting. As described above, the multicast |
98 // Now we can configure multicasting. As described above, the multicast |
99 // source is at node zero, which we assigned the IP address of 10.1.1.1 |
99 // source is at node zero, which we assigned the IP address of 10.1.1.1 |