A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
ipv6-address-helper.h
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
#include "ns3/deprecated.h"
31
32
namespace
ns3 {
33
77
class
Ipv6AddressHelper
78
{
79
public
:
83
Ipv6AddressHelper
();
84
91
Ipv6AddressHelper
(
Ipv6Address
network,
Ipv6Prefix
prefix,
92
Ipv6Address
base =
Ipv6Address
(
"::1"
));
93
101
void
SetBase
(
Ipv6Address
network,
Ipv6Prefix
prefix,
102
Ipv6Address
base =
Ipv6Address
(
"::1"
));
103
114
void
NewNetwork
(
Ipv6Address
network,
Ipv6Prefix
prefix) NS_DEPRECATED;
115
123
void
NewNetwork
(
void
);
124
135
Ipv6Address
NewAddress
(
Address
addr);
136
143
Ipv6Address
NewAddress
(
void
);
144
150
Ipv6InterfaceContainer
Assign
(
const
NetDeviceContainer
&c);
151
162
Ipv6InterfaceContainer
Assign
(
const
NetDeviceContainer
&c, std::vector<bool> withConfiguration);
163
175
Ipv6InterfaceContainer
AssignWithoutAddress
(
const
NetDeviceContainer
&c);
176
177
private
:
182
uint8_t
m_network
[16];
183
188
uint8_t
m_prefix
[16];
189
194
uint64_t
m_base
;
199
uint64_t
m_iid
;
200
};
201
202
}
/* namespace ns3 */
203
204
#endif
/* IPV6_ADDRESS_STATIC_H */
205
ns3::Ipv6AddressHelper::m_base
uint64_t m_base
The base interface ID.
Definition:
ipv6-address-helper.h:194
ns3::Ipv6InterfaceContainer
Keep track of a set of IPv6 interfaces.
Definition:
ipv6-interface-container.h:38
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:50
ns3::Address
a polymophic address class
Definition:
address.h:86
ns3::Ipv6AddressHelper::Assign
Ipv6InterfaceContainer Assign(const NetDeviceContainer &c)
Allocate an Ipv6InterfaceContainer with auto-assigned addresses.
Definition:
ipv6-address-helper.cc:103
ns3::Ipv6AddressHelper::m_prefix
uint8_t m_prefix[16]
The prefix (mask).
Definition:
ipv6-address-helper.h:188
ns3::NetDeviceContainer
holds a vector of ns3::NetDevice pointers
Definition:
net-device-container.h:41
ns3::Ipv6AddressHelper::m_network
uint8_t m_network[16]
The IPv6 network.
Definition:
ipv6-address-helper.h:182
ns3::Ipv6AddressHelper
Helper class to auto-assign global IPv6 unicast addresses.
Definition:
ipv6-address-helper.h:77
ns3::Ipv6Address
Describes an IPv6 address.
Definition:
ipv6-address.h:44
ns3::Ipv6Prefix
Describes an IPv6 prefix. It is just a bitmask like Ipv4Mask.
Definition:
ipv6-address.h:326
ns3::Ipv6AddressHelper::m_iid
uint64_t m_iid
The current interface ID.
Definition:
ipv6-address-helper.h:199
ns3::Ipv6AddressHelper::AssignWithoutAddress
Ipv6InterfaceContainer AssignWithoutAddress(const NetDeviceContainer &c)
Allocate an Ipv6InterfaceContainer but do not assign any IPv6 addresses.
Definition:
ipv6-address-helper.cc:174
ns3::Ipv6AddressHelper::Ipv6AddressHelper
Ipv6AddressHelper()
Constructor.
Definition:
ipv6-address-helper.cc:37
ns3::Ipv6AddressHelper::NewNetwork
void NewNetwork(void)
Allocate a new network.
Definition:
ipv6-address-helper.cc:97
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:78
src
internet
helper
ipv6-address-helper.h
Generated on Sun Mar 16 2014 11:25:04 for ns-3 by
1.8.6