equal
deleted
inserted
replaced
44 csma.SetChannelParameter ("Delay", MilliSeconds(20)); |
44 csma.SetChannelParameter ("Delay", MilliSeconds(20)); |
45 NetDeviceContainer nd = csma.Install (n); |
45 NetDeviceContainer nd = csma.Install (n); |
46 |
46 |
47 Ipv4AddressHelper ipv4; |
47 Ipv4AddressHelper ipv4; |
48 ipv4.SetBase ("10.1.0.0", "255.255.0.0", "0.0.0.3"); |
48 ipv4.SetBase ("10.1.0.0", "255.255.0.0", "0.0.0.3"); |
49 Ipv4InterfaceContainer i = ipv4.Allocate (nd); |
49 Ipv4InterfaceContainer i = ipv4.Assign (nd); |
50 |
50 |
51 uint32_t port = 7; |
51 uint32_t port = 7; |
52 UdpEchoClientHelper client; |
52 UdpEchoClientHelper client; |
53 client.SetRemote (i.GetAddress (1), port); |
53 client.SetRemote (i.GetAddress (1), port); |
54 client.SetAppAttribute ("MaxPackets", Uinteger (1)); |
54 client.SetAppAttribute ("MaxPackets", Uinteger (1)); |