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
#include "ns3/wifi-export.h"
15
16
namespace
ns3
17
{
18
19
/**
20
* @ingroup wifi
21
* @brief Headers for A-MSDU subframes
22
*/
23
class
WIFI_EXPORT
AmsduSubframeHeader
:
public
Header
24
{
25
public
:
26
AmsduSubframeHeader
();
27
~AmsduSubframeHeader
()
override
;
28
29
/**
30
* @brief Get the type ID.
31
* @return the object TypeId
32
*/
33
static
TypeId
GetTypeId
();
34
35
TypeId
GetInstanceTypeId
()
const override
;
36
void
Print
(std::ostream& os)
const override
;
37
uint32_t
GetSerializedSize
()
const override
;
38
void
Serialize
(
Buffer::Iterator
start)
const override
;
39
uint32_t
Deserialize
(
Buffer::Iterator
start)
override
;
40
41
/**
42
* Set destination address function
43
* @param to the destination MAC address
44
*/
45
void
SetDestinationAddr
(
Mac48Address
to);
46
/**
47
* Set source address function
48
* @param to the source MAC address
49
*/
50
void
SetSourceAddr
(
Mac48Address
to);
51
/**
52
* Set length function
53
* @param length the length in bytes
54
*/
55
void
SetLength
(uint16_t length);
56
/**
57
* Get destination address function
58
* @returns the destination MAC address
59
*/
60
Mac48Address
GetDestinationAddr
()
const
;
61
/**
62
* Get source address function
63
* @returns the source MAC address
64
*/
65
Mac48Address
GetSourceAddr
()
const
;
66
/**
67
* Get length function
68
* @returns the length in bytes
69
*/
70
uint16_t
GetLength
()
const
;
71
72
private
:
73
Mac48Address
m_da
;
///< destination address
74
Mac48Address
m_sa
;
///< source address
75
uint16_t
m_length
;
///< length in bytes
76
};
77
78
}
// namespace ns3
79
80
#endif
/* AMSDU_SUBFRAME_HEADER_H */
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:74
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:75
ns3::AmsduSubframeHeader::m_da
Mac48Address m_da
destination address
Definition
amsdu-subframe-header.h:73
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::Buffer::Iterator
iterator in a Buffer instance
Definition
buffer.h:109
ns3::Header
Protocol header serialization and deserialization.
Definition
header.h:36
ns3::Mac48Address
an EUI-48 address
Definition
mac48-address.h:37
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:50
uint32_t
Print
void Print(ComponentCarrier cc)
Definition
lena-cc-helper.cc:54
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
wifi
model
amsdu-subframe-header.h
Generated on
for ns-3 by
1.16.1