A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
radvd-helper.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2013 Universita' di Firenze
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: Tommaso Pecorella <tommaso.pecorella@unifi.it>
19  */
20 
21 #ifndef RADVD_HELPER_H
22 #define RADVD_HELPER_H
23 
24 #include <stdint.h>
25 #include <list>
26 #include <map>
27 
28 #include "ns3/object-factory.h"
29 #include "ns3/ipv6-address.h"
30 
31 #include "ns3/application-container.h"
32 #include "ns3/node-container.h"
33 #include "ns3/radvd-interface.h"
34 
35 namespace ns3 {
36 
42 {
43 public:
47  RadvdHelper ();
48 
55  void AddAnnouncedPrefix (uint32_t interface, Ipv6Address prefix, uint32_t prefixLength);
56 
62  void EnableDefaultRouterForInterface (uint32_t interface);
63 
69  void DisableDefaultRouterForInterface (uint32_t interface);
70 
76  Ptr<RadvdInterface> GetRadvdInterface (uint32_t interface);
77 
81  void ClearPrefixes ();
82 
88  void SetAttribute (std::string name, const AttributeValue& value);
89 
96 
97 private:
102 
103  typedef std::map<uint32_t, Ptr<RadvdInterface> > RadvdInterfaceMap;
104  typedef std::map<uint32_t, Ptr<RadvdInterface> >::iterator RadvdInterfaceMapI;
105 
107 };
108 
109 } /* namespace ns3 */
110 
111 #endif /* RADVD_HELPER_H */
112