blob: b4f430b44bbd64504b2aaa554bd85721b5005ac8 [file] [log] [blame]
Junxiao Shi4b469982015-12-03 18:20:19 +00001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Davide Pesaventob6355e82017-08-10 21:27:08 -04002/*
3 * Copyright (c) 2013-2017 Regents of the University of California.
Junxiao Shi4b469982015-12-03 18:20:19 +00004 *
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 Liang02960742017-10-24 00:36:45 -070026#include "empty-value.hpp"
Davide Pesaventob6355e82017-08-10 21:27:08 -040027#include "../tag.hpp"
Junxiao Shi4b469982015-12-03 18:20:19 +000028
29namespace ndn {
30namespace 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 */
37typedef 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 */
44typedef 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 */
51typedef SimpleTag<CachePolicy, 12> CachePolicyTag;
52
Eric Newberry4d261b62016-11-10 13:40:09 -070053/** \class CongestionMarkTag
54 * \brief a packet tag for CongestionMark field
55 *
Davide Pesaventob6355e82017-08-10 21:27:08 -040056 * This tag can be attached to Interest, Data, Nack.
Eric Newberry4d261b62016-11-10 13:40:09 -070057 */
58typedef SimpleTag<uint64_t, 13> CongestionMarkTag;
59
Teng Liang02960742017-10-24 00:36:45 -070060/** \class NonDiscoveryTag
61 * \brief a packet tag for NonDiscovery field
62 *
63 * This tag can be attached to Interest.
64 */
65typedef SimpleTag<EmptyValue, 14> NonDiscoveryTag;
66
Junxiao Shi4b469982015-12-03 18:20:19 +000067} // namespace lp
68} // namespace ndn
69
70#endif // NDN_CXX_LP_TAGS_HPP