Hold together all Wimax-related objects in a NetDevice. More...
#include "wimax-net-device.h"
Public Member Functions | |
WimaxNetDevice (void) | |
virtual | ~WimaxNetDevice (void) |
virtual void | AddLinkChangeCallback (Callback< void > callback) |
void | Attach (Ptr< WimaxChannel > channel) |
void | CreateDefaultConnections (void) |
Creates the initial ranging and broadcast connections. More... | |
virtual void | DoDispose (void) |
Destructor implementation. More... | |
virtual bool | Enqueue (Ptr< Packet > packet, const MacHeaderType &hdrType, Ptr< WimaxConnection > connection)=0 |
void | ForwardDown (Ptr< PacketBurst > burst, WimaxPhy::ModulationType modulationType) |
void | ForwardUp (Ptr< Packet > packet, const Mac48Address &source, const Mac48Address &dest) |
virtual Address | GetAddress (void) const |
Ptr< BandwidthManager > | GetBandwidthManager (void) const |
virtual Address | GetBroadcast (void) const |
Ptr< WimaxConnection > | GetBroadcastConnection (void) const |
Ptr< BurstProfileManager > | GetBurstProfileManager (void) const |
uint64_t | GetChannel (uint8_t index) const |
virtual Ptr< Channel > | GetChannel (void) const |
Ptr< ConnectionManager > | GetConnectionManager (void) const |
Dcd | GetCurrentDcd (void) const |
Ucd | GetCurrentUcd (void) const |
virtual uint32_t | GetIfIndex (void) const |
Ptr< WimaxConnection > | GetInitialRangingConnection (void) const |
Mac48Address | GetMacAddress (void) const |
virtual uint16_t | GetMtu (void) const |
virtual Address | GetMulticast (void) const |
virtual Address | GetMulticast (Ipv6Address addr) const |
Get the MAC multicast address corresponding to the IPv6 address provided. More... | |
virtual Address | GetMulticast (Ipv4Address multicastGroup) const |
Make and return a MAC multicast address using the provided multicast group. More... | |
virtual std::string | GetName (void) const |
virtual Ptr< Node > | GetNode (void) const |
uint32_t | GetNrFrames (void) const |
Ptr< WimaxPhy > | GetPhy (void) const |
virtual Ptr< Channel > | GetPhyChannel (void) const |
NetDevice::PromiscReceiveCallback | GetPromiscReceiveCallback (void) |
uint16_t | GetRtg (void) const |
uint8_t | GetState (void) const |
uint16_t | GetTtg (void) const |
virtual bool | IsBridge (void) const |
Return true if the net device is acting as a bridge. More... | |
virtual bool | IsBroadcast (void) const |
virtual bool | IsLinkUp (void) const |
virtual bool | IsMulticast (void) const |
virtual bool | IsPointToPoint (void) const |
Return true if the net device is on a point-to-point link. More... | |
bool | IsPromisc (void) |
virtual Address | MakeMulticastAddress (Ipv4Address multicastGroup) const |
virtual bool | NeedsArp (void) const |
void | NotifyPromiscTrace (Ptr< Packet > p) |
virtual bool | Send (Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber) |
virtual bool | SendFrom (Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber) |
virtual void | SetAddress (Address address) |
Set the address of this interface. More... | |
void | SetBandwidthManager (Ptr< BandwidthManager > bandwidthManager) |
void | SetBurstProfileManager (Ptr< BurstProfileManager > burstProfileManager) |
void | SetChannel (Ptr< WimaxChannel > wimaxChannel) |
virtual void | SetConnectionManager (Ptr< ConnectionManager > connectionManager) |
void | SetCurrentDcd (Dcd dcd) |
void | SetCurrentUcd (Ucd ucd) |
virtual void | SetIfIndex (const uint32_t index) |
virtual void | SetLinkChangeCallback (Callback< void > callback) |
void | SetMacAddress (Mac48Address address) |
virtual bool | SetMtu (const uint16_t mtu) |
virtual void | SetName (const std::string name) |
virtual void | SetNode (Ptr< Node > node) |
void | SetNrFrames (uint32_t nrFrames) |
void | SetPhy (Ptr< WimaxPhy > phy) |
virtual void | SetPromiscReceiveCallback (PromiscReceiveCallback cb) |
void | SetReceiveCallback (void) |
virtual void | SetReceiveCallback (NetDevice::ReceiveCallback cb) |
void | SetRtg (uint16_t rtg) |
void | SetState (uint8_t state) |
void | SetTtg (uint16_t ttg) |
virtual void | Start (void)=0 |
virtual void | Stop (void)=0 |
virtual bool | SupportsSendFrom (void) const |
![]() | |
virtual | ~NetDevice () |
![]() | |
Object () | |
Constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose (void) |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator (void) const |
Get an iterator to the Objects aggregated to this one. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Implement the GetInstanceTypeId method defined in ObjectBase. More... | |
template<typename T > | |
Ptr< T > | GetObject (void) const |
Get a pointer to the requested aggregated Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
void | Initialize (void) |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized (void) const |
Check if the object has been initialized. More... | |
![]() | |
SimpleRefCount () | |
Constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
![]() | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising erros. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
![]() | |
static void | Cleanup (void) |
Noop. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Public Attributes | |
TracedCallback< Ptr< const Packet >, const Mac48Address & > | m_traceRx |
TracedCallback< Ptr< const Packet >, const Mac48Address & > | m_traceTx |
Static Public Attributes | |
static uint8_t | m_direction = ~0 |
static Time | m_frameStartTime = Seconds (0) |
Private Member Functions | |
WimaxNetDevice (const WimaxNetDevice &) | |
virtual Ptr< WimaxChannel > | DoGetChannel (void) const |
virtual void | DoReceive (Ptr< Packet > packet)=0 |
virtual bool | DoSend (Ptr< Packet > packet, const Mac48Address &source, const Mac48Address &dest, uint16_t protocolNumber)=0 |
void | InitializeChannels (void) |
WimaxNetDevice & | operator= (const WimaxNetDevice &) |
void | Receive (Ptr< const PacketBurst > burst) |
Private Attributes | |
Mac48Address | m_address |
Ptr< BandwidthManager > | m_bandwidthManager |
Ptr< WimaxConnection > | m_broadcastConnection |
Ptr< BurstProfileManager > | m_burstProfileManager |
Ptr< ConnectionManager > | m_connectionManager |
Dcd | m_currentDcd |
Ucd | m_currentUcd |
std::vector< uint64_t > | m_dlChannels |
NetDevice::ReceiveCallback | m_forwardUp |
uint32_t | m_ifIndex |
Ptr< WimaxConnection > | m_initialRangingConnection |
Callback< void > | m_linkChange |
bool | m_linkUp |
Ptr< Object > | m_mobility |
uint16_t | m_mtu |
std::string | m_name |
Ptr< Node > | m_node |
Ptr< WimaxPhy > | m_phy |
NetDevice::PromiscReceiveCallback | m_promiscRx |
uint16_t | m_rtg |
uint8_t | m_state |
uint32_t | m_symbolIndex |
uint16_t | m_ttg |
Static Private Attributes | |
static const uint16_t | DEFAULT_MSDU_SIZE = 1400 |
static uint32_t | m_nrFrames = 0 |
static const uint16_t | MAX_MSDU_SIZE = 1500 |
Additional Inherited Members | |
![]() | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | DoInitialize (void) |
Initialize() implementation. More... | |
virtual void | NotifyNewAggregate (void) |
Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
![]() | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Hold together all Wimax-related objects in a NetDevice.
This class holds together ns3::WimaxPhy, ns3::WimaxConnection, ns3::ConectionManager, ns3::BurstProfileManager, and ns3::BandwidthManager.
ns3::WimaxNetDevice is accessible through the following paths with Config::Set and Config::Connect:
Size of this type is 384 bytes (on a 64-bit architecture).
Definition at line 69 of file wimax-net-device.h.
typedef void(* ns3::WimaxNetDevice::TxRxTracedCallback) (Ptr< const Packet > packet, const Mac48Address &mac) |
TracedCallback signature for packet and Mac48Address.
[in] | packet | The packet. |
[in] | mac | The Mac48Address. |
const Mac48Address &
argument is deprecated and will be changed to Mac48Address
in a future release. The TracedCallback signature will then match Packet::Mac48Address
and this typedef can be removed. Definition at line 233 of file wimax-net-device.h.
ns3::WimaxNetDevice::WimaxNetDevice | ( | void | ) |
Definition at line 138 of file wimax-net-device.cc.
References InitializeChannels(), m_bandwidthManager, m_burstProfileManager, m_connectionManager, m_direction, m_frameStartTime, m_nrFrames, and ns3::Seconds().
|
virtual |
Definition at line 153 of file wimax-net-device.cc.
|
private |
|
virtual |
callback | the callback to invoke |
Add a callback invoked whenever the link status changes to UP. This callback is typically used by the IP/ARP layer to flush the ARP cache and by IPv6 stack to flush NDISC cache whenever the link goes up.
Implements ns3::NetDevice.
Definition at line 643 of file wimax-net-device.cc.
References NS_FATAL_ERROR.
void ns3::WimaxNetDevice::Attach | ( | Ptr< WimaxChannel > | channel | ) |
Definition at line 357 of file wimax-net-device.cc.
References m_phy.
void ns3::WimaxNetDevice::CreateDefaultConnections | ( | void | ) |
Creates the initial ranging and broadcast connections.
Definition at line 511 of file wimax-net-device.cc.
References ns3::Cid::BROADCAST, ns3::Cid::Broadcast(), ns3::Cid::INITIAL_RANGING, ns3::Cid::InitialRanging(), m_broadcastConnection, and m_initialRangingConnection.
Referenced by ns3::BaseStationNetDevice::Start(), and ns3::SubscriberStationNetDevice::Start().
|
virtual |
Destructor implementation.
This method is called by Dispose() or by the Object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e, for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose() method.
It is safe to call GetObject() from within this method.
Reimplemented from ns3::Object.
Reimplemented in ns3::SubscriberStationNetDevice, and ns3::BaseStationNetDevice.
Definition at line 158 of file wimax-net-device.cc.
References ns3::Object::DoDispose(), m_bandwidthManager, m_broadcastConnection, m_burstProfileManager, m_connectionManager, m_initialRangingConnection, m_node, and m_phy.
Referenced by ns3::BaseStationNetDevice::DoDispose(), and ns3::SubscriberStationNetDevice::DoDispose().
|
privatevirtual |
Definition at line 532 of file wimax-net-device.cc.
References m_phy.
Referenced by GetChannel(), and GetPhyChannel().
Implemented in ns3::SubscriberStationNetDevice, and ns3::BaseStationNetDevice.
Referenced by Receive().
|
privatepure virtual |
Implemented in ns3::SubscriberStationNetDevice, and ns3::BaseStationNetDevice.
Referenced by Send(), and SendFrom().
|
pure virtual |
Implemented in ns3::SubscriberStationNetDevice, and ns3::BaseStationNetDevice.
void ns3::WimaxNetDevice::ForwardDown | ( | Ptr< PacketBurst > | burst, |
WimaxPhy::ModulationType | modulationType | ||
) |
Definition at line 583 of file wimax-net-device.cc.
References m_direction, and m_phy.
Referenced by ns3::SubscriberStationNetDevice::SendBurst(), and ns3::BaseStationNetDevice::SendBursts().
void ns3::WimaxNetDevice::ForwardUp | ( | Ptr< Packet > | packet, |
const Mac48Address & | source, | ||
const Mac48Address & | dest | ||
) |
Definition at line 348 of file wimax-net-device.cc.
References ns3::LlcSnapHeader::GetType(), m_forwardUp, m_traceRx, and ns3::Packet::RemoveHeader().
Referenced by ns3::BaseStationNetDevice::DoReceive(), and ns3::SubscriberStationNetDevice::DoReceive().
|
virtual |
Implements ns3::NetDevice.
Definition at line 415 of file wimax-net-device.cc.
References m_address.
Referenced by Send().
Ptr< BandwidthManager > ns3::WimaxNetDevice::GetBandwidthManager | ( | void | ) | const |
Definition at line 499 of file wimax-net-device.cc.
References m_bandwidthManager.
Referenced by ns3::BaseStationNetDevice::DoReceive(), GetTypeId(), ns3::SubscriberStationNetDevice::ProcessUlMap(), and ns3::BaseStationNetDevice::Start().
|
virtual |
Calling this method is invalid if IsBroadcast returns not true.
Implements ns3::NetDevice.
Definition at line 274 of file wimax-net-device.cc.
References ns3::Mac48Address::GetBroadcast().
Ptr< WimaxConnection > ns3::WimaxNetDevice::GetBroadcastConnection | ( | void | ) | const |
Definition at line 445 of file wimax-net-device.cc.
References m_broadcastConnection.
Referenced by ns3::BaseStationNetDevice::CreateDescriptorMessages(), ns3::BaseStationNetDevice::CreateMapMessages(), ns3::SubscriberStationNetDevice::DoReceive(), ns3::BaseStationNetDevice::GetConnection(), ns3::SubscriberStationNetDevice::ProcessUlMap(), and ns3::BaseStationNetDevice::SendBursts().
Ptr< BurstProfileManager > ns3::WimaxNetDevice::GetBurstProfileManager | ( | void | ) | const |
Definition at line 487 of file wimax-net-device.cc.
References m_burstProfileManager.
Referenced by GetTypeId(), ns3::SubscriberStationNetDevice::SendBurst(), ns3::BaseStationNetDevice::SendBursts(), ns3::BaseStationNetDevice::SetDlBurstProfiles(), and ns3::BaseStationNetDevice::SetUlBurstProfiles().
uint64_t ns3::WimaxNetDevice::GetChannel | ( | uint8_t | index | ) | const |
Definition at line 385 of file wimax-net-device.cc.
References m_dlChannels.
Implements ns3::NetDevice.
Definition at line 225 of file wimax-net-device.cc.
References DoGetChannel().
Ptr< ConnectionManager > ns3::WimaxNetDevice::GetConnectionManager | ( | void | ) | const |
Definition at line 475 of file wimax-net-device.cc.
References m_connectionManager.
Referenced by ns3::BaseStationNetDevice::DoReceive(), ns3::SubscriberStationNetDevice::DoReceive(), ns3::BaseStationNetDevice::GetConnection(), GetTypeId(), and ns3::BaseStationNetDevice::Start().
Dcd ns3::WimaxNetDevice::GetCurrentDcd | ( | void | ) | const |
Definition at line 457 of file wimax-net-device.cc.
References m_currentDcd.
Referenced by ns3::SubscriberStationNetDevice::ProcessDcd().
Ucd ns3::WimaxNetDevice::GetCurrentUcd | ( | void | ) | const |
Definition at line 469 of file wimax-net-device.cc.
References m_currentUcd.
Referenced by ns3::SubscriberStationNetDevice::ProcessUcd(), and ns3::SubscriberStationNetDevice::ProcessUlMap().
|
virtual |
Implements ns3::NetDevice.
Definition at line 219 of file wimax-net-device.cc.
References m_ifIndex.
Ptr< WimaxConnection > ns3::WimaxNetDevice::GetInitialRangingConnection | ( | void | ) | const |
Definition at line 439 of file wimax-net-device.cc.
References m_initialRangingConnection.
Referenced by ns3::SubscriberStationNetDevice::DoReceive(), ns3::BaseStationNetDevice::GetConnection(), and ns3::BaseStationNetDevice::SendBursts().
Mac48Address ns3::WimaxNetDevice::GetMacAddress | ( | void | ) | const |
Definition at line 421 of file wimax-net-device.cc.
References m_address.
Referenced by ns3::BaseStationNetDevice::CreateDcd(), ns3::BaseStationNetDevice::CreateDlMap(), ns3::SubscriberStationNetDevice::DoReceive(), ns3::SubscriberStationNetDevice::DoSend(), Receive(), and ns3::SubscriberStationNetDevice::SendBurst().
|
virtual |
This value is typically used by the IP layer to perform IP fragmentation when needed.
Implements ns3::NetDevice.
Definition at line 248 of file wimax-net-device.cc.
References m_mtu.
Referenced by GetTypeId().
|
virtual |
Definition at line 286 of file wimax-net-device.cc.
Referenced by MakeMulticastAddress().
|
virtual |
Get the MAC multicast address corresponding to the IPv6 address provided.
addr | IPv6 address |
Implements ns3::NetDevice.
Definition at line 634 of file wimax-net-device.cc.
References ns3::Mac48Address::GetMulticast(), and NS_LOG_LOGIC.
|
virtual |
Make and return a MAC multicast address using the provided multicast group.
RFC 1112 says that an Ipv4 host group address is mapped to an Ethernet multicast address by placing the low-order 23-bits of the IP address into the low-order 23 bits of the Ethernet multicast address 01-00-5E-00-00-00 (hex). Similar RFCs exist for Ipv6 and Eui64 mappings. This method performs the multicast address creation function appropriate to the underlying MAC address of the device. This MAC address is encapsulated in an abstract Address to avoid dependencies on the exact MAC address format.
In the case of net devices that do not support multicast, clients are expected to test NetDevice::IsMulticast and avoid attempting to map multicast packets. Subclasses of NetDevice that do support multicasting are expected to override this method and provide an implementation appropriate to the particular device.
multicastGroup | The IP address for the multicast group destination of the packet. |
Implements ns3::NetDevice.
Definition at line 617 of file wimax-net-device.cc.
References ns3::Mac48Address::GetMulticast(), NS_LOG_FUNCTION, and NS_LOG_LOGIC.
|
virtual |
Definition at line 207 of file wimax-net-device.cc.
References m_name.
When a subclass needs to get access to the underlying node base class to print the nodeid for example, it can invoke this method.
Implements ns3::NetDevice.
Definition at line 324 of file wimax-net-device.cc.
References m_node.
uint32_t ns3::WimaxNetDevice::GetNrFrames | ( | void | ) | const |
Definition at line 396 of file wimax-net-device.cc.
References m_nrFrames.
Referenced by ns3::BaseStationNetDevice::CreateDcd(), ns3::BaseStationNetDevice::StartDlSubFrame(), and ns3::BaseStationNetDevice::StartFrame().
Definition at line 369 of file wimax-net-device.cc.
References m_phy.
Referenced by ns3::BaseStationNetDevice::CreateDcd(), ns3::BaseStationNetDevice::CreateUcd(), ns3::SubscriberStationNetDevice::GetTimeToAllocation(), GetTypeId(), ns3::SubscriberStationNetDevice::ProcessDcd(), ns3::SubscriberStationNetDevice::ProcessUlMap(), ns3::BaseStationNetDevice::SendBursts(), ns3::BaseStationNetDevice::Start(), ns3::SubscriberStationNetDevice::Start(), and ns3::BaseStationNetDevice::StartFrame().
Definition at line 231 of file wimax-net-device.cc.
References DoGetChannel().
Referenced by GetTypeId().
NetDevice::PromiscReceiveCallback ns3::WimaxNetDevice::GetPromiscReceiveCallback | ( | void | ) |
uint16_t ns3::WimaxNetDevice::GetRtg | ( | void | ) | const |
Definition at line 195 of file wimax-net-device.cc.
References m_rtg.
Referenced by ns3::BaseStationNetDevice::CreateDcd(), ns3::BaseStationNetDevice::EndUlSubFrame(), GetTypeId(), ns3::BaseStationNetDevice::Start(), and ns3::BaseStationNetDevice::StartFrame().
uint8_t ns3::WimaxNetDevice::GetState | ( | void | ) | const |
Definition at line 433 of file wimax-net-device.cc.
References m_state.
Referenced by ns3::SubscriberStationNetDevice::DoReceive(), ns3::SubscriberStationNetDevice::IsRegistered(), ns3::SubscriberStationNetDevice::ProcessUlMap(), and ns3::SubscriberStationNetDevice::SetTimer().
uint16_t ns3::WimaxNetDevice::GetTtg | ( | void | ) | const |
Definition at line 183 of file wimax-net-device.cc.
References m_ttg.
Referenced by ns3::BaseStationNetDevice::CreateDcd(), ns3::BaseStationNetDevice::EndDlSubFrame(), GetTypeId(), ns3::BaseStationNetDevice::Start(), and ns3::BaseStationNetDevice::StartFrame().
|
static |
Definition at line 52 of file wimax-net-device.cc.
References DEFAULT_MSDU_SIZE, GetBandwidthManager(), GetBurstProfileManager(), GetConnectionManager(), GetMtu(), GetPhy(), GetPhyChannel(), GetRtg(), GetTtg(), m_broadcastConnection, m_initialRangingConnection, m_traceRx, m_traceTx, ns3::MakePointerAccessor(), ns3::MakeTraceSourceAccessor(), ns3::MakeUintegerAccessor(), MAX_MSDU_SIZE, SetBandwidthManager(), SetBurstProfileManager(), SetChannel(), SetConnectionManager(), SetMtu(), ns3::TypeId::SetParent(), SetPhy(), SetRtg(), and SetTtg().
|
private |
Definition at line 591 of file wimax-net-device.cc.
References m_dlChannels.
Referenced by WimaxNetDevice().
|
virtual |
Return true if the net device is acting as a bridge.
Implements ns3::NetDevice.
Definition at line 610 of file wimax-net-device.cc.
References NS_LOG_FUNCTION_NOARGS.
|
virtual |
Implements ns3::NetDevice.
Definition at line 268 of file wimax-net-device.cc.
|
virtual |
Implements ns3::NetDevice.
Definition at line 254 of file wimax-net-device.cc.
|
virtual |
Implements ns3::NetDevice.
Definition at line 280 of file wimax-net-device.cc.
|
virtual |
Return true if the net device is on a point-to-point link.
Implements ns3::NetDevice.
Definition at line 298 of file wimax-net-device.cc.
bool ns3::WimaxNetDevice::IsPromisc | ( | void | ) |
Definition at line 565 of file wimax-net-device.cc.
References ns3::Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::IsNull(), and m_promiscRx.
Referenced by ns3::SubscriberStationNetDevice::DoReceive().
|
virtual |
Definition at line 292 of file wimax-net-device.cc.
References GetMulticast().
|
virtual |
Called by higher-layers to check if this NetDevice requires ARP to be used.
Implements ns3::NetDevice.
Definition at line 330 of file wimax-net-device.cc.
Definition at line 571 of file wimax-net-device.cc.
Referenced by ns3::SubscriberStationNetDevice::DoReceive().
|
private |
|
private |
Definition at line 518 of file wimax-net-device.cc.
References DoReceive(), GetMacAddress(), list, and NS_LOG_DEBUG.
Referenced by SetReceiveCallback().
|
virtual |
packet | packet sent from above down to Network Device |
dest | mac address of the destination (already resolved) |
protocolNumber | identifies the type of payload contained in this packet. Used to call the right L3Protocol when the packet is received. |
Called from higher layer to send packet into Network Device to the specified destination Address
Implements ns3::NetDevice.
Definition at line 304 of file wimax-net-device.cc.
References ns3::Packet::AddHeader(), ns3::Mac48Address::ConvertFrom(), DoSend(), GetAddress(), m_traceTx, and ns3::LlcSnapHeader::SetType().
|
virtual |
packet | packet sent from above down to Network Device |
source | source mac address (so called "MAC spoofing") |
dest | mac address of the destination (already resolved) |
protocolNumber | identifies the type of payload contained in this packet. Used to call the right L3Protocol when the packet is received. |
Called from higher layer to send packet into Network Device with the specified source and destination Addresses.
Implements ns3::NetDevice.
Definition at line 544 of file wimax-net-device.cc.
References ns3::Packet::AddHeader(), ns3::Mac48Address::ConvertFrom(), DoSend(), m_traceTx, and ns3::LlcSnapHeader::SetType().
|
virtual |
Set the address of this interface.
address | address to set |
Implements ns3::NetDevice.
Definition at line 403 of file wimax-net-device.cc.
References ns3::Mac48Address::ConvertFrom(), and m_address.
void ns3::WimaxNetDevice::SetBandwidthManager | ( | Ptr< BandwidthManager > | bandwidthManager | ) |
bandwidthManager | the bandwidth manager to be installed on the device |
Definition at line 505 of file wimax-net-device.cc.
References m_bandwidthManager.
Referenced by GetTypeId().
void ns3::WimaxNetDevice::SetBurstProfileManager | ( | Ptr< BurstProfileManager > | burstProfileManager | ) |
burstProfileManager | the burst profile manager to be installed on the device |
Definition at line 493 of file wimax-net-device.cc.
References m_burstProfileManager.
Referenced by GetTypeId().
void ns3::WimaxNetDevice::SetChannel | ( | Ptr< WimaxChannel > | wimaxChannel | ) |
wimaxChannel | the channel to be used |
Definition at line 375 of file wimax-net-device.cc.
References m_phy.
Referenced by GetTypeId().
|
virtual |
connectionManager | the commection manager to be installed in the device |
Definition at line 481 of file wimax-net-device.cc.
References m_connectionManager.
Referenced by GetTypeId().
void ns3::WimaxNetDevice::SetCurrentDcd | ( | Dcd | dcd | ) |
Definition at line 451 of file wimax-net-device.cc.
References m_currentDcd.
Referenced by ns3::BaseStationNetDevice::CreateDcd(), and ns3::SubscriberStationNetDevice::ProcessDcd().
void ns3::WimaxNetDevice::SetCurrentUcd | ( | Ucd | ucd | ) |
Definition at line 463 of file wimax-net-device.cc.
References m_currentUcd.
Referenced by ns3::BaseStationNetDevice::CreateUcd(), and ns3::SubscriberStationNetDevice::ProcessUcd().
|
virtual |
index | ifIndex of the device |
Implements ns3::NetDevice.
Definition at line 213 of file wimax-net-device.cc.
References m_ifIndex.
|
virtual |
Definition at line 262 of file wimax-net-device.cc.
References m_linkChange.
void ns3::WimaxNetDevice::SetMacAddress | ( | Mac48Address | address | ) |
address | the mac address of the net device |
Definition at line 409 of file wimax-net-device.cc.
References first::address, and m_address.
|
virtual |
mtu | MTU value, in bytes, to set for the device |
Override for default MTU defined on a per-type basis.
Implements ns3::NetDevice.
Definition at line 237 of file wimax-net-device.cc.
References m_mtu, and MAX_MSDU_SIZE.
Referenced by GetTypeId().
|
virtual |
Definition at line 201 of file wimax-net-device.cc.
References m_name.
node | the node associated to this netdevice. |
This method is called from ns3::Node::AddDevice.
Implements ns3::NetDevice.
Definition at line 318 of file wimax-net-device.cc.
References m_node.
Referenced by ns3::BaseStationNetDevice::BaseStationNetDevice(), and ns3::SubscriberStationNetDevice::SubscriberStationNetDevice().
void ns3::WimaxNetDevice::SetNrFrames | ( | uint32_t | nrFrames | ) |
Definition at line 391 of file wimax-net-device.cc.
References m_nrFrames.
Referenced by ns3::BaseStationNetDevice::StartDlSubFrame().
phy | the phy layer to use. |
Definition at line 363 of file wimax-net-device.cc.
References m_phy, and third::phy.
Referenced by ns3::BaseStationNetDevice::BaseStationNetDevice(), GetTypeId(), and ns3::SubscriberStationNetDevice::SubscriberStationNetDevice().
|
virtual |
cb | callback to invoke whenever a packet has been received in promiscuous mode and must be forwarded to the higher layers. |
Enables netdevice promiscuous mode and sets the callback that will handle promiscuous mode packets. Note, promiscuous mode packets means all packets, including those packets that can be sensed by the netdevice but which are intended to be received by other hosts.
Implements ns3::NetDevice.
Definition at line 559 of file wimax-net-device.cc.
References m_promiscRx.
void ns3::WimaxNetDevice::SetReceiveCallback | ( | void | ) |
Definition at line 538 of file wimax-net-device.cc.
References m_phy, ns3::MakeCallback(), and Receive().
Referenced by ns3::BaseStationNetDevice::Start(), and ns3::SubscriberStationNetDevice::Start().
|
virtual |
cb | callback to invoke whenever a packet has been received and must be forwarded to the higher layers. |
Set the callback to be used to notify higher layers when a packet has been received.
Implements ns3::NetDevice.
Definition at line 342 of file wimax-net-device.cc.
References m_forwardUp.
void ns3::WimaxNetDevice::SetRtg | ( | uint16_t | rtg | ) |
rtg | receive/transmit transition gap |
Definition at line 189 of file wimax-net-device.cc.
References m_rtg.
Referenced by GetTypeId(), and ns3::BaseStationNetDevice::Start().
void ns3::WimaxNetDevice::SetState | ( | uint8_t | state | ) |
Definition at line 427 of file wimax-net-device.cc.
References m_state.
Referenced by ns3::SubscriberStationNetDevice::DoReceive(), ns3::BaseStationNetDevice::EndDlSubFrame(), ns3::BaseStationNetDevice::EndUlSubFrame(), ns3::BaseStationNetDevice::StartDlSubFrame(), ns3::BaseStationNetDevice::StartUlSubFrame(), and ns3::SubscriberStationNetDevice::Stop().
void ns3::WimaxNetDevice::SetTtg | ( | uint16_t | ttg | ) |
ttg | transmit/receive transition gap |
Definition at line 177 of file wimax-net-device.cc.
References m_ttg.
Referenced by GetTypeId(), and ns3::BaseStationNetDevice::Start().
|
pure virtual |
Implemented in ns3::SubscriberStationNetDevice, and ns3::BaseStationNetDevice.
|
pure virtual |
Implemented in ns3::SubscriberStationNetDevice, and ns3::BaseStationNetDevice.
|
virtual |
Implements ns3::NetDevice.
Definition at line 577 of file wimax-net-device.cc.
|
staticprivate |
Definition at line 265 of file wimax-net-device.h.
Referenced by GetTypeId().
|
private |
Definition at line 293 of file wimax-net-device.h.
Referenced by GetAddress(), GetMacAddress(), SetAddress(), and SetMacAddress().
|
private |
Definition at line 309 of file wimax-net-device.h.
Referenced by DoDispose(), GetBandwidthManager(), SetBandwidthManager(), and WimaxNetDevice().
|
private |
Definition at line 305 of file wimax-net-device.h.
Referenced by CreateDefaultConnections(), DoDispose(), GetBroadcastConnection(), and GetTypeId().
|
private |
Definition at line 308 of file wimax-net-device.h.
Referenced by DoDispose(), GetBurstProfileManager(), SetBurstProfileManager(), and WimaxNetDevice().
|
private |
Definition at line 307 of file wimax-net-device.h.
Referenced by DoDispose(), GetConnectionManager(), SetConnectionManager(), and WimaxNetDevice().
|
private |
Definition at line 301 of file wimax-net-device.h.
Referenced by GetCurrentDcd(), and SetCurrentDcd().
|
private |
Definition at line 302 of file wimax-net-device.h.
Referenced by GetCurrentUcd(), and SetCurrentUcd().
|
static |
Definition at line 189 of file wimax-net-device.h.
Referenced by ForwardDown(), ns3::BaseStationNetDevice::StartDlSubFrame(), ns3::BaseStationNetDevice::StartUlSubFrame(), and WimaxNetDevice().
|
private |
Definition at line 291 of file wimax-net-device.h.
Referenced by GetChannel(), and InitializeChannels().
|
private |
Definition at line 278 of file wimax-net-device.h.
Referenced by ForwardUp(), and SetReceiveCallback().
Definition at line 191 of file wimax-net-device.h.
Referenced by ns3::SubscriberStationNetDevice::GetTimeToAllocation(), ns3::BaseStationNetDevice::StartDlSubFrame(), ns3::BaseStationNetDevice::StartFrame(), and WimaxNetDevice().
|
private |
Definition at line 281 of file wimax-net-device.h.
Referenced by GetIfIndex(), and SetIfIndex().
|
private |
Definition at line 304 of file wimax-net-device.h.
Referenced by CreateDefaultConnections(), DoDispose(), GetInitialRangingConnection(), and GetTypeId().
|
private |
Definition at line 284 of file wimax-net-device.h.
Referenced by SetLinkChangeCallback().
|
private |
Definition at line 283 of file wimax-net-device.h.
Referenced by IsLinkUp().
Definition at line 311 of file wimax-net-device.h.
|
mutableprivate |
Definition at line 285 of file wimax-net-device.h.
|
private |
Definition at line 282 of file wimax-net-device.h.
Definition at line 276 of file wimax-net-device.h.
Referenced by DoDispose(), GetNode(), and SetNode().
|
staticprivate |
Definition at line 288 of file wimax-net-device.h.
Referenced by GetNrFrames(), SetNrFrames(), and WimaxNetDevice().
Definition at line 277 of file wimax-net-device.h.
Referenced by Attach(), DoDispose(), DoGetChannel(), ForwardDown(), GetPhy(), IsLinkUp(), SetChannel(), SetPhy(), and SetReceiveCallback().
|
private |
Definition at line 279 of file wimax-net-device.h.
Referenced by IsPromisc(), and SetPromiscReceiveCallback().
|
private |
Definition at line 299 of file wimax-net-device.h.
|
private |
Definition at line 294 of file wimax-net-device.h.
Referenced by GetState(), and SetState().
|
private |
Definition at line 295 of file wimax-net-device.h.
TracedCallback<Ptr<const Packet>, const Mac48Address &> ns3::WimaxNetDevice::m_traceRx |
const Mac48Address &
argument is deprecated and will be changed to Mac48Address
in a future release. The TracedCallback signature will then match Packet::Mac48Address
and this typedef can be removed. Definition at line 241 of file wimax-net-device.h.
Referenced by ForwardUp(), and GetTypeId().
TracedCallback<Ptr<const Packet>, const Mac48Address &> ns3::WimaxNetDevice::m_traceTx |
const Mac48Address &
argument is deprecated and will be changed to Mac48Address
in a future release. The TracedCallback signature will then match Packet::Mac48Address
and this typedef can be removed. Definition at line 249 of file wimax-net-device.h.
Referenced by GetTypeId(), Send(), and SendFrom().
|
private |
Definition at line 298 of file wimax-net-device.h.
|
staticprivate |
Definition at line 263 of file wimax-net-device.h.
Referenced by GetTypeId(), and SetMtu().