A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
ssid.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2006 INRIA
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: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19
*/
20
21
#ifndef SSID_H
22
#define SSID_H
23
24
#include "
wifi-information-element.h
"
25
26
namespace
ns3
{
27
35
class
Ssid
:
public
WifiInformationElement
36
{
37
public
:
41
Ssid
();
47
Ssid
(std::string s);
48
49
// Implementations of pure virtual methods of WifiInformationElement
50
WifiInformationElementId
ElementId
()
const override
;
51
uint8_t
GetInformationFieldSize
()
const override
;
52
void
SerializeInformationField
(
Buffer::Iterator
start
)
const override
;
53
uint8_t
DeserializeInformationField
(
Buffer::Iterator
start
,
54
uint8_t length)
override
;
55
64
bool
IsEqual
(
const
Ssid
& o)
const
;
71
bool
IsBroadcast
(
void
)
const
;
72
78
char
*
PeekString
(
void
)
const
;
79
80
81
private
:
82
uint8_t
m_ssid
[33];
83
uint8_t
m_length
;
84
};
85
94
std::ostream &
operator <<
(std::ostream &os,
const
Ssid
&
ssid
);
103
std::istream &
operator >>
(std::istream &is,
Ssid
&
ssid
);
104
105
ATTRIBUTE_HELPER_HEADER
(
Ssid
);
106
107
}
//namespace ns3
108
109
#endif
/* SSID_H */
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:99
ns3::Ssid
The IEEE 802.11 SSID Information Element.
Definition:
ssid.h:36
ns3::Ssid::IsEqual
bool IsEqual(const Ssid &o) const
Check if the two SSIDs are equal.
Definition:
ssid.cc:55
ns3::Ssid::m_length
uint8_t m_length
Length of the SSID.
Definition:
ssid.h:83
ns3::Ssid::ElementId
WifiInformationElementId ElementId() const override
Definition:
ssid.cc:90
ns3::Ssid::PeekString
char * PeekString(void) const
Peek the SSID.
Definition:
ssid.cc:82
ns3::Ssid::DeserializeInformationField
uint8_t DeserializeInformationField(Buffer::Iterator start, uint8_t length) override
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets)
Definition:
ssid.cc:109
ns3::Ssid::GetInformationFieldSize
uint8_t GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
Definition:
ssid.cc:96
ns3::Ssid::m_ssid
uint8_t m_ssid[33]
Raw SSID value.
Definition:
ssid.h:82
ns3::Ssid::Ssid
Ssid()
Create SSID with broadcast SSID.
Definition:
ssid.cc:25
ns3::Ssid::IsBroadcast
bool IsBroadcast(void) const
Check if the SSID is broadcast.
Definition:
ssid.cc:72
ns3::Ssid::SerializeInformationField
void SerializeInformationField(Buffer::Iterator start) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
Definition:
ssid.cc:102
ns3::WifiInformationElement
Information element, as defined in 802.11-2007 standard.
Definition:
wifi-information-element.h:234
ATTRIBUTE_HELPER_HEADER
#define ATTRIBUTE_HELPER_HEADER(type)
Declare the attribute value, accessor and checkers for class type
Definition:
attribute-helper.h:390
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::operator>>
std::istream & operator>>(std::istream &is, Angles &a)
Definition:
angles.cc:162
ns3::operator<<
std::ostream & operator<<(std::ostream &os, const Angles &a)
Definition:
angles.cc:139
ns3::WifiInformationElementId
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
Definition:
wifi-information-element.h:40
third.ssid
ssid
Definition:
third.py:100
visualizer.core.start
def start()
Definition:
core.py:1853
wifi-information-element.h
src
wifi
model
ssid.h
Generated on Tue Feb 6 2024 19:21:29 for ns-3 by
1.9.1