examples/csma-broadcast.cc
changeset 2972 d76553495b91
parent 2965 4b28e9740e3b
parent 2902 9c2cfada5e72
child 2997 caf9d364c6fc
equal deleted inserted replaced
2971:75780f899be3 2972:d76553495b91
    72   csma.SetChannelParameter ("Delay", TimeValue (MilliSeconds(2)));
    72   csma.SetChannelParameter ("Delay", TimeValue (MilliSeconds(2)));
    73 
    73 
    74   NetDeviceContainer n0 = csma.Install (c0);
    74   NetDeviceContainer n0 = csma.Install (c0);
    75   NetDeviceContainer n1 = csma.Install (c1);
    75   NetDeviceContainer n1 = csma.Install (c1);
    76 
    76 
    77 
       
    78   InternetStackHelper internet;
    77   InternetStackHelper internet;
    79   internet.Install (c0);
    78   internet.Install (c);
    80   internet.Install (c1);
       
    81 
    79 
    82   NS_LOG_INFO ("Assign IP Addresses.");
    80   NS_LOG_INFO ("Assign IP Addresses.");
    83   Ipv4AddressHelper ipv4;
    81   Ipv4AddressHelper ipv4;
    84   ipv4.SetBase ("10.1.0.0", "255.255.255.0");
    82   ipv4.SetBase ("10.1.0.0", "255.255.255.0");
    85   ipv4.Assign (n0);
    83   ipv4.Assign (n0);