Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 1 | /* -*- 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: Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 19 | */ |
| 20 | |
Alexander Afanasyev | 4aac557 | 2012-08-09 10:49:55 -0700 | [diff] [blame] | 21 | #ifndef _NDN_FIB_ENTRY_H_ |
| 22 | #define _NDN_FIB_ENTRY_H_ |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 23 | |
| 24 | #include "ns3/ptr.h" |
| 25 | #include "ns3/nstime.h" |
Alexander Afanasyev | 4aac557 | 2012-08-09 10:49:55 -0700 | [diff] [blame] | 26 | #include "ns3/ndn-face.h" |
Alexander Afanasyev | cfdc14f | 2013-03-15 14:38:44 -0700 | [diff] [blame] | 27 | #include "ns3/ndn-name.h" |
Alexander Afanasyev | ea9b3e6 | 2012-08-13 19:02:54 -0700 | [diff] [blame] | 28 | #include "ns3/ndn-limits.h" |
Alexander Afanasyev | e6dc0ac | 2013-02-21 14:00:48 -0800 | [diff] [blame] | 29 | #include "ns3/traced-value.h" |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 30 | |
| 31 | #include <boost/multi_index_container.hpp> |
| 32 | #include <boost/multi_index/tag.hpp> |
| 33 | #include <boost/multi_index/ordered_index.hpp> |
| 34 | #include <boost/multi_index/composite_key.hpp> |
| 35 | #include <boost/multi_index/hashed_index.hpp> |
| 36 | #include <boost/multi_index/random_access_index.hpp> |
| 37 | #include <boost/multi_index/member.hpp> |
| 38 | #include <boost/multi_index/mem_fun.hpp> |
| 39 | |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 40 | namespace ns3 { |
| 41 | namespace ndn { |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 42 | |
Alexander Afanasyev | cfdc14f | 2013-03-15 14:38:44 -0700 | [diff] [blame] | 43 | class Name; |
Alexander Afanasyev | 73f06f6 | 2013-03-15 15:41:38 -0700 | [diff] [blame] | 44 | typedef Name NameComponents; |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 45 | |
| 46 | namespace fib { |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 47 | |
| 48 | /** |
Alexander Afanasyev | 4aac557 | 2012-08-09 10:49:55 -0700 | [diff] [blame] | 49 | * \ingroup ndn |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 50 | * \brief Structure holding various parameters associated with a (FibEntry, Face) tuple |
| 51 | */ |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 52 | class FaceMetric |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 53 | { |
| 54 | public: |
| 55 | /** |
| 56 | * @brief Color codes for FIB face status |
| 57 | */ |
| 58 | enum Status { NDN_FIB_GREEN = 1, |
| 59 | NDN_FIB_YELLOW = 2, |
| 60 | NDN_FIB_RED = 3 }; |
| 61 | public: |
| 62 | /** |
| 63 | * \brief Metric constructor |
| 64 | * |
| 65 | * \param face Face for which metric |
| 66 | * \param cost Initial value for routing cost |
| 67 | */ |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 68 | FaceMetric (Ptr<Face> face, int32_t cost) |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 69 | : m_face (face) |
| 70 | , m_status (NDN_FIB_YELLOW) |
| 71 | , m_routingCost (cost) |
| 72 | , m_sRtt (Seconds (0)) |
| 73 | , m_rttVar (Seconds (0)) |
Alexander Afanasyev | 6b0c88f | 2012-12-01 12:24:27 -0800 | [diff] [blame] | 74 | , m_realDelay (Seconds (0)) |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 75 | { } |
| 76 | |
| 77 | /** |
| 78 | * \brief Comparison operator used by boost::multi_index::identity<> |
| 79 | */ |
| 80 | bool |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 81 | operator< (const FaceMetric &fm) const { return *m_face < *fm.m_face; } // return identity of the face |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 82 | |
| 83 | /** |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 84 | * @brief Comparison between FaceMetric and Face |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 85 | */ |
| 86 | bool |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 87 | operator< (const Ptr<Face> &face) const { return *m_face < *face; } |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 88 | |
| 89 | /** |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 90 | * @brief Return Face associated with FaceMetric |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 91 | */ |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 92 | Ptr<Face> |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 93 | GetFace () const { return m_face; } |
| 94 | |
| 95 | /** |
| 96 | * \brief Recalculate smoothed RTT and RTT variation |
| 97 | * \param rttSample RTT sample |
| 98 | */ |
| 99 | void |
| 100 | UpdateRtt (const Time &rttSample); |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 101 | |
| 102 | /** |
| 103 | * @brief Get current status of FIB entry |
| 104 | */ |
| 105 | Status |
| 106 | GetStatus () const |
| 107 | { |
| 108 | return m_status; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * @brief Set current status of FIB entry |
| 113 | */ |
| 114 | void |
| 115 | SetStatus (Status status) |
| 116 | { |
Alexander Afanasyev | e6dc0ac | 2013-02-21 14:00:48 -0800 | [diff] [blame] | 117 | m_status.Set (status); |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 118 | } |
| 119 | |
| 120 | /** |
| 121 | * @brief Get current routing cost |
| 122 | */ |
| 123 | int32_t |
| 124 | GetRoutingCost () const |
| 125 | { |
| 126 | return m_routingCost; |
| 127 | } |
| 128 | |
| 129 | /** |
| 130 | * @brief Set routing cost |
| 131 | */ |
| 132 | void |
| 133 | SetRoutingCost (int32_t routingCost) |
| 134 | { |
| 135 | m_routingCost = routingCost; |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * @brief Get real propagation delay to the producer, calculated based on NS-3 p2p link delays |
| 140 | */ |
| 141 | Time |
| 142 | GetRealDelay () const |
| 143 | { |
| 144 | return m_realDelay; |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * @brief Set real propagation delay to the producer, calculated based on NS-3 p2p link delays |
| 149 | */ |
| 150 | void |
| 151 | SetRealDelay (Time realDelay) |
| 152 | { |
| 153 | m_realDelay = realDelay; |
| 154 | } |
| 155 | |
Alexander Afanasyev | e6dc0ac | 2013-02-21 14:00:48 -0800 | [diff] [blame] | 156 | /** |
| 157 | * @brief Get direct access to status trace |
| 158 | */ |
| 159 | TracedValue<Status> & |
| 160 | GetStatusTrace () |
| 161 | { |
| 162 | return m_status; |
| 163 | } |
| 164 | |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 165 | private: |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 166 | friend std::ostream& operator<< (std::ostream& os, const FaceMetric &metric); |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 167 | |
| 168 | private: |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 169 | Ptr<Face> m_face; ///< Face |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 170 | |
Alexander Afanasyev | e6dc0ac | 2013-02-21 14:00:48 -0800 | [diff] [blame] | 171 | TracedValue<Status> m_status; ///< \brief Status of the next hop: |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 172 | ///< - NDN_FIB_GREEN |
| 173 | ///< - NDN_FIB_YELLOW |
| 174 | ///< - NDN_FIB_RED |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 175 | |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 176 | int32_t m_routingCost; ///< \brief routing protocol cost (interpretation of the value depends on the underlying routing protocol) |
| 177 | |
| 178 | Time m_sRtt; ///< \brief smoothed round-trip time |
| 179 | Time m_rttVar; ///< \brief round-trip time variation |
Alexander Afanasyev | 6b0c88f | 2012-12-01 12:24:27 -0800 | [diff] [blame] | 180 | |
| 181 | Time m_realDelay; ///< \brief real propagation delay to the producer, calculated based on NS-3 p2p link delays |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 182 | }; |
| 183 | |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 184 | /// @cond include_hidden |
| 185 | class i_face {}; |
| 186 | class i_metric {}; |
| 187 | class i_nth {}; |
| 188 | /// @endcond |
| 189 | |
| 190 | |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 191 | /** |
Alexander Afanasyev | 4aac557 | 2012-08-09 10:49:55 -0700 | [diff] [blame] | 192 | * \ingroup ndn |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 193 | * \brief Typedef for indexed face container of Entry |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 194 | * |
| 195 | * Currently, there are 2 indexes: |
| 196 | * - by face (used to find record and update metric) |
| 197 | * - by metric (face ranking) |
| 198 | * - random access index (for fast lookup on nth face). Order is |
| 199 | * maintained manually to be equal to the 'by metric' order |
| 200 | */ |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 201 | struct FaceMetricContainer |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 202 | { |
| 203 | /// @cond include_hidden |
| 204 | typedef boost::multi_index::multi_index_container< |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 205 | FaceMetric, |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 206 | boost::multi_index::indexed_by< |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 207 | // For fast access to elements using Face |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 208 | boost::multi_index::ordered_unique< |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 209 | boost::multi_index::tag<i_face>, |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 210 | boost::multi_index::const_mem_fun<FaceMetric,Ptr<Face>,&FaceMetric::GetFace> |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 211 | >, |
| 212 | |
| 213 | // List of available faces ordered by (status, m_routingCost) |
| 214 | boost::multi_index::ordered_non_unique< |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 215 | boost::multi_index::tag<i_metric>, |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 216 | boost::multi_index::composite_key< |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 217 | FaceMetric, |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 218 | boost::multi_index::const_mem_fun<FaceMetric,FaceMetric::Status,&FaceMetric::GetStatus>, |
| 219 | boost::multi_index::const_mem_fun<FaceMetric,int32_t,&FaceMetric::GetRoutingCost> |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 220 | > |
| 221 | >, |
| 222 | |
| 223 | // To optimize nth candidate selection (sacrifice a little bit space to gain speed) |
| 224 | boost::multi_index::random_access< |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 225 | boost::multi_index::tag<i_nth> |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 226 | > |
| 227 | > |
| 228 | > type; |
| 229 | /// @endcond |
| 230 | }; |
| 231 | |
| 232 | /** |
Alexander Afanasyev | 4aac557 | 2012-08-09 10:49:55 -0700 | [diff] [blame] | 233 | * \ingroup ndn |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 234 | * \brief Structure for FIB table entry, holding indexed list of |
| 235 | * available faces and their respective metrics |
| 236 | */ |
Alexander Afanasyev | f5c0774 | 2012-10-31 13:13:05 -0700 | [diff] [blame] | 237 | class Entry : public Object |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 238 | { |
| 239 | public: |
Alexander Afanasyev | 8566f45 | 2012-12-10 15:21:51 -0800 | [diff] [blame] | 240 | typedef Entry base_type; |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 241 | |
Alexander Afanasyev | 8566f45 | 2012-12-10 15:21:51 -0800 | [diff] [blame] | 242 | public: |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 243 | class NoFaces {}; ///< @brief Exception class for the case when FIB entry is not found |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 244 | |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 245 | /** |
| 246 | * \brief Constructor |
| 247 | * \param prefix smart pointer to the prefix for the FIB entry |
| 248 | */ |
Alexander Afanasyev | cfdc14f | 2013-03-15 14:38:44 -0700 | [diff] [blame] | 249 | Entry (const Ptr<const Name> &prefix) |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 250 | : m_prefix (prefix) |
| 251 | , m_needsProbing (false) |
Alexander Afanasyev | ea9b3e6 | 2012-08-13 19:02:54 -0700 | [diff] [blame] | 252 | { |
Alexander Afanasyev | ea9b3e6 | 2012-08-13 19:02:54 -0700 | [diff] [blame] | 253 | } |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 254 | |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 255 | /** |
| 256 | * \brief Update status of FIB next hop |
| 257 | * \param status Status to set on the FIB entry |
| 258 | */ |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 259 | void UpdateStatus (Ptr<Face> face, FaceMetric::Status status); |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 260 | |
| 261 | /** |
| 262 | * \brief Add or update routing metric of FIB next hop |
| 263 | * |
| 264 | * Initial status of the next hop is set to YELLOW |
| 265 | */ |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 266 | void AddOrUpdateRoutingMetric (Ptr<Face> face, int32_t metric); |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 267 | |
| 268 | /** |
Alexander Afanasyev | 6b0c88f | 2012-12-01 12:24:27 -0800 | [diff] [blame] | 269 | * \brief Set real delay to the producer |
| 270 | */ |
| 271 | void |
| 272 | SetRealDelayToProducer (Ptr<Face> face, Time delay); |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 273 | |
Alexander Afanasyev | 6b0c88f | 2012-12-01 12:24:27 -0800 | [diff] [blame] | 274 | /** |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 275 | * @brief Invalidate face |
| 276 | * |
| 277 | * Set routing metric on all faces to max and status to RED |
| 278 | */ |
| 279 | void |
| 280 | Invalidate (); |
| 281 | |
| 282 | /** |
| 283 | * @brief Update RTT averages for the face |
| 284 | */ |
| 285 | void |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 286 | UpdateFaceRtt (Ptr<Face> face, const Time &sample); |
Alexander Afanasyev | 06dba7c | 2013-02-21 11:36:26 -0800 | [diff] [blame] | 287 | |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 288 | /** |
| 289 | * \brief Get prefix for the FIB entry |
| 290 | */ |
Alexander Afanasyev | cfdc14f | 2013-03-15 14:38:44 -0700 | [diff] [blame] | 291 | const Name& |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 292 | GetPrefix () const { return *m_prefix; } |
| 293 | |
| 294 | /** |
| 295 | * \brief Find "best route" candidate, skipping `skip' first candidates (modulo # of faces) |
| 296 | * |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 297 | * throws Entry::NoFaces if m_faces.size()==0 |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 298 | */ |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 299 | const FaceMetric & |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 300 | FindBestCandidate (uint32_t skip = 0) const; |
| 301 | |
| 302 | /** |
| 303 | * @brief Remove record associated with `face` |
| 304 | */ |
| 305 | void |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 306 | RemoveFace (const Ptr<Face> &face) |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 307 | { |
| 308 | m_faces.erase (face); |
| 309 | } |
Alexander Afanasyev | ea9b3e6 | 2012-08-13 19:02:54 -0700 | [diff] [blame] | 310 | |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 311 | private: |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 312 | friend std::ostream& operator<< (std::ostream& os, const Entry &entry); |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 313 | |
| 314 | public: |
Alexander Afanasyev | cfdc14f | 2013-03-15 14:38:44 -0700 | [diff] [blame] | 315 | Ptr<const Name> m_prefix; ///< \brief Prefix of the FIB entry |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 316 | FaceMetricContainer::type m_faces; ///< \brief Indexed list of faces |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 317 | |
Alexander Afanasyev | ea9b3e6 | 2012-08-13 19:02:54 -0700 | [diff] [blame] | 318 | bool m_needsProbing; ///< \brief flag indicating that probing should be performed |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 319 | }; |
| 320 | |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 321 | std::ostream& operator<< (std::ostream& os, const Entry &entry); |
| 322 | std::ostream& operator<< (std::ostream& os, const FaceMetric &metric); |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 323 | |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 324 | } // namespace fib |
| 325 | } // namespace ndn |
| 326 | } // namespace ns3 |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 327 | |
Alexander Afanasyev | 4aac557 | 2012-08-09 10:49:55 -0700 | [diff] [blame] | 328 | #endif // _NDN_FIB_ENTRY_H_ |