blob: 3c7e4c090b1c85f9a6bb9940fa47a1c3ffea985b [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/*
Teng Liang8b6eda92018-01-25 20:41:54 -07003 * Copyright (c) 2013-2018 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"
Teng Liange3ecad72018-08-28 21:12:53 -070027#include "prefix-announcement-header.hpp"
Davide Pesaventob6355e82017-08-10 21:27:08 -040028#include "../tag.hpp"
Junxiao Shi4b469982015-12-03 18:20:19 +000029
30namespace ndn {
31namespace 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 */
38typedef 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 */
45typedef 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 */
52typedef SimpleTag<CachePolicy, 12> CachePolicyTag;
53
Eric Newberry4d261b62016-11-10 13:40:09 -070054/** \class CongestionMarkTag
55 * \brief a packet tag for CongestionMark field
56 *
Davide Pesaventob6355e82017-08-10 21:27:08 -040057 * This tag can be attached to Interest, Data, Nack.
Eric Newberry4d261b62016-11-10 13:40:09 -070058 */
59typedef SimpleTag<uint64_t, 13> CongestionMarkTag;
60
Teng Liang02960742017-10-24 00:36:45 -070061/** \class NonDiscoveryTag
62 * \brief a packet tag for NonDiscovery field
63 *
64 * This tag can be attached to Interest.
65 */
66typedef SimpleTag<EmptyValue, 14> NonDiscoveryTag;
67
Teng Liang8b6eda92018-01-25 20:41:54 -070068/** \class PrefixAnnouncementTag
69 * \brief a packet tag for PrefixAnnouncement field
70 *
71 * This tag can be attached to Data.
72 */
Teng Liange3ecad72018-08-28 21:12:53 -070073typedef SimpleTag<PrefixAnnouncementHeader, 15> PrefixAnnouncementTag;
Teng Liang8b6eda92018-01-25 20:41:54 -070074
Junxiao Shi4b469982015-12-03 18:20:19 +000075} // namespace lp
76} // namespace ndn
77
78#endif // NDN_CXX_LP_TAGS_HPP