A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
ipv6-address-helper.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2008-2009 Strasbourg University
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
19
* modified by Tom Henderson for ns-3.14 release
20
*/
21
22
#ifndef IPV6_ADDRESS_HELPER_H
23
#define IPV6_ADDRESS_HELPER_H
24
25
#include <vector>
26
27
#include "ns3/ipv6-address.h"
28
#include "ns3/net-device-container.h"
29
#include "
ipv6-interface-container.h
"
30
31
namespace
ns3
{
32
82
class
Ipv6AddressHelper
83
{
84
public
:
88
Ipv6AddressHelper
();
89
96
Ipv6AddressHelper
(
Ipv6Address
network,
Ipv6Prefix
prefix,
97
Ipv6Address
base =
Ipv6Address
(
"::1"
));
98
106
void
SetBase
(
Ipv6Address
network,
Ipv6Prefix
prefix,
107
Ipv6Address
base =
Ipv6Address
(
"::1"
));
108
116
void
NewNetwork
(
void
);
117
128
Ipv6Address
NewAddress
(
Address
addr);
129
136
Ipv6Address
NewAddress
(
void
);
137
143
Ipv6InterfaceContainer
Assign
(
const
NetDeviceContainer
&c);
144
155
Ipv6InterfaceContainer
Assign
(
const
NetDeviceContainer
&c, std::vector<bool> withConfiguration);
156
171
Ipv6InterfaceContainer
Assign
(
const
NetDeviceContainer
&c, std::vector<bool> withConfiguration, std::vector<bool> onLink);
172
184
Ipv6InterfaceContainer
AssignWithoutAddress
(
const
NetDeviceContainer
&c);
185
196
Ipv6InterfaceContainer
AssignWithoutOnLink
(
const
NetDeviceContainer
&c);
197
198
private
:
199
Ipv6Address
m_network
;
200
Ipv6Prefix
m_prefix
;
201
Ipv6Address
m_address
;
202
Ipv6Address
m_base
;
203
};
204
205
}
/* namespace ns3 */
206
207
#endif
/* IPV6_ADDRESS_STATIC_H */
208
ns3::Address
a polymophic address class
Definition:
address.h:91
ns3::Ipv6AddressHelper
Helper class to auto-assign global IPv6 unicast addresses.
Definition:
ipv6-address-helper.h:83
ns3::Ipv6AddressHelper::AssignWithoutAddress
Ipv6InterfaceContainer AssignWithoutAddress(const NetDeviceContainer &c)
Allocate an Ipv6InterfaceContainer but do not assign any IPv6 addresses.
Definition:
ipv6-address-helper.cc:293
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:69
ns3::Ipv6AddressHelper::m_base
Ipv6Address m_base
host base address
Definition:
ipv6-address-helper.h:202
ns3::Ipv6AddressHelper::NewAddress
Ipv6Address NewAddress(void)
Allocate a new Ipv6Address with interface ID equal to the next one in the underlying generator.
Definition:
ipv6-address-helper.cc:122
ns3::Ipv6AddressHelper::m_network
Ipv6Address m_network
network address
Definition:
ipv6-address-helper.h:199
ns3::Ipv6AddressHelper::m_address
Ipv6Address m_address
host address
Definition:
ipv6-address-helper.h:201
ns3::Ipv6AddressHelper::NewNetwork
void NewNetwork(void)
Allocate a new network.
Definition:
ipv6-address-helper.cc:170
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:304
ns3::Ipv6AddressHelper::m_prefix
Ipv6Prefix m_prefix
prefix length
Definition:
ipv6-address-helper.h:200
ns3::Ipv6AddressHelper::Assign
Ipv6InterfaceContainer Assign(const NetDeviceContainer &c)
Allocate an Ipv6InterfaceContainer with auto-assigned addresses.
Definition:
ipv6-address-helper.cc:210
ns3::Ipv6AddressHelper::Ipv6AddressHelper
Ipv6AddressHelper()
Constructor.
Definition:
ipv6-address-helper.cc:43
ns3::Ipv6Address
Describes an IPv6 address.
Definition:
ipv6-address.h:50
ns3::Ipv6InterfaceContainer
Keep track of a set of IPv6 interfaces.
Definition:
ipv6-interface-container.h:42
ns3::Ipv6Prefix
Describes an IPv6 prefix.
Definition:
ipv6-address.h:456
ns3::NetDeviceContainer
holds a vector of ns3::NetDevice pointers
Definition:
net-device-container.h:42
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 Tue Feb 6 2024 19:21:18 for ns-3 by
1.9.1