A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
dsss-parameter-set.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 Sébastien Deronne
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Sébastien Deronne <sebastien.deronne@gmail.com>
7 */
8
10
11namespace ns3
12{
13
15 : m_currentChannel(0)
16{
17}
18
24
25void
27{
28 m_currentChannel = currentChannel;
29}
30
31uint16_t
33{
34 return 1;
35}
36
37void
42
43uint16_t
45{
46 Buffer::Iterator i = start;
48 return length;
49}
50
51} // namespace ns3
iterator in a Buffer instance
Definition buffer.h:89
uint8_t m_currentChannel
current channel number
uint16_t DeserializeInformationField(Buffer::Iterator start, uint16_t length) override
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets)
void SetCurrentChannel(uint8_t currentChannel)
Set the Current Channel field in the DsssParameterSet information element.
uint16_t GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
WifiInformationElementId ElementId() const override
Get the wifi information element ID.
void SerializeInformationField(Buffer::Iterator start) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
#define IE_DSSS_PARAMETER_SET