A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2008 INRIA
4  * Copyright (c) 2013 Dalian University of Technology
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation;
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
20  * Junling Bu <linlinjavaer@gmail.com>
21  */
22 #ifndef OCB_WIFI_MAC_H
23 #define OCB_WIFI_MAC_H
25 #include "ns3/object-factory.h"
26 #include "ns3/regular-wifi-mac.h"
27 #include "ns3/wifi-mac-queue.h"
28 #include "ns3/qos-utils.h"
29 #include "vendor-specific-action.h"
31 namespace ns3 {
32 class OrganizationIdentifier;
33 class WifiMacQueue;
47 class OcbWifiMac : public RegularWifiMac
48 {
49 public:
50  static TypeId GetTypeId (void);
51  OcbWifiMac (void);
52  virtual ~OcbWifiMac (void);
79  virtual Ssid GetSsid (void) const;
86  virtual void SetSsid (Ssid ssid);
92  virtual void SetBssid (Mac48Address bssid);
99  virtual Mac48Address GetBssid (void) const;
108  virtual void SetLinkUpCallback (Callback<void> linkUp);
112  virtual void SetLinkDownCallback (Callback<void> linkDown);
121  virtual void Enqueue (Ptr<const Packet> packet, Mac48Address to);
130  void ConfigureEdca (uint32_t cwmin, uint32_t cwmax, uint32_t aifsn, enum AcIndex ac);
132 protected:
133  virtual void FinishConfigureStandard (enum WifiPhyStandard standard);
134 private:
135  virtual void Receive (Ptr<Packet> packet, const WifiMacHeader *hdr);
138 };
140 }
141 #endif /* OCB_WIFI_MAC_H */
void ConfigureEdca(uint32_t cwmin, uint32_t cwmax, uint32_t aifsn, enum AcIndex ac)
Callback template class.
Definition: callback.h:924
virtual void FinishConfigureStandard(enum WifiPhyStandard standard)
virtual ~OcbWifiMac(void)
Definition: ocb-wifi-mac.cc:73
void SendVsc(Ptr< Packet > vsc, Mac48Address peer, OrganizationIdentifier oi)
Definition: ocb-wifi-mac.cc:79
VendorSpecificContentManager m_vscManager
Definition: ocb-wifi-mac.h:137
virtual void Receive(Ptr< Packet > packet, const WifiMacHeader *hdr)
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has bee...
virtual void SetLinkUpCallback(Callback< void > linkUp)
SetLinkUpCallback and SetLinkDownCallback will be overloaded In OCB mode, stations can send packets d...
Identifies the PHY specification that a Wifi device is configured to use.
base class for all MAC-level wifi objects.
virtual Ssid GetSsid(void) const
static TypeId GetTypeId(void)
Definition: ocb-wifi-mac.cc:44
the organization identifier is a public organizationally unique identifier assigned by the IEEE...
void RemoveReceiveVscCallback(OrganizationIdentifier oi)
an EUI-48 address
Definition: mac48-address.h:41
virtual void SetLinkDownCallback(Callback< void > linkDown)
The IEEE 802.11 SSID Information Element.
Definition: ssid.h:35
virtual void SetSsid(Ssid ssid)
virtual Mac48Address GetBssid(void) const
virtual void SetBssid(Mac48Address bssid)
virtual void Enqueue(Ptr< const Packet > packet, Mac48Address to)
a unique identifier for an interface.
Definition: type-id.h:49
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
Definition: qos-utils.h:35
void AddReceiveVscCallback(OrganizationIdentifier oi, VscCallback cb)
Implements the IEEE 802.11 MAC header.
STAs communicate with each directly outside the context of a BSSIn OCB mac mode,synchronization, association, dis-association and authentication of normal wifi are not used for wireless access in vehicular environments.
Definition: ocb-wifi-mac.h:47