tutorial/tutorial-star.cc
changeset 2888 872dc8466352
parent 2887 9a637e6daee0
child 2965 4b28e9740e3b
child 2996 a83b94e277d4
equal deleted inserted replaced
2887:9a637e6daee0 2888:872dc8466352
    65   NetDeviceContainer d05 = p2p.Install (n05);
    65   NetDeviceContainer d05 = p2p.Install (n05);
    66   NetDeviceContainer d06 = p2p.Install (n06);
    66   NetDeviceContainer d06 = p2p.Install (n06);
    67 
    67 
    68   Ipv4AddressHelper ipv4;
    68   Ipv4AddressHelper ipv4;
    69   ipv4.SetBase ("10.1.1.0", "255.255.255.252");
    69   ipv4.SetBase ("10.1.1.0", "255.255.255.252");
    70   Ipv4InterfaceContainer i01 = ipv4.Allocate (d01);
    70   Ipv4InterfaceContainer i01 = ipv4.Assign (d01);
    71   ipv4.SetBase ("10.1.2.0", "255.255.255.252");
    71   ipv4.SetBase ("10.1.2.0", "255.255.255.252");
    72   Ipv4InterfaceContainer i02 = ipv4.Allocate (d02);
    72   Ipv4InterfaceContainer i02 = ipv4.Assign (d02);
    73   ipv4.SetBase ("10.1.3.0", "255.255.255.252");
    73   ipv4.SetBase ("10.1.3.0", "255.255.255.252");
    74   Ipv4InterfaceContainer i03 = ipv4.Allocate (d03);
    74   Ipv4InterfaceContainer i03 = ipv4.Assign (d03);
    75   ipv4.SetBase ("10.1.4.0", "255.255.255.252");
    75   ipv4.SetBase ("10.1.4.0", "255.255.255.252");
    76   Ipv4InterfaceContainer i04 = ipv4.Allocate (d04);
    76   Ipv4InterfaceContainer i04 = ipv4.Assign (d04);
    77   ipv4.SetBase ("10.1.5.0", "255.255.255.252");
    77   ipv4.SetBase ("10.1.5.0", "255.255.255.252");
    78   Ipv4InterfaceContainer i05 = ipv4.Allocate (d05);
    78   Ipv4InterfaceContainer i05 = ipv4.Assign (d05);
    79   ipv4.SetBase ("10.1.6.0", "255.255.255.252");
    79   ipv4.SetBase ("10.1.6.0", "255.255.255.252");
    80   Ipv4InterfaceContainer i06 = ipv4.Allocate (d06);
    80   Ipv4InterfaceContainer i06 = ipv4.Assign (d06);
    81 
    81 
    82   uint16_t port = 7;
    82   uint16_t port = 7;
    83 
    83 
    84   UdpEchoServerHelper server;
    84   UdpEchoServerHelper server;
    85   server.SetPort (port);
    85   server.SetPort (port);