equal
deleted
inserted
replaced
42 csma.SetChannelParameter ("Delay", MilliSeconds (2)); |
42 csma.SetChannelParameter ("Delay", MilliSeconds (2)); |
43 NetDeviceContainer nd = csma.Install (n); |
43 NetDeviceContainer nd = csma.Install (n); |
44 |
44 |
45 Ipv4AddressHelper ipv4; |
45 Ipv4AddressHelper ipv4; |
46 ipv4.SetBase ("10.1.1.0", "255.255.255.0"); |
46 ipv4.SetBase ("10.1.1.0", "255.255.255.0"); |
47 Ipv4InterfaceContainer i = ipv4.Allocate (nd); |
47 Ipv4InterfaceContainer i = ipv4.Assign (nd); |
48 |
48 |
49 uint16_t port = 7; |
49 uint16_t port = 7; |
50 |
50 |
51 UdpEchoClientHelper client; |
51 UdpEchoClientHelper client; |
52 client.SetRemote (i.GetAddress (1), port); |
52 client.SetRemote (i.GetAddress (1), port); |