blob: b6c309d728c841bfda1e989e20ff130f70b919fa [file] [log] [blame]
Ilya Moiseenko25f7d4d2011-09-29 18:41:06 -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
Ilya Moiseenko25f7d4d2011-09-29 18:41:06 -070021#ifndef CCNX_FLOODING_STRATEGY_H
22#define CCNX_FLOODING_STRATEGY_H
23
24#include "ns3/packet.h"
25#include "ns3/callback.h"
26#include "ns3/object.h"
27#include "ns3/log.h"
28
29#include "ccnx-forwarding-strategy.h"
30#include "ccnx.h"
31#include "ccnx-fib.h"
32
33namespace ns3
34{
35
36class CcnxFace;
37class CcnxInterestHeader;
38
39/**
Alexander Afanasyev4fa5e842011-11-21 13:38:39 -080040 * \ingroup ccnx
41 * \brief Flooding strategy
42 */
Ilya Moiseenko25f7d4d2011-09-29 18:41:06 -070043
44class CcnxFloodingStrategy : public CcnxForwardingStrategy
45{
46public:
Alexander Afanasyev4fa5e842011-11-21 13:38:39 -080047 static TypeId GetTypeId (void);
Ilya Moiseenko25f7d4d2011-09-29 18:41:06 -070048
Alexander Afanasyev4fa5e842011-11-21 13:38:39 -080049 CcnxFloodingStrategy ();
50
51 virtual bool
52 PropagateInterest (CcnxPitEntryContainer::type::iterator pitEntry,
53 CcnxFibEntryContainer::type::iterator fibEntry,
54 const Ptr<CcnxFace> &incomingFace,
55 Ptr<CcnxInterestHeader> &header,
56 const Ptr<const Packet> &packet,
57 SendCallback ucb);
Ilya Moiseenko25f7d4d2011-09-29 18:41:06 -070058};
59
60} //namespace ns3
61
62#endif /* CCNX_FLOODING_STRATEGY_H */