A Discrete-Event Network Simulator
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 "wifi-constants.h"
13
14#include "ns3/trailer.h"
15
16namespace ns3
17{
18
19/**
20 * @ingroup wifi
21 *
22 * Implements the IEEE 802.11 MAC trailer
23 */
24class WifiMacTrailer : public Trailer
25{
26 public:
28 ~WifiMacTrailer() override;
29
30 /**
31 * @brief Get the type ID.
32 * @return the object TypeId
33 */
34 static TypeId GetTypeId();
35 TypeId GetInstanceTypeId() const override;
36 void Print(std::ostream& os) const override;
37 uint32_t GetSerializedSize() const override;
38 void Serialize(Buffer::Iterator start) const override;
40};
41
42} // namespace ns3
43
44#endif /* WIFI_MAC_TRAILER_H */
iterator in a Buffer instance
Definition buffer.h:89
Protocol trailer serialization and deserialization.
Definition trailer.h:30
a unique identifier for an interface.
Definition type-id.h:49
Implements the IEEE 802.11 MAC trailer.
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
uint32_t Deserialize(Buffer::Iterator start) override
uint32_t GetSerializedSize() const override
void Serialize(Buffer::Iterator start) const override
static TypeId GetTypeId()
Get the type ID.
void Print(std::ostream &os) const override
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Declaration of the constants used across wifi module.