Public Types |
enum | Direction { DIRECTION_DOWNLINK,
DIRECTION_UPLINK
} |
enum | RangingStatus { RANGING_STATUS_EXPIRED,
RANGING_STATUS_CONTINUE,
RANGING_STATUS_ABORT,
RANGING_STATUS_SUCCESS
} |
Public Member Functions |
void | SetTtg (uint16_t ttg) |
uint16_t | GetTtg (void) const |
void | SetRtg (uint16_t rtg) |
uint16_t | GetRtg (void) const |
void | Attach (Ptr< WimaxChannel > channel) |
void | SetPhy (Ptr< WimaxPhy > phy) |
Ptr< WimaxPhy > | GetPhy (void) const |
void | SetChannel (Ptr< WimaxChannel > wimaxChannel) |
uint64_t | GetChannel (uint8_t index) const |
void | SetNrFrames (uint32_t nrFrames) |
uint32_t | GetNrFrames (void) const |
void | SetMacAddress (Mac48Address address) |
Mac48Address | GetMacAddress (void) const |
void | SetState (uint8_t state) |
uint8_t | GetState (void) const |
Ptr< WimaxConnection > | GetInitialRangingConnection (void) const |
Ptr< WimaxConnection > | GetBroadcastConnection (void) const |
void | SetCurrentDcd (Dcd dcd) |
Dcd | GetCurrentDcd (void) const |
void | SetCurrentUcd (Ucd ucd) |
Ucd | GetCurrentUcd (void) const |
Ptr< ConnectionManager > | GetConnectionManager (void) const |
virtual void | SetConnectionManager (Ptr< ConnectionManager > connectionManager) |
Ptr< BurstProfileManager > | GetBurstProfileManager (void) const |
void | SetBurstProfileManager (Ptr< BurstProfileManager > burstProfileManager) |
Ptr< BandwidthManager > | GetBandwidthManager (void) const |
void | SetBandwidthManager (Ptr< BandwidthManager > bandwidthManager) |
void | CreateDefaultConnections (void) |
virtual void | Start (void)=0 |
virtual void | Stop (void)=0 |
void | SetReceiveCallback (void) |
void | ForwardUp (Ptr< Packet > packet, const Mac48Address &source, const Mac48Address &dest) |
virtual bool | Enqueue (Ptr< Packet > packet, const MacHeaderType &hdrType, Ptr< WimaxConnection > connection)=0 |
void | ForwardDown (Ptr< PacketBurst > burst, WimaxPhy::ModulationType modulationType) |
virtual void | SetName (const std::string name) |
virtual std::string | GetName (void) const |
virtual void | SetIfIndex (const uint32_t index) |
virtual uint32_t | GetIfIndex (void) const |
virtual Ptr< Channel > | GetPhyChannel (void) const |
virtual Ptr< Channel > | GetChannel (void) const |
virtual void | SetAddress (Address address) |
virtual Address | GetAddress (void) const |
virtual bool | SetMtu (const uint16_t mtu) |
virtual uint16_t | GetMtu (void) const |
virtual bool | IsLinkUp (void) const |
virtual void | SetLinkChangeCallback (Callback< void > callback) |
virtual bool | IsBroadcast (void) const |
virtual Address | GetBroadcast (void) const |
virtual bool | IsMulticast (void) const |
virtual Address | GetMulticast (void) const |
virtual Address | MakeMulticastAddress (Ipv4Address multicastGroup) const |
virtual bool | IsPointToPoint (void) const |
| Return true if the net device is on a point-to-point link.
|
virtual bool | Send (Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber) |
virtual void | SetNode (Ptr< Node > node) |
virtual Ptr< Node > | GetNode (void) const |
virtual bool | NeedsArp (void) const |
virtual void | SetReceiveCallback (NetDevice::ReceiveCallback cb) |
virtual void | AddLinkChangeCallback (Callback< void > callback) |
virtual bool | SendFrom (Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber) |
virtual void | SetPromiscReceiveCallback (PromiscReceiveCallback cb) |
NetDevice::PromiscReceiveCallback | GetPromiscReceiveCallback (void) |
virtual bool | SupportsSendFrom (void) const |
virtual void | DoDispose (void) |
virtual Address | GetMulticast (Ipv6Address addr) const |
| Get the MAC multicast address corresponding to the IPv6 address provided.
|
virtual Address | GetMulticast (Ipv4Address multicastGroup) const |
| Make and return a MAC multicast address using the provided multicast group.
|
virtual bool | IsBridge (void) const |
| Return true if the net device is acting as a bridge.
|
bool | IsPromisc (void) |
void | NotifyPromiscTrace (Ptr< Packet > p) |
Static Public Member Functions |
static TypeId | GetTypeId (void) |
| This method returns the TypeId associated to ns3::WimaxNetDevice.
|
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 |
static Time | m_frameStartTime |
virtual void ns3::WimaxNetDevice::DoDispose |
( |
void |
|
) |
[virtual] |
This method is called by Object::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.
virtual Address ns3::WimaxNetDevice::GetMulticast |
( |
Ipv4Address |
multicastGroup |
) |
const [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.
A default implementation of GetMulticast is provided, but this method simply NS_ASSERTS. 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.
- Parameters:
-
| multicastGroup | The IP address for the multicast group destination of the packet. |
- Returns:
- The MAC multicast Address used to send packets to the provided multicast group.
- Warning:
- Calling this method is invalid if IsMulticast returns not true.
- See also:
- Ipv4Address
-
Address
-
NetDevice::IsMulticast
Implements ns3::NetDevice.
static TypeId ns3::WimaxNetDevice::GetTypeId |
( |
void |
|
) |
[static] |
This method returns the TypeId associated to ns3::WimaxNetDevice.
This object is accessible through the following paths with Config::Set and Config::Connect:
-
/NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::WimaxNetDevice
-
/NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/LinkManager/$ns3::WimaxNetDevice
-
/NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/SSManager/$ns3::WimaxNetDevice
-
/NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::WimaxNetDevice
-
/NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/Classifier/$ns3::WimaxNetDevice
-
/NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::WimaxNetDevice
-
/NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::WimaxNetDevice
-
/NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice
Attributes defined for this type:
-
Mtu: The MAC-level Maximum Transmission Unit
-
Phy: The PHY layer attached to this device.
-
Channel: The channel attached to this device.
-
RTG: receive/transmit transition gap.
-
TTG: transmit/receive transition gap.
-
ConnectionManager: The connection manager attached to this device.
-
BurstProfileManager: The burst profile manager attached to this device.
-
BandwidthManager: The bandwidth manager attached to this device.
-
InitialRangingConnection: Initial ranging connection
-
BroadcastConnection: Broadcast connection
TraceSources defined for this type:
-
Rx: Receive trace
-
Tx: Transmit trace
Reimplemented from ns3::NetDevice.
Reimplemented in ns3::BaseStationNetDevice, and ns3::SubscriberStationNetDevice.