equal
deleted
inserted
replaced
49 p2p.SetChannelParameter ("Delay", MilliSeconds (20)); |
49 p2p.SetChannelParameter ("Delay", MilliSeconds (20)); |
50 NetDeviceContainer nd = p2p.Install (n); |
50 NetDeviceContainer nd = p2p.Install (n); |
51 |
51 |
52 Ipv4AddressHelper ipv4; |
52 Ipv4AddressHelper ipv4; |
53 ipv4.SetBase ("10.1.1.0", "255.255.255.252"); |
53 ipv4.SetBase ("10.1.1.0", "255.255.255.252"); |
54 Ipv4InterfaceContainer i = ipv4.Allocate (nd); |
54 Ipv4InterfaceContainer i = ipv4.Assign (nd); |
55 |
55 |
56 uint16_t port = 7; |
56 uint16_t port = 7; |
57 UdpEchoClientHelper client; |
57 UdpEchoClientHelper client; |
58 client.SetRemote (i.GetAddress (1), port); |
58 client.SetRemote (i.GetAddress (1), port); |
59 client.SetAppAttribute ("MaxPackets", Uinteger (1)); |
59 client.SetAppAttribute ("MaxPackets", Uinteger (1)); |