A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
adhoc-wifi-mac.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2006, 2009 INRIA
3
* Copyright (c) 2009 MIRKO BANCHI
4
*
5
* SPDX-License-Identifier: GPL-2.0-only
6
*
7
* Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
8
* Mirko Banchi <mk.banchi@gmail.com>
9
*/
10
11
#ifndef ADHOC_WIFI_MAC_H
12
#define ADHOC_WIFI_MAC_H
13
14
#include "
wifi-mac.h
"
15
16
namespace
ns3
17
{
18
19
/**
20
* @ingroup wifi
21
*
22
* @brief Wifi MAC high model for an ad-hoc Wifi MAC
23
*/
24
class
AdhocWifiMac
:
public
WifiMac
25
{
26
public
:
27
/**
28
* @brief Get the type ID.
29
* @return the object TypeId
30
*/
31
static
TypeId
GetTypeId
();
32
33
AdhocWifiMac
();
34
~AdhocWifiMac
()
override
;
35
36
void
SetLinkUpCallback
(
Callback<void>
linkUp)
override
;
37
bool
CanForwardPacketsTo
(
Mac48Address
to)
const override
;
38
39
private
:
40
void
Receive
(
Ptr<const WifiMpdu>
mpdu, uint8_t linkId)
override
;
41
void
DoCompleteConfig
()
override
;
42
void
Enqueue
(
Ptr<WifiMpdu>
mpdu,
Mac48Address
to,
Mac48Address
from)
override
;
43
};
44
45
}
// namespace ns3
46
47
#endif
/* ADHOC_WIFI_MAC_H */
ns3::AdhocWifiMac
Wifi MAC high model for an ad-hoc Wifi MAC.
Definition
adhoc-wifi-mac.h:25
ns3::AdhocWifiMac::AdhocWifiMac
AdhocWifiMac()
Definition
adhoc-wifi-mac.cc:39
ns3::AdhocWifiMac::Enqueue
void Enqueue(Ptr< WifiMpdu > mpdu, Mac48Address to, Mac48Address from) override
Definition
adhoc-wifi-mac.cc:64
ns3::AdhocWifiMac::DoCompleteConfig
void DoCompleteConfig() override
Allow subclasses to complete the configuration of the MAC layer components.
Definition
adhoc-wifi-mac.cc:52
ns3::AdhocWifiMac::~AdhocWifiMac
~AdhocWifiMac() override
Definition
adhoc-wifi-mac.cc:46
ns3::AdhocWifiMac::Receive
void Receive(Ptr< const WifiMpdu > mpdu, uint8_t linkId) override
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has bee...
Definition
adhoc-wifi-mac.cc:132
ns3::AdhocWifiMac::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
adhoc-wifi-mac.cc:30
ns3::AdhocWifiMac::SetLinkUpCallback
void SetLinkUpCallback(Callback< void > linkUp) override
Definition
adhoc-wifi-mac.cc:120
ns3::AdhocWifiMac::CanForwardPacketsTo
bool CanForwardPacketsTo(Mac48Address to) const override
Return true if packets can be forwarded to the given destination, false otherwise.
Definition
adhoc-wifi-mac.cc:58
ns3::Callback
Callback template class.
Definition
callback.h:422
ns3::Mac48Address
an EUI-48 address
Definition
mac48-address.h:35
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::WifiMac
base class for all MAC-level wifi objects.
Definition
wifi-mac.h:89
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
wifi-mac.h
src
wifi
model
adhoc-wifi-mac.h
Generated on Fri Dec 13 2024 09:20:50 for ns-3 by
1.11.0