blob: 5e2b3d696cd09d4ebdc944024f5617958dff2314 [file] [log] [blame]
Junxiao Shi4b469982015-12-03 18:20:19 +00001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
Junxiao Shia1478db2016-09-09 04:13:15 +00003 * Copyright (c) 2013-2016 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"
26#include "../tag-host.hpp"
27
28namespace ndn {
29namespace 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 */
36typedef 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 */
43typedef 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 */
50typedef SimpleTag<CachePolicy, 12> CachePolicyTag;
51
Eric Newberry4d261b62016-11-10 13:40:09 -070052/** \class CongestionMarkTag
53 * \brief a packet tag for CongestionMark field
54 *
55 * This tag can be attached to Interest, Data, Nack.
56 */
57typedef SimpleTag<uint64_t, 13> CongestionMarkTag;
58
Junxiao Shi4b469982015-12-03 18:20:19 +000059} // namespace lp
60} // namespace ndn
61
62#endif // NDN_CXX_LP_TAGS_HPP