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
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
16
namespace
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
*/
25
class
WimaxMacToMacHeader
:
public
Header
26
{
27
public
:
28
WimaxMacToMacHeader
();
29
~WimaxMacToMacHeader
()
override
;
30
/**
31
* Constructor
32
*
33
* \param len length
34
*/
35
WimaxMacToMacHeader
(
uint32_t
len);
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
;
45
uint32_t
Deserialize
(
Buffer::Iterator
start)
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
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition
buffer.h:89
ns3::Header
Protocol header serialization and deserialization.
Definition
header.h:33
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::WimaxMacToMacHeader
this class implements the mac to mac header needed to dump a wimax pcap file The header format was re...
Definition
wimax-mac-to-mac-header.h:26
ns3::WimaxMacToMacHeader::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
wimax-mac-to-mac-header.cc:35
ns3::WimaxMacToMacHeader::GetSizeOfLen
uint8_t GetSizeOfLen() const
Get size of length field.
Definition
wimax-mac-to-mac-header.cc:51
ns3::WimaxMacToMacHeader::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition
wimax-mac-to-mac-header.cc:45
ns3::WimaxMacToMacHeader::Serialize
void Serialize(Buffer::Iterator start) const override
Definition
wimax-mac-to-mac-header.cc:84
ns3::WimaxMacToMacHeader::Deserialize
uint32_t Deserialize(Buffer::Iterator start) override
Definition
wimax-mac-to-mac-header.cc:126
ns3::WimaxMacToMacHeader::WimaxMacToMacHeader
WimaxMacToMacHeader()
Definition
wimax-mac-to-mac-header.cc:20
ns3::WimaxMacToMacHeader::~WimaxMacToMacHeader
~WimaxMacToMacHeader() override
Definition
wimax-mac-to-mac-header.cc:30
ns3::WimaxMacToMacHeader::Print
void Print(std::ostream &os) const override
Definition
wimax-mac-to-mac-header.cc:133
ns3::WimaxMacToMacHeader::m_len
uint32_t m_len
length
Definition
wimax-mac-to-mac-header.h:54
ns3::WimaxMacToMacHeader::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition
wimax-mac-to-mac-header.cc:69
uint32_t
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
wimax
model
wimax-mac-to-mac-header.h
Generated on Fri Nov 8 2024 13:59:09 for ns-3 by
1.11.0