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
ampdu-subframe-header.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Ghada Badawy <gbadawy@gmail.com>
7
*/
8
9
#ifndef AMPDU_SUBFRAME_HEADER_H
10
#define AMPDU_SUBFRAME_HEADER_H
11
12
#include "ns3/header.h"
13
14
namespace
ns3
15
{
16
17
/**
18
* \ingroup wifi
19
* \brief Headers for A-MPDU subframes
20
*/
21
class
AmpduSubframeHeader
:
public
Header
22
{
23
public
:
24
AmpduSubframeHeader
();
25
~AmpduSubframeHeader
()
override
;
26
27
/**
28
* \brief Get the type ID.
29
* \return the object TypeId
30
*/
31
static
TypeId
GetTypeId
();
32
33
TypeId
GetInstanceTypeId
()
const override
;
34
void
Print
(std::ostream& os)
const override
;
35
uint32_t
GetSerializedSize
()
const override
;
36
void
Serialize
(
Buffer::Iterator
start)
const override
;
37
uint32_t
Deserialize
(
Buffer::Iterator
start)
override
;
38
39
/**
40
* Set the length field.
41
*
42
* \param length in bytes
43
*/
44
void
SetLength
(uint16_t length);
45
/**
46
* Set the EOF field.
47
*
48
* \param eof set EOF field if true
49
*/
50
void
SetEof
(
bool
eof);
51
/**
52
* Return the length field.
53
*
54
* \return the length field in bytes
55
*/
56
uint16_t
GetLength
()
const
;
57
/**
58
* Return the EOF field.
59
*
60
* \return the EOF field
61
*/
62
bool
GetEof
()
const
;
63
/**
64
* Return whether the pattern stored in the delimiter
65
* signature field is correct, i.e. corresponds to the
66
* unique pattern 0x4E.
67
*
68
* \return true if the signature is valid, false otherwise
69
*/
70
bool
IsSignatureValid
()
const
;
71
72
private
:
73
uint16_t
m_length
;
//!< length field in bytes
74
bool
m_eof
;
//!< EOF field
75
uint8_t
m_signature
;
//!< delimiter signature (should correspond to pattern 0x4E in order to be
76
//!< assumed valid)
77
};
78
79
}
// namespace ns3
80
81
#endif
/* AMPDU_SUBFRAME_HEADER_H */
ns3::AmpduSubframeHeader
Headers for A-MPDU subframes.
Definition
ampdu-subframe-header.h:22
ns3::AmpduSubframeHeader::Deserialize
uint32_t Deserialize(Buffer::Iterator start) override
Definition
ampdu-subframe-header.cc:60
ns3::AmpduSubframeHeader::m_length
uint16_t m_length
length field in bytes
Definition
ampdu-subframe-header.h:73
ns3::AmpduSubframeHeader::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition
ampdu-subframe-header.cc:29
ns3::AmpduSubframeHeader::SetEof
void SetEof(bool eof)
Set the EOF field.
Definition
ampdu-subframe-header.cc:85
ns3::AmpduSubframeHeader::IsSignatureValid
bool IsSignatureValid() const
Return whether the pattern stored in the delimiter signature field is correct, i.e.
Definition
ampdu-subframe-header.cc:103
ns3::AmpduSubframeHeader::SetLength
void SetLength(uint16_t length)
Set the length field.
Definition
ampdu-subframe-header.cc:79
ns3::AmpduSubframeHeader::GetLength
uint16_t GetLength() const
Return the length field.
Definition
ampdu-subframe-header.cc:91
ns3::AmpduSubframeHeader::GetEof
bool GetEof() const
Return the EOF field.
Definition
ampdu-subframe-header.cc:97
ns3::AmpduSubframeHeader::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition
ampdu-subframe-header.cc:46
ns3::AmpduSubframeHeader::m_eof
bool m_eof
EOF field.
Definition
ampdu-subframe-header.h:74
ns3::AmpduSubframeHeader::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
ampdu-subframe-header.cc:19
ns3::AmpduSubframeHeader::m_signature
uint8_t m_signature
delimiter signature (should correspond to pattern 0x4E in order to be assumed valid)
Definition
ampdu-subframe-header.h:75
ns3::AmpduSubframeHeader::AmpduSubframeHeader
AmpduSubframeHeader()
Definition
ampdu-subframe-header.cc:34
ns3::AmpduSubframeHeader::~AmpduSubframeHeader
~AmpduSubframeHeader() override
Definition
ampdu-subframe-header.cc:41
ns3::AmpduSubframeHeader::Print
void Print(std::ostream &os) const override
Definition
ampdu-subframe-header.cc:72
ns3::AmpduSubframeHeader::Serialize
void Serialize(Buffer::Iterator start) const override
Definition
ampdu-subframe-header.cc:52
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition
buffer.h:89
ns3::Header
Protocol header serialization and deserialization.
Definition
header.h:33
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
ampdu-subframe-header.h
Generated on Fri Nov 8 2024 13:59:07 for ns-3 by
1.11.0