blob: d6f9a5a8816edd944e45bf5a98649d9f3c23ea9b [file] [log] [blame]
Ilya Moiseenko4e473482011-10-31 17:58:14 -07001/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2011 University of California, Los Angeles
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: Ilya Moiseenko <iliamo@cs.ucla.edu>
19 */
20
21
22#ifndef CCNX_BESTROUTE_STRATEGY_H
23#define CCNX_BESTROUTE_STRATEGY_H
24
25#include "ns3/packet.h"
26#include "ns3/callback.h"
27#include "ns3/object.h"
28#include "ns3/log.h"
29
30#include "ccnx-forwarding-strategy.h"
31#include "ccnx.h"
32#include "ccnx-fib.h"
33
34namespace ns3
35{
36
37class CcnxFace;
38class CcnxInterestHeader;
39
40/**
41 * \ingroup ccnx
42 * \brief Best route strategy
43 */
44
45class CcnxBestRouteStrategy : public CcnxForwardingStrategy
46{
47public:
Alexander Afanasyev4fa5e842011-11-21 13:38:39 -080048 static TypeId GetTypeId (void);
Ilya Moiseenko4e473482011-10-31 17:58:14 -070049
Alexander Afanasyev4fa5e842011-11-21 13:38:39 -080050 CcnxBestRouteStrategy ();
Ilya Moiseenko4e473482011-10-31 17:58:14 -070051
Alexander Afanasyev4fa5e842011-11-21 13:38:39 -080052 virtual bool
53 PropagateInterest (CcnxPitEntryContainer::type::iterator pitEntry,
54 CcnxFibEntryContainer::type::iterator fibEntry,
55 const Ptr<CcnxFace> &incomingFace,
56 Ptr<CcnxInterestHeader> &header,
57 const Ptr<const Packet> &packet,
58 SendCallback ucb);
Ilya Moiseenko4e473482011-10-31 17:58:14 -070059};
60
61} //namespace ns3
62
63#endif /* CCNX_BESTROUTE_STRATEGY_H */