examples/csma-multicast.cc
changeset 2888 872dc8466352
parent 2887 9a637e6daee0
child 2889 969d4f6ab9ba
equal deleted inserted replaced
2887:9a637e6daee0 2888:872dc8466352
    87   internet.Install (c1);
    87   internet.Install (c1);
    88 
    88 
    89   NS_LOG_INFO ("Assign IP Addresses.");
    89   NS_LOG_INFO ("Assign IP Addresses.");
    90   Ipv4AddressHelper ipv4Addr;
    90   Ipv4AddressHelper ipv4Addr;
    91   ipv4Addr.SetBase ("10.1.1.0", "255.255.255.0");
    91   ipv4Addr.SetBase ("10.1.1.0", "255.255.255.0");
    92   ipv4Addr.Allocate (nd0);
    92   ipv4Addr.Assign (nd0);
    93   ipv4Addr.SetBase ("10.1.2.0", "255.255.255.0");
    93   ipv4Addr.SetBase ("10.1.2.0", "255.255.255.0");
    94   ipv4Addr.Allocate (nd1);
    94   ipv4Addr.Assign (nd1);
    95 
    95 
    96   NS_LOG_INFO ("Configure multicasting.");
    96   NS_LOG_INFO ("Configure multicasting.");
    97   //
    97   //
    98   // Now we can configure multicasting.  As described above, the multicast 
    98   // Now we can configure multicasting.  As described above, the multicast 
    99   // source is at node zero, which we assigned the IP address of 10.1.1.1 
    99   // source is at node zero, which we assigned the IP address of 10.1.1.1