equal
deleted
inserted
replaced
87 // Explicitly create the channels required by the topology (shown above). |
87 // Explicitly create the channels required by the topology (shown above). |
88 // |
88 // |
89 CsmaHelper csma; |
89 CsmaHelper csma; |
90 csma.SetChannelAttribute ("DataRate", DataRateValue (DataRate(5000000))); |
90 csma.SetChannelAttribute ("DataRate", DataRateValue (DataRate(5000000))); |
91 csma.SetChannelAttribute ("Delay", TimeValue (MilliSeconds (2))); |
91 csma.SetChannelAttribute ("Delay", TimeValue (MilliSeconds (2))); |
92 csma.SetDeviceAttribute ("MTU", UintegerValue (1400)); |
92 csma.SetDeviceAttribute ("Mtu", UintegerValue (1400)); |
93 NetDeviceContainer d = csma.Install (n); |
93 NetDeviceContainer d = csma.Install (n); |
94 |
94 |
95 Ipv4AddressHelper ipv4; |
95 Ipv4AddressHelper ipv4; |
96 // |
96 // |
97 // We've got the "hardware" in place. Now we need to add IP addresses. |
97 // We've got the "hardware" in place. Now we need to add IP addresses. |