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
ipv6-extension-demux.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007-2009 Strasbourg University
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: David Gross <gdavid.devel@gmail.com>
7
*/
8
9
#ifndef IPV6_EXTENSION_DEMUX_H
10
#define IPV6_EXTENSION_DEMUX_H
11
12
#include "ns3/object.h"
13
#include "ns3/ptr.h"
14
15
#include <list>
16
17
namespace
ns3
18
{
19
20
class
Ipv6Extension;
21
class
Node;
22
23
/**
24
* \ingroup ipv6HeaderExt
25
*
26
* \brief Demultiplexes IPv6 extensions.
27
*/
28
class
Ipv6ExtensionDemux
:
public
Object
29
{
30
public
:
31
/**
32
* \brief The interface ID.
33
* \return type ID
34
*/
35
static
TypeId
GetTypeId
();
36
37
/**
38
* \brief Constructor.
39
*/
40
Ipv6ExtensionDemux
();
41
42
/**
43
* \brief Destructor.
44
*/
45
~Ipv6ExtensionDemux
()
override
;
46
47
/**
48
* \brief Set the node.
49
* \param node the node to set
50
*/
51
void
SetNode
(
Ptr<Node>
node);
52
53
/**
54
* \brief Insert a new IPv6 Extension.
55
* \param extension the extension to insert
56
*/
57
void
Insert
(
Ptr<Ipv6Extension>
extension);
58
59
/**
60
* \brief Get the extension corresponding to extensionNumber.
61
* \param extensionNumber extension number of the extension to retrieve
62
* \return a matching IPv6 extension
63
*/
64
Ptr<Ipv6Extension>
GetExtension
(uint8_t extensionNumber);
65
66
/**
67
* \brief Remove an extension from this demux.
68
* \param extension pointer on the extension to remove
69
*/
70
void
Remove
(
Ptr<Ipv6Extension>
extension);
71
72
protected
:
73
/**
74
* \brief Dispose object.
75
*/
76
void
DoDispose
()
override
;
77
78
private
:
79
/**
80
* \brief Container of the IPv6 Extensions.
81
*/
82
typedef
std::list<Ptr<Ipv6Extension>>
Ipv6ExtensionList_t
;
83
84
/**
85
* \brief List of IPv6 Extensions supported.
86
*/
87
Ipv6ExtensionList_t
m_extensions
;
88
89
/**
90
* \brief The node.
91
*/
92
Ptr<Node>
m_node
;
93
};
94
95
}
/* namespace ns3 */
96
97
#endif
/* IPV6_EXTENSION_DEMUX_H */
ns3::Ipv6ExtensionDemux
Demultiplexes IPv6 extensions.
Definition
ipv6-extension-demux.h:29
ns3::Ipv6ExtensionDemux::Ipv6ExtensionDemux
Ipv6ExtensionDemux()
Constructor.
Definition
ipv6-extension-demux.cc:39
ns3::Ipv6ExtensionDemux::m_extensions
Ipv6ExtensionList_t m_extensions
List of IPv6 Extensions supported.
Definition
ipv6-extension-demux.h:87
ns3::Ipv6ExtensionDemux::SetNode
void SetNode(Ptr< Node > node)
Set the node.
Definition
ipv6-extension-demux.cc:61
ns3::Ipv6ExtensionDemux::DoDispose
void DoDispose() override
Dispose object.
Definition
ipv6-extension-demux.cc:48
ns3::Ipv6ExtensionDemux::Ipv6ExtensionList_t
std::list< Ptr< Ipv6Extension > > Ipv6ExtensionList_t
Container of the IPv6 Extensions.
Definition
ipv6-extension-demux.h:82
ns3::Ipv6ExtensionDemux::GetTypeId
static TypeId GetTypeId()
The interface ID.
Definition
ipv6-extension-demux.cc:25
ns3::Ipv6ExtensionDemux::~Ipv6ExtensionDemux
~Ipv6ExtensionDemux() override
Destructor.
Definition
ipv6-extension-demux.cc:43
ns3::Ipv6ExtensionDemux::m_node
Ptr< Node > m_node
The node.
Definition
ipv6-extension-demux.h:92
ns3::Ipv6ExtensionDemux::Remove
void Remove(Ptr< Ipv6Extension > extension)
Remove an extension from this demux.
Definition
ipv6-extension-demux.cc:86
ns3::Ipv6ExtensionDemux::GetExtension
Ptr< Ipv6Extension > GetExtension(uint8_t extensionNumber)
Get the extension corresponding to extensionNumber.
Definition
ipv6-extension-demux.cc:73
ns3::Ipv6ExtensionDemux::Insert
void Insert(Ptr< Ipv6Extension > extension)
Insert a new IPv6 Extension.
Definition
ipv6-extension-demux.cc:67
ns3::Object
A base class which provides memory management and object aggregation.
Definition
object.h:78
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet
model
ipv6-extension-demux.h
Generated on Fri Nov 8 2024 13:59:01 for ns-3 by
1.11.0