66 NetDeviceContainer d05 = p2p.Install (n05); |
66 NetDeviceContainer d05 = p2p.Install (n05); |
67 NetDeviceContainer d06 = p2p.Install (n06); |
67 NetDeviceContainer d06 = p2p.Install (n06); |
68 |
68 |
69 Ipv4AddressHelper ipv4; |
69 Ipv4AddressHelper ipv4; |
70 ipv4.SetBase ("10.1.1.0", "255.255.255.252"); |
70 ipv4.SetBase ("10.1.1.0", "255.255.255.252"); |
71 Ipv4InterfaceContainer i01 = ipv4.Allocate (d01); |
71 Ipv4InterfaceContainer i01 = ipv4.Assign (d01); |
72 ipv4.SetBase ("10.1.2.0", "255.255.255.252"); |
72 ipv4.SetBase ("10.1.2.0", "255.255.255.252"); |
73 Ipv4InterfaceContainer i02 = ipv4.Allocate (d02); |
73 Ipv4InterfaceContainer i02 = ipv4.Assign (d02); |
74 ipv4.SetBase ("10.1.3.0", "255.255.255.252"); |
74 ipv4.SetBase ("10.1.3.0", "255.255.255.252"); |
75 Ipv4InterfaceContainer i03 = ipv4.Allocate (d03); |
75 Ipv4InterfaceContainer i03 = ipv4.Assign (d03); |
76 ipv4.SetBase ("10.1.4.0", "255.255.255.252"); |
76 ipv4.SetBase ("10.1.4.0", "255.255.255.252"); |
77 Ipv4InterfaceContainer i04 = ipv4.Allocate (d04); |
77 Ipv4InterfaceContainer i04 = ipv4.Assign (d04); |
78 ipv4.SetBase ("10.1.5.0", "255.255.255.252"); |
78 ipv4.SetBase ("10.1.5.0", "255.255.255.252"); |
79 Ipv4InterfaceContainer i05 = ipv4.Allocate (d05); |
79 Ipv4InterfaceContainer i05 = ipv4.Assign (d05); |
80 ipv4.SetBase ("10.1.6.0", "255.255.255.252"); |
80 ipv4.SetBase ("10.1.6.0", "255.255.255.252"); |
81 Ipv4InterfaceContainer i06 = ipv4.Allocate (d06); |
81 Ipv4InterfaceContainer i06 = ipv4.Assign (d06); |
82 |
82 |
83 uint16_t port = 7; |
83 uint16_t port = 7; |
84 |
84 |
85 UdpEchoServerHelper server; |
85 UdpEchoServerHelper server; |
86 server.SetPort (port); |
86 server.SetPort (port); |