equal
deleted
inserted
replaced
72 csma.SetChannelParameter ("Delay", MilliSeconds(2)); |
72 csma.SetChannelParameter ("Delay", MilliSeconds(2)); |
73 |
73 |
74 NetDeviceContainer n0 = csma.Install (c0); |
74 NetDeviceContainer n0 = csma.Install (c0); |
75 NetDeviceContainer n1 = csma.Install (c1); |
75 NetDeviceContainer n1 = csma.Install (c1); |
76 |
76 |
77 |
|
78 InternetStackHelper internet; |
77 InternetStackHelper internet; |
79 internet.Install (c0); |
78 internet.Install (c); |
80 internet.Install (c1); |
|
81 |
79 |
82 NS_LOG_INFO ("Assign IP Addresses."); |
80 NS_LOG_INFO ("Assign IP Addresses."); |
83 Ipv4AddressHelper ipv4; |
81 Ipv4AddressHelper ipv4; |
84 ipv4.SetBase ("10.1.0.0", "255.255.255.0"); |
82 ipv4.SetBase ("10.1.0.0", "255.255.255.0"); |
85 ipv4.Assign (n0); |
83 ipv4.Assign (n0); |