A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
radvd-helper.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2013 Universita' di Firenze
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: Tommaso Pecorella <tommaso.pecorella@unifi.it>
18 */
19
20#ifndef RADVD_HELPER_H
21#define RADVD_HELPER_H
22
23#include "ns3/application-container.h"
24#include "ns3/ipv6-address.h"
25#include "ns3/node-container.h"
26#include "ns3/object-factory.h"
27#include "ns3/radvd-interface.h"
28
29#include <list>
30#include <map>
31#include <stdint.h>
32
33namespace ns3
34{
35
41{
42 public:
47
54 void AddAnnouncedPrefix(uint32_t interface, Ipv6Address prefix, uint32_t prefixLength);
55
62
69
77
81 void ClearPrefixes();
82
88 void SetAttribute(std::string name, const AttributeValue& value);
89
96
97 private:
102
104 typedef std::map<uint32_t, Ptr<RadvdInterface>> RadvdInterfaceMap;
106 typedef std::map<uint32_t, Ptr<RadvdInterface>>::iterator RadvdInterfaceMapI;
107
109};
110
111} /* namespace ns3 */
112
113#endif /* RADVD_HELPER_H */
holds a vector of ns3::Application pointers.
Hold a value for an Attribute.
Definition: attribute.h:70
Describes an IPv6 address.
Definition: ipv6-address.h:49
Instantiate subclasses of ns3::Object.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
Radvd application helper.
Definition: radvd-helper.h:41
std::map< uint32_t, Ptr< RadvdInterface > >::iterator RadvdInterfaceMapI
Container Iterator: interface index, RadvdInterface.
Definition: radvd-helper.h:106
void EnableDefaultRouterForInterface(uint32_t interface)
Enable the router as default router for the interface.
Definition: radvd-helper.cc:76
ObjectFactory m_factory
An object factory.
Definition: radvd-helper.h:101
void AddAnnouncedPrefix(uint32_t interface, Ipv6Address prefix, uint32_t prefixLength)
Add a new prefix to be announced through an interface.
Definition: radvd-helper.cc:39
void SetAttribute(std::string name, const AttributeValue &value)
Set some attributes.
RadvdHelper()
Constructor.
Definition: radvd-helper.cc:33
void DisableDefaultRouterForInterface(uint32_t interface)
Disable the router as default router for the interface.
Definition: radvd-helper.cc:87
std::map< uint32_t, Ptr< RadvdInterface > > RadvdInterfaceMap
Container: interface index, RadvdInterface.
Definition: radvd-helper.h:104
RadvdInterfaceMap m_radvdInterfaces
RadvdInterface(s)
Definition: radvd-helper.h:108
ApplicationContainer Install(Ptr< Node > node)
Install the application in a Node.
Ptr< RadvdInterface > GetRadvdInterface(uint32_t interface)
Get the low-level RadvdInterface specification for an interface.
Definition: radvd-helper.cc:97
void ClearPrefixes()
Clear the stored Prefixes.
Every class exported by the ns3 library is enclosed in the ns3 namespace.