A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wimax-mac-to-mac-header.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2010 INRIA, UDcast
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
7 *
8 */
9#ifndef WIMAX_MAC_TO_MAC_HEADER_H
10#define WIMAX_MAC_TO_MAC_HEADER_H
11
12#include "ns3/header.h"
13
14#include <stdint.h>
15
16namespace ns3
17{
18
19/**
20 * \ingroup wimax
21 * \brief this class implements the mac to mac header needed to dump a wimax pcap file
22 * The header format was reverse-engineered by looking at existing live pcap traces which
23 * could be opened with wireshark i.e., we have no idea where this is coming from.
24 */
26{
27 public:
29 ~WimaxMacToMacHeader() override;
30 /**
31 * Constructor
32 *
33 * \param len length
34 */
36
37 /**
38 * \brief Get the type ID.
39 * \return the object TypeId
40 */
41 static TypeId GetTypeId();
42 TypeId GetInstanceTypeId() const override;
43 uint32_t GetSerializedSize() const override;
44 void Serialize(Buffer::Iterator start) const override;
46 /**
47 * Get size of length field
48 * \returns the size of length field
49 */
50 uint8_t GetSizeOfLen() const;
51 void Print(std::ostream& os) const override;
52
53 private:
54 uint32_t m_len; ///< length
55};
56}; // namespace ns3
57#endif
iterator in a Buffer instance
Definition buffer.h:89
Protocol header serialization and deserialization.
Definition header.h:33
a unique identifier for an interface.
Definition type-id.h:48
this class implements the mac to mac header needed to dump a wimax pcap file The header format was re...
static TypeId GetTypeId()
Get the type ID.
uint8_t GetSizeOfLen() const
Get size of length field.
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
void Serialize(Buffer::Iterator start) const override
uint32_t Deserialize(Buffer::Iterator start) override
void Print(std::ostream &os) const override
uint32_t GetSerializedSize() const override
Every class exported by the ns3 library is enclosed in the ns3 namespace.