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
wifi-mac-trailer.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2006 INRIA
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
7
*/
8
9
#ifndef WIFI_MAC_TRAILER_H
10
#define WIFI_MAC_TRAILER_H
11
12
#include "ns3/trailer.h"
13
14
namespace
ns3
15
{
16
17
/**
18
* The length in octets of the IEEE 802.11 MAC FCS field
19
*/
20
static
const
uint16_t
WIFI_MAC_FCS_LENGTH
= 4;
21
22
/**
23
* \ingroup wifi
24
*
25
* Implements the IEEE 802.11 MAC trailer
26
*/
27
class
WifiMacTrailer
:
public
Trailer
28
{
29
public
:
30
WifiMacTrailer
();
31
~WifiMacTrailer
()
override
;
32
33
/**
34
* \brief Get the type ID.
35
* \return the object TypeId
36
*/
37
static
TypeId
GetTypeId
();
38
TypeId
GetInstanceTypeId
()
const override
;
39
void
Print
(std::ostream& os)
const override
;
40
uint32_t
GetSerializedSize
()
const override
;
41
void
Serialize
(
Buffer::Iterator
start)
const override
;
42
uint32_t
Deserialize
(
Buffer::Iterator
start)
override
;
43
};
44
45
}
// namespace ns3
46
47
#endif
/* WIFI_MAC_TRAILER_H */
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition
buffer.h:89
ns3::Trailer
Protocol trailer serialization and deserialization.
Definition
trailer.h:30
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::WifiMacTrailer
Implements the IEEE 802.11 MAC trailer.
Definition
wifi-mac-trailer.h:28
ns3::WifiMacTrailer::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition
wifi-mac-trailer.cc:35
ns3::WifiMacTrailer::Deserialize
uint32_t Deserialize(Buffer::Iterator start) override
Definition
wifi-mac-trailer.cc:59
ns3::WifiMacTrailer::~WifiMacTrailer
~WifiMacTrailer() override
Definition
wifi-mac-trailer.cc:20
ns3::WifiMacTrailer::WifiMacTrailer
WifiMacTrailer()
Definition
wifi-mac-trailer.cc:16
ns3::WifiMacTrailer::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition
wifi-mac-trailer.cc:46
ns3::WifiMacTrailer::Serialize
void Serialize(Buffer::Iterator start) const override
Definition
wifi-mac-trailer.cc:52
ns3::WifiMacTrailer::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
wifi-mac-trailer.cc:25
ns3::WifiMacTrailer::Print
void Print(std::ostream &os) const override
Definition
wifi-mac-trailer.cc:41
uint32_t
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::WIFI_MAC_FCS_LENGTH
static const uint16_t WIFI_MAC_FCS_LENGTH
The length in octets of the IEEE 802.11 MAC FCS field.
Definition
wifi-mac-trailer.h:20
src
wifi
model
wifi-mac-trailer.h
Generated on Fri Nov 8 2024 13:59:08 for ns-3 by
1.11.0