examples/simple-point-to-point-olsr.cc
changeset 2888 872dc8466352
parent 2887 9a637e6daee0
child 2889 969d4f6ab9ba
equal deleted inserted replaced
2887:9a637e6daee0 2888:872dc8466352
   103   
   103   
   104   // Later, we add IP addresses.  
   104   // Later, we add IP addresses.  
   105   NS_LOG_INFO ("Assign IP Addresses.");
   105   NS_LOG_INFO ("Assign IP Addresses.");
   106   Ipv4AddressHelper ipv4;
   106   Ipv4AddressHelper ipv4;
   107   ipv4.SetBase ("10.1.1.0", "255.255.255.0");
   107   ipv4.SetBase ("10.1.1.0", "255.255.255.0");
   108   Ipv4InterfaceContainer i02 = ipv4.Allocate (nd02);
   108   Ipv4InterfaceContainer i02 = ipv4.Assign (nd02);
   109 
   109 
   110   ipv4.SetBase ("10.1.2.0", "255.255.255.0");
   110   ipv4.SetBase ("10.1.2.0", "255.255.255.0");
   111   Ipv4InterfaceContainer i12 = ipv4.Allocate (nd12);
   111   Ipv4InterfaceContainer i12 = ipv4.Assign (nd12);
   112   
   112   
   113   ipv4.SetBase ("10.1.3.0", "255.255.255.0");
   113   ipv4.SetBase ("10.1.3.0", "255.255.255.0");
   114   Ipv4InterfaceContainer i32 = ipv4.Allocate (nd32);
   114   Ipv4InterfaceContainer i32 = ipv4.Assign (nd32);
   115 
   115 
   116   ipv4.SetBase ("10.1.4.0", "255.255.255.0");
   116   ipv4.SetBase ("10.1.4.0", "255.255.255.0");
   117   Ipv4InterfaceContainer i34 = ipv4.Allocate (nd34);
   117   Ipv4InterfaceContainer i34 = ipv4.Assign (nd34);
   118 
   118 
   119   // Enable OLSR
   119   // Enable OLSR
   120   NS_LOG_INFO ("Enabling OLSR Routing.");
   120   NS_LOG_INFO ("Enabling OLSR Routing.");
   121   OlsrHelper olsr;
   121   OlsrHelper olsr;
   122   olsr.EnableAll ();
   122   olsr.EnableAll ();