Junxiao Shi | 4b46998 | 2015-12-03 18:20:19 +0000 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
Junxiao Shi | a1478db | 2016-09-09 04:13:15 +0000 | [diff] [blame] | 3 | * Copyright (c) 2013-2016 Regents of the University of California. |
Junxiao Shi | 4b46998 | 2015-12-03 18:20:19 +0000 | [diff] [blame] | 4 | * |
| 5 | * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). |
| 6 | * |
| 7 | * ndn-cxx library is free software: you can redistribute it and/or modify it under the |
| 8 | * terms of the GNU Lesser General Public License as published by the Free Software |
| 9 | * Foundation, either version 3 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY |
| 12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 13 | * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received copies of the GNU General Public License and GNU Lesser |
| 16 | * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see |
| 17 | * <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | * See AUTHORS.md for complete list of ndn-cxx authors and contributors. |
| 20 | */ |
| 21 | |
| 22 | #ifndef NDN_CXX_LP_TAGS_HPP |
| 23 | #define NDN_CXX_LP_TAGS_HPP |
| 24 | |
| 25 | #include "cache-policy.hpp" |
| 26 | #include "../tag-host.hpp" |
| 27 | |
| 28 | namespace ndn { |
| 29 | namespace lp { |
| 30 | |
| 31 | /** \class IncomingFaceIdTag |
| 32 | * \brief a packet tag for IncomingFaceId field |
| 33 | * |
| 34 | * This tag can be attached to Interest, Data, Nack. |
| 35 | */ |
| 36 | typedef SimpleTag<uint64_t, 10> IncomingFaceIdTag; |
| 37 | |
| 38 | /** \class NextHopFaceIdTag |
| 39 | * \brief a packet tag for NextHopFaceId field |
| 40 | * |
| 41 | * This tag can be attached to Interest. |
| 42 | */ |
| 43 | typedef SimpleTag<uint64_t, 11> NextHopFaceIdTag; |
| 44 | |
| 45 | /** \class CachePolicyTag |
| 46 | * \brief a packet tag for CachePolicy field |
| 47 | * |
| 48 | * This tag can be attached to Data. |
| 49 | */ |
| 50 | typedef SimpleTag<CachePolicy, 12> CachePolicyTag; |
| 51 | |
Eric Newberry | 4d261b6 | 2016-11-10 13:40:09 -0700 | [diff] [blame] | 52 | /** \class CongestionMarkTag |
| 53 | * \brief a packet tag for CongestionMark field |
| 54 | * |
| 55 | * This tag can be attached to Interest, Data, Nack. |
| 56 | */ |
| 57 | typedef SimpleTag<uint64_t, 13> CongestionMarkTag; |
| 58 | |
Junxiao Shi | 4b46998 | 2015-12-03 18:20:19 +0000 | [diff] [blame] | 59 | } // namespace lp |
| 60 | } // namespace ndn |
| 61 | |
| 62 | #endif // NDN_CXX_LP_TAGS_HPP |