A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
WaveNetDeviceExample Class Reference

This simulation is to show the routing service of WaveNetDevice described in IEEE 09.4. More...

+ Collaboration diagram for WaveNetDeviceExample:

Public Member Functions

void SendIpExample (void)
 
void SendWsaExample (void)
 
void SendWsmpExample (void)
 

Private Member Functions

void CreateWaveNodes (void)
 
bool Receive (Ptr< NetDevice > dev, Ptr< const Packet > pkt, uint16_t mode, const Address &sender)
 
bool ReceiveVsa (Ptr< const Packet >, const Address &, uint32_t, uint32_t)
 
void SendIpPacket (uint32_t seq, bool ipv6)
 
void SendOneWsmpPacket (uint32_t channel, uint32_t seq)
 

Private Attributes

NetDeviceContainer devices
 
NodeContainer nodes
 

Detailed Description

This simulation is to show the routing service of WaveNetDevice described in IEEE 09.4.

note: although txPowerLevel is supported now, the "TxPowerLevels" attribute of YansWifiPhy is 1 which means phy devices only support 1 levels. Thus, if users want to control txPowerLevel, they should set these attributes of YansWifiPhy by themselves..

Definition at line 39 of file wave-simple-device.cc.

Member Function Documentation

bool WaveNetDeviceExample::Receive ( Ptr< NetDevice dev,
Ptr< const Packet pkt,
uint16_t  mode,
const Address sender 
)
private

Definition at line 92 of file wave-simple-device.cc.

References ns3::Time::GetSeconds(), ns3::SeqTsHeader::GetSeq(), ns3::SeqTsHeader::GetTs(), ns3::Now(), and ns3::Packet::PeekHeader().

Referenced by CreateWaveNodes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool WaveNetDeviceExample::ReceiveVsa ( Ptr< const Packet pkt,
const Address address,
uint32_t  ,
uint32_t   
)
private

Definition at line 210 of file wave-simple-device.cc.

References ns3::Time::GetSeconds(), and ns3::Now().

Referenced by CreateWaveNodes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void WaveNetDeviceExample::SendIpPacket ( uint32_t  seq,
bool  ipv6 
)
private

Definition at line 156 of file wave-simple-device.cc.

References ns3::Packet::AddHeader(), first::devices, ns3::WaveNetDevice::Send(), and ns3::SeqTsHeader::SetSeq().

Referenced by SendIpExample().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void WaveNetDeviceExample::SendOneWsmpPacket ( uint32_t  channel,
uint32_t  seq 
)
private

Definition at line 105 of file wave-simple-device.cc.

References ns3::Packet::AddHeader(), first::devices, ns3::Mac48Address::GetBroadcast(), ns3::WaveNetDevice::SendX(), and ns3::SeqTsHeader::SetSeq().

Referenced by SendWsmpExample().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

NetDeviceContainer WaveNetDeviceExample::devices
private

Definition at line 56 of file wave-simple-device.cc.

NodeContainer WaveNetDeviceExample::nodes
private

Definition at line 55 of file wave-simple-device.cc.


The documentation for this class was generated from the following file: