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
amsdu-subframe-header.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 MIRKO BANCHI
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Mirko Banchi <mk.banchi@gmail.com>
7
*/
8
9
#ifndef AMSDU_SUBFRAME_HEADER_H
10
#define AMSDU_SUBFRAME_HEADER_H
11
12
#include "ns3/header.h"
13
#include "ns3/mac48-address.h"
14
15
namespace
ns3
16
{
17
18
/**
19
* \ingroup wifi
20
* \brief Headers for A-MSDU subframes
21
*/
22
class
AmsduSubframeHeader
:
public
Header
23
{
24
public
:
25
AmsduSubframeHeader
();
26
~AmsduSubframeHeader
()
override
;
27
28
/**
29
* \brief Get the type ID.
30
* \return the object TypeId
31
*/
32
static
TypeId
GetTypeId
();
33
34
TypeId
GetInstanceTypeId
()
const override
;
35
void
Print
(std::ostream& os)
const override
;
36
uint32_t
GetSerializedSize
()
const override
;
37
void
Serialize
(
Buffer::Iterator
start)
const override
;
38
uint32_t
Deserialize
(
Buffer::Iterator
start)
override
;
39
40
/**
41
* Set destination address function
42
* \param to the destination MAC address
43
*/
44
void
SetDestinationAddr
(
Mac48Address
to);
45
/**
46
* Set source address function
47
* \param to the source MAC address
48
*/
49
void
SetSourceAddr
(
Mac48Address
to);
50
/**
51
* Set length function
52
* \param length the length in bytes
53
*/
54
void
SetLength
(uint16_t length);
55
/**
56
* Get destination address function
57
* \returns the destination MAC address
58
*/
59
Mac48Address
GetDestinationAddr
()
const
;
60
/**
61
* Get source address function
62
* \returns the source MAC address
63
*/
64
Mac48Address
GetSourceAddr
()
const
;
65
/**
66
* Get length function
67
* \returns the length in bytes
68
*/
69
uint16_t
GetLength
()
const
;
70
71
private
:
72
Mac48Address
m_da
;
///< destination address
73
Mac48Address
m_sa
;
///< source address
74
uint16_t
m_length
;
///< length in bytes
75
};
76
77
}
// namespace ns3
78
79
#endif
/* AMSDU_SUBFRAME_HEADER_H */
ns3::AmsduSubframeHeader
Headers for A-MSDU subframes.
Definition
amsdu-subframe-header.h:23
ns3::AmsduSubframeHeader::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
amsdu-subframe-header.cc:19
ns3::AmsduSubframeHeader::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition
amsdu-subframe-header.cc:44
ns3::AmsduSubframeHeader::SetSourceAddr
void SetSourceAddr(Mac48Address to)
Set source address function.
Definition
amsdu-subframe-header.cc:80
ns3::AmsduSubframeHeader::AmsduSubframeHeader
AmsduSubframeHeader()
Definition
amsdu-subframe-header.cc:34
ns3::AmsduSubframeHeader::GetSourceAddr
Mac48Address GetSourceAddr() const
Get source address function.
Definition
amsdu-subframe-header.cc:98
ns3::AmsduSubframeHeader::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition
amsdu-subframe-header.cc:29
ns3::AmsduSubframeHeader::SetDestinationAddr
void SetDestinationAddr(Mac48Address to)
Set destination address function.
Definition
amsdu-subframe-header.cc:74
ns3::AmsduSubframeHeader::m_sa
Mac48Address m_sa
source address
Definition
amsdu-subframe-header.h:73
ns3::AmsduSubframeHeader::Serialize
void Serialize(Buffer::Iterator start) const override
Definition
amsdu-subframe-header.cc:50
ns3::AmsduSubframeHeader::m_length
uint16_t m_length
length in bytes
Definition
amsdu-subframe-header.h:74
ns3::AmsduSubframeHeader::m_da
Mac48Address m_da
destination address
Definition
amsdu-subframe-header.h:72
ns3::AmsduSubframeHeader::SetLength
void SetLength(uint16_t length)
Set length function.
Definition
amsdu-subframe-header.cc:86
ns3::AmsduSubframeHeader::GetDestinationAddr
Mac48Address GetDestinationAddr() const
Get destination address function.
Definition
amsdu-subframe-header.cc:92
ns3::AmsduSubframeHeader::GetLength
uint16_t GetLength() const
Get length function.
Definition
amsdu-subframe-header.cc:104
ns3::AmsduSubframeHeader::Deserialize
uint32_t Deserialize(Buffer::Iterator start) override
Definition
amsdu-subframe-header.cc:58
ns3::AmsduSubframeHeader::Print
void Print(std::ostream &os) const override
Definition
amsdu-subframe-header.cc:68
ns3::AmsduSubframeHeader::~AmsduSubframeHeader
~AmsduSubframeHeader() override
Definition
amsdu-subframe-header.cc:39
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition
buffer.h:89
ns3::Header
Protocol header serialization and deserialization.
Definition
header.h:33
ns3::Mac48Address
an EUI-48 address
Definition
mac48-address.h:35
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
uint32_t
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
wifi
model
amsdu-subframe-header.h
Generated on Fri Nov 8 2024 13:59:07 for ns-3 by
1.11.0