A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
ipv6-address-helper.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008-2009 Strasbourg University
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
18
* modified by Tom Henderson for ns-3.14 release
19
*/
20
21
#ifndef IPV6_ADDRESS_HELPER_H
22
#define IPV6_ADDRESS_HELPER_H
23
24
#include "
ipv6-interface-container.h
"
25
26
#include "ns3/ipv6-address.h"
27
#include "ns3/net-device-container.h"
28
29
#include <vector>
30
31
namespace
ns3
32
{
33
83
class
Ipv6AddressHelper
84
{
85
public
:
89
Ipv6AddressHelper
();
90
97
Ipv6AddressHelper
(
Ipv6Address
network,
98
Ipv6Prefix
prefix,
99
Ipv6Address
base =
Ipv6Address
(
"::1"
));
100
108
void
SetBase
(
Ipv6Address
network,
Ipv6Prefix
prefix,
Ipv6Address
base =
Ipv6Address
(
"::1"
));
109
117
void
NewNetwork
();
118
129
Ipv6Address
NewAddress
(
Address
addr);
130
137
Ipv6Address
NewAddress
();
138
144
Ipv6InterfaceContainer
Assign
(
const
NetDeviceContainer
& c);
145
156
Ipv6InterfaceContainer
Assign
(
const
NetDeviceContainer
& c, std::vector<bool> withConfiguration);
157
172
Ipv6InterfaceContainer
Assign
(
const
NetDeviceContainer
& c,
173
std::vector<bool> withConfiguration,
174
std::vector<bool> onLink);
175
187
Ipv6InterfaceContainer
AssignWithoutAddress
(
const
NetDeviceContainer
& c);
188
199
Ipv6InterfaceContainer
AssignWithoutOnLink
(
const
NetDeviceContainer
& c);
200
201
private
:
202
Ipv6Address
m_network
;
203
Ipv6Prefix
m_prefix
;
204
Ipv6Address
m_address
;
205
Ipv6Address
m_base
;
206
};
207
208
}
/* namespace ns3 */
209
210
#endif
/* IPV6_ADDRESS_STATIC_H */
ns3::Address
a polymophic address class
Definition:
address.h:101
ns3::Ipv6AddressHelper
Helper class to auto-assign global IPv6 unicast addresses.
Definition:
ipv6-address-helper.h:84
ns3::Ipv6AddressHelper::AssignWithoutAddress
Ipv6InterfaceContainer AssignWithoutAddress(const NetDeviceContainer &c)
Allocate an Ipv6InterfaceContainer but do not assign any IPv6 addresses.
Definition:
ipv6-address-helper.cc:304
ns3::Ipv6AddressHelper::SetBase
void SetBase(Ipv6Address network, Ipv6Prefix prefix, Ipv6Address base=Ipv6Address("::1"))
Set the base network number, network prefix, and base interface ID.
Definition:
ipv6-address-helper.cc:70
ns3::Ipv6AddressHelper::m_base
Ipv6Address m_base
host base address
Definition:
ipv6-address-helper.h:205
ns3::Ipv6AddressHelper::NewNetwork
void NewNetwork()
Allocate a new network.
Definition:
ipv6-address-helper.cc:179
ns3::Ipv6AddressHelper::m_network
Ipv6Address m_network
network address
Definition:
ipv6-address-helper.h:202
ns3::Ipv6AddressHelper::m_address
Ipv6Address m_address
host address
Definition:
ipv6-address-helper.h:204
ns3::Ipv6AddressHelper::AssignWithoutOnLink
Ipv6InterfaceContainer AssignWithoutOnLink(const NetDeviceContainer &c)
Allocate an Ipv6InterfaceContainer with auto-assigned addresses, but do not set the on-link property ...
Definition:
ipv6-address-helper.cc:312
ns3::Ipv6AddressHelper::m_prefix
Ipv6Prefix m_prefix
prefix length
Definition:
ipv6-address-helper.h:203
ns3::Ipv6AddressHelper::Assign
Ipv6InterfaceContainer Assign(const NetDeviceContainer &c)
Allocate an Ipv6InterfaceContainer with auto-assigned addresses.
Definition:
ipv6-address-helper.cc:220
ns3::Ipv6AddressHelper::Ipv6AddressHelper
Ipv6AddressHelper()
Constructor.
Definition:
ipv6-address-helper.cc:42
ns3::Ipv6AddressHelper::NewAddress
Ipv6Address NewAddress()
Allocate a new Ipv6Address with interface ID equal to the next one in the underlying generator.
Definition:
ipv6-address-helper.cc:129
ns3::Ipv6Address
Describes an IPv6 address.
Definition:
ipv6-address.h:49
ns3::Ipv6InterfaceContainer
Keep track of a set of IPv6 interfaces.
Definition:
ipv6-interface-container.h:40
ns3::Ipv6Prefix
Describes an IPv6 prefix.
Definition:
ipv6-address.h:455
ns3::NetDeviceContainer
holds a vector of ns3::NetDevice pointers
Definition:
net-device-container.h:43
ipv6-interface-container.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet
helper
ipv6-address-helper.h
Generated on Sun Mar 3 2024 17:10:57 for ns-3 by
1.9.1