OLD | NEW |
(Empty) | |
| 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2010 Hemanth Narra |
| 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 * Authors: Hemanth Narra <hemanth@ittc.ku.com>, written after OlsrHelper by Mat
hieu Lacage <mathieu.lacage@sophia.inria.fr> |
| 19 * |
| 20 * James P.G. Sterbenz <jpgs@ittc.ku.edu>, director |
| 21 * ResiliNets Research Group http://wiki.ittc.ku.edu/resilinets |
| 22 * Information and Telecommunication Technology Center (ITTC) |
| 23 * and Department of Electrical Engineering and Computer Science |
| 24 * The University of Kansas Lawrence, KS USA. |
| 25 * |
| 26 * Work supported in part by NSF FIND (Future Internet Design) Program |
| 27 * under grant CNS-0626918 (Postmodern Internet Architecture), |
| 28 * NSF grant CNS-1050226 (Multilayer Network Resilience Analysis and Experimenta
tion on GENI), |
| 29 * US Department of Defense (DoD), and ITTC at The University of Kansas. |
| 30 * |
| 31 * Modifíed by: Gonçalo Atanásio <goncalo.atanasio@tecnico.ulisboa.pt> |
| 32 */ |
| 33 #include "dsdv-helper-ipv6.h" |
| 34 #include "ns3/dsdv-routing-protocol-ipv6.h" |
| 35 #include "ns3/node-list.h" |
| 36 #include "ns3/names.h" |
| 37 #include "ns3/ipv6-list-routing.h" |
| 38 |
| 39 namespace ns3 { |
| 40 Dsdvipv6Helper::~Dsdvipv6Helper () |
| 41 { |
| 42 } |
| 43 |
| 44 Dsdvipv6Helper::Dsdvipv6Helper () : Ipv6RoutingHelper () |
| 45 { |
| 46 m_agentFactory.SetTypeId ("ns3::dsdvipv6::RoutingProtocolIpv6"); |
| 47 } |
| 48 |
| 49 Dsdvipv6Helper* |
| 50 Dsdvipv6Helper::Copy (void) const |
| 51 { |
| 52 return new Dsdvipv6Helper (*this); |
| 53 } |
| 54 |
| 55 Ptr<Ipv6RoutingProtocol> |
| 56 Dsdvipv6Helper::Create (Ptr<Node> node) const |
| 57 { |
| 58 Ptr<dsdvipv6::RoutingProtocolIpv6> agent = m_agentFactory.Create<dsdvipv6::Rou
tingProtocolIpv6> (); |
| 59 node->AggregateObject (agent); |
| 60 return agent; |
| 61 } |
| 62 |
| 63 void |
| 64 Dsdvipv6Helper::Set (std::string name, const AttributeValue &value) |
| 65 { |
| 66 m_agentFactory.Set (name, value); |
| 67 } |
| 68 |
| 69 } |
OLD | NEW |