A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
peer-link-frame.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2009 IITP RAS
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Authors: Kirill Andreev <andreev@iitp.ru>
18 */
19
20#ifndef PEER_LINK_FRAME_START_H
21#define PEER_LINK_FRAME_START_H
22#include "dot11s-mac-header.h"
24#include "ie-dot11s-id.h"
26
27#include "ns3/header.h"
28#include "ns3/supported-rates.h"
29
30#include <optional>
31
32namespace ns3
33{
34namespace dot11s
35{
48{
49 public:
51
52 // Delete copy constructor and assignment operator to avoid misuse
55
58 {
60 uint16_t capability;
62 std::optional<ExtendedSupportedRatesIE> extendedRates;
65 };
66
77
82 static TypeId GetTypeId();
83 // Inherited from header:
84 TypeId GetInstanceTypeId() const override;
85 void Print(std::ostream& os) const override;
86 uint32_t GetSerializedSize() const override;
87 void Serialize(Buffer::Iterator start) const override;
89
90 private:
91 uint16_t m_capability;
93 std::optional<ExtendedSupportedRatesIE> m_extendedRates;
96
104 friend bool operator==(const PeerLinkOpenStart& a, const PeerLinkOpenStart& b);
105};
106
107bool operator==(const PeerLinkOpenStart& a, const PeerLinkOpenStart& b);
108
118{
119 public:
121
122 // Delete copy constructor and assignment operator to avoid misuse
125
128 {
131 };
132
143
148 static TypeId GetTypeId();
149 // Inherited from header:
150 TypeId GetInstanceTypeId() const override;
151 void Print(std::ostream& os) const override;
152 uint32_t GetSerializedSize() const override;
153 void Serialize(Buffer::Iterator start) const override;
154 uint32_t Deserialize(Buffer::Iterator start) override;
155
156 private:
158
166 friend bool operator==(const PeerLinkCloseStart& a, const PeerLinkCloseStart& b);
167};
168
169bool operator==(const PeerLinkCloseStart& a, const PeerLinkCloseStart& b);
170
182{
183 public:
185
186 // Delete copy constructor and assignment operator to avoid misuse
189
192 {
194 uint16_t capability;
195 uint16_t aid;
197 std::optional<ExtendedSupportedRatesIE> extendedRates;
199 };
200
211
216 static TypeId GetTypeId();
217 // Inherited from header:
218 TypeId GetInstanceTypeId() const override;
219 void Print(std::ostream& os) const override;
220 uint32_t GetSerializedSize() const override;
221 void Serialize(Buffer::Iterator start) const override;
222 uint32_t Deserialize(Buffer::Iterator start) override;
223
224 private:
225 uint16_t m_capability;
226 uint16_t m_aid;
228 std::optional<ExtendedSupportedRatesIE> m_extendedRates;
230
238 friend bool operator==(const PeerLinkConfirmStart& a, const PeerLinkConfirmStart& b);
239};
240
242} // namespace dot11s
243} // namespace ns3
244#endif
iterator in a Buffer instance
Definition: buffer.h:100
Protocol header serialization and deserialization.
Definition: header.h:44
The Supported Rates Information Element.
a unique identifier for an interface.
Definition: type-id.h:59
Describes Mesh Configuration Element see 7.3.2.86 of 802.11s draft 3.0.
a IEEE 802.11 Mesh ID element (Section 8.4.2.101 of IEEE 802.11-2012)
Definition: ie-dot11s-id.h:38
Mesh Peering Protocol Identifier information element Note that it does not permit to set any value be...
bool operator==(const MeshHeader &a, const MeshHeader &b)
Every class exported by the ns3 library is enclosed in the ns3 namespace.