equal
deleted
inserted
replaced
204 |
204 |
205 // Here, finish off packet routing configuration |
205 // Here, finish off packet routing configuration |
206 // This will likely set by some global StaticRouting object in the future |
206 // This will likely set by some global StaticRouting object in the future |
207 NS_LOG_INFO ("Set Default Routes."); |
207 NS_LOG_INFO ("Set Default Routes."); |
208 Ptr<Ipv4> ipv4; |
208 Ptr<Ipv4> ipv4; |
209 ipv4 = n0->QueryInterface<Ipv4> (Ipv4::iid); |
209 ipv4 = n0->QueryInterface<Ipv4> (); |
210 ipv4->SetDefaultRoute (Ipv4Address ("10.1.1.2"), 1); |
210 ipv4->SetDefaultRoute (Ipv4Address ("10.1.1.2"), 1); |
211 ipv4 = n3->QueryInterface<Ipv4> (Ipv4::iid); |
211 ipv4 = n3->QueryInterface<Ipv4> (); |
212 ipv4->SetDefaultRoute (Ipv4Address ("10.1.3.1"), 1); |
212 ipv4->SetDefaultRoute (Ipv4Address ("10.1.3.1"), 1); |
213 |
213 |
214 // Configure tracing of all enqueue, dequeue, and NetDevice receive events |
214 // Configure tracing of all enqueue, dequeue, and NetDevice receive events |
215 // Trace output will be sent to the simple-point-to-point.tr file |
215 // Trace output will be sent to the simple-point-to-point.tr file |
216 NS_LOG_INFO ("Configure Tracing."); |
216 NS_LOG_INFO ("Configure Tracing."); |