|
Lines 155-161
int main (int argc, char **argv)
|
Link Here
|
|---|
|
| 155 |
Ipv6InterfaceContainer iic2 = ipv6.Assign (ndc2); |
155 |
Ipv6InterfaceContainer iic2 = ipv6.Assign (ndc2); |
| 156 |
iic2.SetRouter (0, true); |
156 |
iic2.SetRouter (0, true); |
| 157 |
|
157 |
|
| 158 |
stackHelper.AddHostRouteTo (r1, iic2.GetAddress (1, 1), iic1.GetAddress (2, 1), iic1.GetInterfaceIndex (1)); |
158 |
stackHelper.AddHostRouteTo (r1, iic2.GetAddress (1, 1), iic1.GetAddress (2, 0), iic1.GetInterfaceIndex (1)); |
| 159 |
|
159 |
|
| 160 |
Simulator::Schedule (Seconds (0.0), &StackHelper::PrintRoutingTable, &stackHelper, r1); |
160 |
Simulator::Schedule (Seconds (0.0), &StackHelper::PrintRoutingTable, &stackHelper, r1); |
| 161 |
Simulator::Schedule (Seconds (3.0), &StackHelper::PrintRoutingTable, &stackHelper, sta1); |
161 |
Simulator::Schedule (Seconds (3.0), &StackHelper::PrintRoutingTable, &stackHelper, sta1); |