Junxiao Shi | 4b46998 | 2015-12-03 18:20:19 +0000 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
Davide Pesavento | b6355e8 | 2017-08-10 21:27:08 -0400 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2013-2017 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" |
Teng Liang | 0296074 | 2017-10-24 00:36:45 -0700 | [diff] [blame] | 26 | #include "empty-value.hpp" |
Davide Pesavento | b6355e8 | 2017-08-10 21:27:08 -0400 | [diff] [blame] | 27 | #include "../tag.hpp" |
Junxiao Shi | 4b46998 | 2015-12-03 18:20:19 +0000 | [diff] [blame] | 28 | |
| 29 | namespace ndn { |
| 30 | namespace lp { |
| 31 | |
| 32 | /** \class IncomingFaceIdTag |
| 33 | * \brief a packet tag for IncomingFaceId field |
| 34 | * |
| 35 | * This tag can be attached to Interest, Data, Nack. |
| 36 | */ |
| 37 | typedef SimpleTag<uint64_t, 10> IncomingFaceIdTag; |
| 38 | |
| 39 | /** \class NextHopFaceIdTag |
| 40 | * \brief a packet tag for NextHopFaceId field |
| 41 | * |
| 42 | * This tag can be attached to Interest. |
| 43 | */ |
| 44 | typedef SimpleTag<uint64_t, 11> NextHopFaceIdTag; |
| 45 | |
| 46 | /** \class CachePolicyTag |
| 47 | * \brief a packet tag for CachePolicy field |
| 48 | * |
| 49 | * This tag can be attached to Data. |
| 50 | */ |
| 51 | typedef SimpleTag<CachePolicy, 12> CachePolicyTag; |
| 52 | |
Eric Newberry | 4d261b6 | 2016-11-10 13:40:09 -0700 | [diff] [blame] | 53 | /** \class CongestionMarkTag |
| 54 | * \brief a packet tag for CongestionMark field |
| 55 | * |
Davide Pesavento | b6355e8 | 2017-08-10 21:27:08 -0400 | [diff] [blame] | 56 | * This tag can be attached to Interest, Data, Nack. |
Eric Newberry | 4d261b6 | 2016-11-10 13:40:09 -0700 | [diff] [blame] | 57 | */ |
| 58 | typedef SimpleTag<uint64_t, 13> CongestionMarkTag; |
| 59 | |
Teng Liang | 0296074 | 2017-10-24 00:36:45 -0700 | [diff] [blame] | 60 | /** \class NonDiscoveryTag |
| 61 | * \brief a packet tag for NonDiscovery field |
| 62 | * |
| 63 | * This tag can be attached to Interest. |
| 64 | */ |
| 65 | typedef SimpleTag<EmptyValue, 14> NonDiscoveryTag; |
| 66 | |
Junxiao Shi | 4b46998 | 2015-12-03 18:20:19 +0000 | [diff] [blame] | 67 | } // namespace lp |
| 68 | } // namespace ndn |
| 69 | |
| 70 | #endif // NDN_CXX_LP_TAGS_HPP |