A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dot11s-mac-header.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009 IITP RAS
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Kirill Andreev <andreev@iitp.ru>
19
*/
20
21
22
#ifndef MESH_WIFI_MAC_HEADER_H
23
#define MESH_WIFI_MAC_HEADER_H
24
25
#include "ns3/header.h"
26
#include "ns3/mac48-address.h"
27
28
namespace
ns3
{
29
namespace
dot11s {
37
class
MeshHeader
:
public
Header
38
{
39
public
:
40
MeshHeader
();
41
~MeshHeader
();
42
static
TypeId
GetTypeId
();
43
virtual
TypeId
GetInstanceTypeId
()
const
;
44
virtual
void
Print
(std::ostream &os)
const
;
45
46
void
SetAddr4
(
Mac48Address
address
);
47
void
SetAddr5
(
Mac48Address
address);
48
void
SetAddr6
(
Mac48Address
address);
49
Mac48Address
GetAddr4
()
const
;
50
Mac48Address
GetAddr5
()
const
;
51
Mac48Address
GetAddr6
()
const
;
52
53
void
SetMeshSeqno
(uint32_t seqno);
54
uint32_t
GetMeshSeqno
()
const
;
55
56
void
SetMeshTtl
(uint8_t TTL);
57
uint8_t
GetMeshTtl
()
const
;
58
59
void
SetAddressExt
(uint8_t num_of_addresses);
60
uint8_t
GetAddressExt
()
const
;
61
62
virtual
uint32_t
GetSerializedSize
()
const
;
63
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
64
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
65
private
:
66
uint8_t
m_meshFlags
;
67
uint8_t
m_meshTtl
;
68
uint32_t
m_meshSeqno
;
69
Mac48Address
m_addr4
;
70
Mac48Address
m_addr5
;
71
Mac48Address
m_addr6
;
72
friend
bool
operator==
(
const
MeshHeader
& a,
const
MeshHeader
& b);
73
};
74
bool
operator==
(
const
MeshHeader
& a,
const
MeshHeader
& b);
75
76
}
// namespace dot11s
77
}
// namespace ns3
78
#endif
/* MESH_WIFI_MAC_HEADER_H */
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:42
ns3::dot11s::MeshHeader::GetMeshTtl
uint8_t GetMeshTtl() const
Definition:
dot11s-mac-header.cc:99
ns3::dot11s::MeshHeader::m_addr4
Mac48Address m_addr4
Definition:
dot11s-mac-header.h:69
visualizer.core.start
def start()
Definition:
core.py:1482
ns3::dot11s::MeshHeader::MeshHeader
MeshHeader()
Definition:
dot11s-mac-header.cc:40
ns3::dot11s::MeshHeader::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition:
dot11s-mac-header.cc:142
ns3::dot11s::MeshHeader::m_addr5
Mac48Address m_addr5
Definition:
dot11s-mac-header.h:70
ns3::dot11s::MeshHeader::SetMeshSeqno
void SetMeshSeqno(uint32_t seqno)
Definition:
dot11s-mac-header.cc:84
ns3::dot11s::MeshHeader::Print
virtual void Print(std::ostream &os) const
Definition:
dot11s-mac-header.cc:165
ns3::dot11s::operator==
bool operator==(const MeshHeader &a, const MeshHeader &b)
Definition:
dot11s-mac-header.cc:172
ns3::dot11s::MeshHeader::SetAddressExt
void SetAddressExt(uint8_t num_of_addresses)
Definition:
dot11s-mac-header.cc:104
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:98
ns3::dot11s::MeshHeader::SetMeshTtl
void SetMeshTtl(uint8_t TTL)
Definition:
dot11s-mac-header.cc:94
ns3::dot11s::MeshHeader::Serialize
virtual void Serialize(Buffer::Iterator start) const
Definition:
dot11s-mac-header.cc:120
ns3::dot11s::MeshHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
Definition:
dot11s-mac-header.cc:49
ns3::dot11s::MeshHeader::GetAddr5
Mac48Address GetAddr5() const
Definition:
dot11s-mac-header.cc:74
ns3::dot11s::MeshHeader::GetAddr4
Mac48Address GetAddr4() const
Definition:
dot11s-mac-header.cc:69
ns3::dot11s::MeshHeader::SetAddr6
void SetAddr6(Mac48Address address)
Definition:
dot11s-mac-header.cc:64
ns3::dot11s::MeshHeader::GetAddressExt
uint8_t GetAddressExt() const
Definition:
dot11s-mac-header.cc:110
ns3::dot11s::MeshHeader::SetAddr4
void SetAddr4(Mac48Address address)
Definition:
dot11s-mac-header.cc:54
ns3::dot11s::MeshHeader::GetTypeId
static TypeId GetTypeId()
Definition:
dot11s-mac-header.cc:32
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::dot11s::MeshHeader::m_meshTtl
uint8_t m_meshTtl
Definition:
dot11s-mac-header.h:67
ns3::dot11s::MeshHeader::SetAddr5
void SetAddr5(Mac48Address address)
Definition:
dot11s-mac-header.cc:59
ns3::dot11s::MeshHeader::m_addr6
Mac48Address m_addr6
Definition:
dot11s-mac-header.h:71
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:43
ns3::dot11s::MeshHeader::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Definition:
dot11s-mac-header.cc:115
ns3::dot11s::MeshHeader::~MeshHeader
~MeshHeader()
Definition:
dot11s-mac-header.cc:45
ns3::dot11s::MeshHeader
Mesh Control field, see IEEE 802.11s draft 3.0 section 7.1.3.5b.
Definition:
dot11s-mac-header.h:37
ns3::dot11s::MeshHeader::GetMeshSeqno
uint32_t GetMeshSeqno() const
Definition:
dot11s-mac-header.cc:89
first.address
tuple address
Definition:
first.py:37
ns3::dot11s::MeshHeader::m_meshSeqno
uint32_t m_meshSeqno
Definition:
dot11s-mac-header.h:68
ns3::dot11s::MeshHeader::GetAddr6
Mac48Address GetAddr6() const
Definition:
dot11s-mac-header.cc:79
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:57
ns3::dot11s::MeshHeader::operator==
friend bool operator==(const MeshHeader &a, const MeshHeader &b)
Definition:
dot11s-mac-header.cc:172
ns3::dot11s::MeshHeader::m_meshFlags
uint8_t m_meshFlags
Definition:
dot11s-mac-header.h:66
src
mesh
model
dot11s
dot11s-mac-header.h
Generated on Wed May 13 2015 14:59:25 for ns-3 by
1.8.9.1