A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
adhoc-wifi-mac.h
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2006, 2009 INRIA
4
* Copyright (c) 2009 MIRKO BANCHI
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
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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
* Author: Mirko Banchi <mk.banchi@gmail.com>
21
*/
22
#ifndef ADHOC_WIFI_MAC_H
23
#define ADHOC_WIFI_MAC_H
24
25
#include "regular-wifi-mac.h"
26
27
#include "amsdu-subframe-header.h"
28
29
namespace
ns3 {
30
36
class
AdhocWifiMac
:
public
RegularWifiMac
37
{
38
public
:
39
static
TypeId
GetTypeId (
void
);
40
41
AdhocWifiMac
();
42
virtual
~
AdhocWifiMac
();
43
47
virtual
void
SetAddress
(
Mac48Address
address);
48
52
virtual
void
SetLinkUpCallback
(
Callback<void>
linkUp);
53
62
virtual
void
Enqueue
(
Ptr<const Packet>
packet,
Mac48Address
to);
63
64
private
:
65
virtual
void
Receive
(
Ptr<Packet>
packet,
const
WifiMacHeader
*hdr);
66
};
67
68
}
// namespace ns3
69
70
#endif
/* ADHOC_WIFI_MAC_H */
ns3::AdhocWifiMac::SetLinkUpCallback
virtual void SetLinkUpCallback(Callback< void > linkUp)
Definition:
adhoc-wifi-mac.cc:154
ns3::Ptr< const Packet >
ns3::Callback< void >
ns3::AdhocWifiMac::Enqueue
virtual void Enqueue(Ptr< const Packet > packet, Mac48Address to)
Definition:
adhoc-wifi-mac.cc:83
ns3::AdhocWifiMac
Definition:
adhoc-wifi-mac.h:36
ns3::AdhocWifiMac::Receive
virtual void Receive(Ptr< Packet > packet, const WifiMacHeader *hdr)
Definition:
adhoc-wifi-mac.cc:166
ns3::RegularWifiMac
base class for all MAC-level wifi objects.This class encapsulates all the low-level MAC functionality...
Definition:
regular-wifi-mac.h:51
ns3::AdhocWifiMac::SetAddress
virtual void SetAddress(Mac48Address address)
Definition:
adhoc-wifi-mac.cc:69
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:41
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:44
ns3::WifiMacHeader
Definition:
wifi-mac-header.h:76
src
wifi
model
adhoc-wifi-mac.h
Generated on Sun Mar 16 2014 11:25:11 for ns-3 by
1.8.6