A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-mac-trailer.cc
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#include "wifi-mac-trailer.h"
10
11namespace ns3
12{
13
14NS_OBJECT_ENSURE_REGISTERED(WifiMacTrailer);
15
19
23
26{
27 static TypeId tid = TypeId("ns3::WifiMacTrailer")
29 .SetGroupName("Wifi")
30 .AddConstructor<WifiMacTrailer>();
31 return tid;
32}
33
36{
37 return GetTypeId();
38}
39
40void
41WifiMacTrailer::Print(std::ostream& os) const
42{
43}
44
50
51void
53{
54 start.Prev(WIFI_MAC_FCS_LENGTH);
55 start.WriteU32(0);
56}
57
63
64} // namespace ns3
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:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
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
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static const uint16_t WIFI_MAC_FCS_LENGTH
The length in octets of the IEEE 802.11 MAC FCS field.