ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ipv4-dce-routing-helper.cc
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2009 University of Washington
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 
19 #include <vector>
20 #include "ns3/log.h"
21 #include "ns3/ptr.h"
22 #include "ns3/names.h"
23 #include "ns3/node.h"
24 #include "ns3/ipv4.h"
25 #include "ns3/ipv4-route.h"
26 #include "ns3/ipv4-list-routing.h"
27 #include "ns3/assert.h"
28 #include "ns3/ipv4-address.h"
29 #include "ns3/ipv4-routing-protocol.h"
30 
31 #include "../model/ipv4-dce-routing.h"
33 
34 NS_LOG_COMPONENT_DEFINE ("Ipv4DceRoutingHelper");
35 
36 namespace ns3 {
37 
39 {
40 }
41 
43  : Ipv4StaticRoutingHelper (o)
44 {
45 }
46 
49 {
50  NS_LOG_FUNCTION (this);
51  return new Ipv4DceRoutingHelper (*this);
52 }
53 
54 Ptr<Ipv4RoutingProtocol>
55 Ipv4DceRoutingHelper::Create (Ptr<Node> node) const
56 {
57  NS_LOG_FUNCTION (this);
58  return CreateObject<Ipv4DceRouting> ();
59 }
60 
61 
62 
63 } // namespace ns3