A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
olsr-hna.cc File Reference
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/mobility-module.h"
#include "ns3/config-store-module.h"
#include "ns3/wifi-module.h"
#include "ns3/csma-module.h"
#include "ns3/internet-module.h"
#include "ns3/olsr-routing-protocol.h"
#include "ns3/olsr-helper.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
+ Include dependency graph for olsr-hna.cc:

Go to the source code of this file.

Functions

static void GenerateTraffic (Ptr< Socket > socket, uint32_t pktSize, uint32_t pktCount, Time pktInterval)
 
int main (int argc, char *argv[])
 
 NS_LOG_COMPONENT_DEFINE ("OlsrHna")
 
void ReceivePacket (Ptr< Socket > socket)
 

Function Documentation

static void GenerateTraffic ( Ptr< Socket socket,
uint32_t  pktSize,
uint32_t  pktCount,
Time  pktInterval 
)
static

Definition at line 77 of file olsr-hna.cc.

References ns3::Socket::Close(), ns3::Simulator::Schedule(), and ns3::Socket::Send().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 93 of file olsr-hna.cc.

References ns3::Ipv4ListRoutingHelper::Add(), ns3::ListPositionAllocator::Add(), ns3::Ipv4StaticRouting::AddNetworkRouteTo(), ns3::YansWifiChannelHelper::AddPropagationLoss(), ns3::CommandLine::AddValue(), ns3::Ipv4AddressHelper::Assign(), ns3::Socket::Bind(), ns3::Socket::Connect(), ns3::YansWifiChannelHelper::Create(), ns3::NodeContainer::Create(), ns3::Socket::CreateSocket(), ns3::NqosWifiMacHelper::Default(), ns3::YansWifiPhyHelper::Default(), ns3::Simulator::Destroy(), first::devices, ns3::YansWifiPhyHelper::DLT_IEEE802_11_RADIO, ns3::WifiHelper::EnableLogComponents(), ns3::PcapHelperForDevice::EnablePcap(), ns3::OlsrHelper::ExcludeInterface(), GenerateTraffic(), ns3::NodeContainer::Get(), ns3::Ipv4Address::GetAny(), ns3::Node::GetId(), ns3::Socket::GetNode(), ns3::Ipv4ListRouting::GetNRoutingProtocols(), ns3::Object::GetObject(), ns3::Ipv4ListRouting::GetRoutingProtocol(), ns3::Ipv4::GetRoutingProtocol(), ns3::CsmaHelper::Install(), ns3::InternetStackHelper::Install(), ns3::WifiHelper::Install(), ns3::MobilityHelper::Install(), list, ns3::TypeId::LookupByName(), ns3::MakeCallback(), NS_LOG_INFO, ns3::CommandLine::Parse(), ReceivePacket(), ns3::Simulator::Run(), ns3::Simulator::ScheduleWithContext(), ns3::YansWifiPhyHelper::Set(), ns3::Ipv4AddressHelper::SetBase(), ns3::YansWifiPhyHelper::SetChannel(), ns3::CsmaHelper::SetChannelAttribute(), ns3::Config::SetDefault(), ns3::MobilityHelper::SetMobilityModel(), ns3::YansWifiPhyHelper::SetPcapDataLinkType(), ns3::MobilityHelper::SetPositionAllocator(), ns3::YansWifiChannelHelper::SetPropagationDelay(), ns3::Socket::SetRecvCallback(), ns3::WifiHelper::SetRemoteStationManager(), ns3::InternetStackHelper::SetRoutingHelper(), ns3::WifiHelper::SetStandard(), ns3::NqosWifiMacHelper::SetType(), first::stack, ns3::Simulator::Stop(), verbose, and ns3::WIFI_PHY_STANDARD_80211b.

NS_LOG_COMPONENT_DEFINE ( "OlsrHna"  )
void ReceivePacket ( Ptr< Socket socket)

Definition at line 72 of file olsr-hna.cc.

References NS_LOG_UNCOND.

Referenced by main().

+ Here is the caller graph for this function: