simulations/scratch/bus-topology.cc
void
BusTopology::InstallInternetStack()
{
	std::cout << "Installing Internet Stack" << std::endl;
	// Set static routing
	Ipv4StaticRoutingHelper staticRouting;

	Ipv4ListRoutingHelper list;
	list.Add (staticRouting, 10);

	InternetStackHelper internet;
	internet.SetRoutingHelper (list); // has effect on the next Install ()

	internet.Install (nodes);

	// Assign IP Addresses
	Ipv4AddressHelper addresses;
	addresses.SetBase ("10.0.0.0", "255.255.0.0");
	interfaces = addresses.Assign (devices);
}
/**
 * Set internet stack (ipv4) and its addresses
 */
Set internet stack (ipv4) and its addresses
Set internet stack ( ipv4 ) and its addresses
void
BusTopology::InstallInternetStack()
{
	std::cout << "Installing Internet Stack" << std::endl;
	Ipv4StaticRoutingHelper staticRouting;
	Ipv4ListRoutingHelper list;
	list.Add (staticRouting, 10);
	InternetStackHelper internet;
	internet.SetRoutingHelper (list); 
	internet.Install (nodes);
	Ipv4AddressHelper addresses;
	addresses.SetBase ("10.0.0.0", "255.255.0.0");
	interfaces = addresses.Assign (devices);
}
void BusTopology :: InstallInternetStack ( ) { std :: cout << " " << std :: endl ; Ipv4StaticRoutingHelper staticRouting ; Ipv4ListRoutingHelper list ; list . Add ( staticRouting , 10 ) ; InternetStackHelper internet ; internet . SetRoutingHelper ( list ) ; internet . Install ( nodes ) ; Ipv4AddressHelper addresses ; addresses . SetBase ( " " , " " ) ; interfaces = addresses . Assign ( devices ) ; }
Set internet stack (ipv4) and its addresses
Set internet stack ( ipv4 ) and its addresses
// Set static routing // has effect on the next Install () // Assign IP Addresses