#include <ctime>
#include <sstream>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include "ns3/ipv4-static-routing-helper.h"
#include "ns3/ipv4-list-routing-helper.h"
#include "ns3/ipv4-nix-vector-helper.h"
#include "ns3/topology-read-module.h"
#include <list>
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
NS_LOG_COMPONENT_DEFINE ("TopologyCreationExperiment") | |
static void | SinkRx (Ptr< const Packet > p, const Address &ad) |
Variables | |
static std::list< unsigned int > | data |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 59 of file topology-example-sim.cc.
References ns3::Ipv4ListRoutingHelper::Add(), ns3::NodeContainer::Add(), first::address, ns3::CommandLine::AddValue(), ns3::Ipv4AddressHelper::Assign(), ns3::Config::ConnectWithoutContext(), ns3::Simulator::Destroy(), ns3::NodeContainer::Get(), ns3::Ipv4::GetAddress(), ns3::UniformRandomVariable::GetInteger(), ns3::NodeContainer::GetN(), ns3::Object::GetObject(), ns3::TopologyReaderHelper::GetTopologyReader(), ns3::PacketSinkHelper::Install(), ns3::OnOffHelper::Install(), ns3::PointToPointHelper::Install(), ns3::InternetStackHelper::Install(), ns3::TopologyReader::LinksBegin(), ns3::TopologyReader::LinksEnd(), ns3::TopologyReader::LinksSize(), ns3::MakeCallback(), ns3::Ipv4AddressHelper::NewNetwork(), first::nodes, NS_LOG_ERROR, NS_LOG_INFO, ns3::CommandLine::Parse(), ns3::TopologyReader::Read(), ns3::Simulator::Run(), ns3::OnOffHelper::SetAttribute(), ns3::ObjectBase::SetAttribute(), ns3::Ipv4AddressHelper::SetBase(), ns3::PointToPointHelper::SetChannelAttribute(), ns3::OnOffHelper::SetConstantRate(), ns3::Config::SetDefault(), ns3::PointToPointHelper::SetDeviceAttribute(), ns3::TopologyReaderHelper::SetFileName(), ns3::TopologyReaderHelper::SetFileType(), ns3::InternetStackHelper::SetRoutingHelper(), SinkRx(), first::stack, ns3::ApplicationContainer::Start(), and ns3::ApplicationContainer::Stop().
NS_LOG_COMPONENT_DEFINE | ( | "TopologyCreationExperiment" | ) |
Definition at line 48 of file topology-example-sim.cc.
References ns3::Ipv4Header::GetTtl(), and ns3::Packet::PeekHeader().
Referenced by main().
|
static |
Definition at line 46 of file topology-example-sim.cc.