blob: 112a9bf751d9417e45bdcaf03d988b3d13ccb9b6 [file] [log] [blame]
Alexander Afanasyevc74a6022011-08-15 20:01:35 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
Alexander Afanasyev98256102011-08-14 01:00:02 -07002/*
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 "ns3/assert.h"
20
21#include "ccnx-route.h"
Alexander Afanasyevc74a6022011-08-15 20:01:35 -070022#include "ccnx-forwarding-strategy.h"
Alexander Afanasyev98256102011-08-14 01:00:02 -070023
24namespace ns3 {
25
Alexander Afanasyevc74a6022011-08-15 20:01:35 -070026NS_OBJECT_ENSURE_REGISTERED (CcnxForwardingStrategy);
Alexander Afanasyev98256102011-08-14 01:00:02 -070027
Alexander Afanasyevc74a6022011-08-15 20:01:35 -070028TypeId CcnxForwardingStrategy::GetTypeId (void)
Alexander Afanasyev98256102011-08-14 01:00:02 -070029{
Alexander Afanasyevc74a6022011-08-15 20:01:35 -070030 static TypeId tid = TypeId ("ns3::CcnxForwardingStrategy")
Alexander Afanasyev070aa482011-08-20 00:38:25 -070031 .SetGroupName ("Ccnx")
Alexander Afanasyev98256102011-08-14 01:00:02 -070032 .SetParent<Object> ()
33 ;
34 return tid;
35}
36
Alexander Afanasyevcf133f02011-09-06 12:13:48 -070037CcnxForwardingStrategy::CcnxForwardingStrategy ()
Alexander Afanasyev98256102011-08-14 01:00:02 -070038{
Alexander Afanasyevcf133f02011-09-06 12:13:48 -070039 m_fib = CreateObject<CcnxFib> ();
Alexander Afanasyev98256102011-08-14 01:00:02 -070040}
41
Alexander Afanasyevcf133f02011-09-06 12:13:48 -070042
Alexander Afanasyev98256102011-08-14 01:00:02 -070043} //namespace ns3