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