blob: dcaed7ed1b79bd519fab1194e965d5bbcea13b83 [file] [log] [blame]
Alexander Afanasyevc169a812014-05-20 20:37:29 -04001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Junxiao Shib501b122017-07-14 22:17:15 +00002/*
Junxiao Shi1534b3d2018-01-22 08:47:03 +00003 * Copyright (c) 2013-2018 Regents of the University of California.
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -08004 *
Alexander Afanasyevdfa52c42014-04-24 21:10:11 -07005 * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -08006 *
Alexander Afanasyevc169a812014-05-20 20:37:29 -04007 * 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.
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080020 */
21
Alexander Afanasyev258ec2b2014-05-14 16:15:37 -070022#ifndef NDN_ENCODING_TLV_NFD_HPP
23#define NDN_ENCODING_TLV_NFD_HPP
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080024
Junxiao Shi65f1a712014-11-20 14:59:36 -070025#include "tlv.hpp"
Alexander Afanasyev0866f512014-08-11 13:25:09 -070026#include "nfd-constants.hpp"
Junxiao Shi28908b72014-03-15 23:25:45 -070027
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080028namespace ndn {
29namespace tlv {
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080030namespace nfd {
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080031
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070032// NFD Management protocol
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080033enum {
Junxiao Shibc19b372014-03-23 16:59:25 -070034 // ControlParameters
35 ControlParameters = 104,
36 FaceId = 105,
37 Uri = 114,
Junxiao Shi5f6c74f2014-04-18 16:29:44 -070038 Origin = 111,
Junxiao Shibc19b372014-03-23 16:59:25 -070039 Cost = 106,
Junxiao Shi22f85682018-01-22 19:23:22 +000040 Capacity = 131,
Davide Pesavento5e2ccca2018-03-06 19:00:15 -050041 Count = 132,
Junxiao Shi5f6c74f2014-04-18 16:29:44 -070042 Flags = 108,
Eric Newberryda916d62016-08-11 23:04:34 -070043 Mask = 112,
Junxiao Shibc19b372014-03-23 16:59:25 -070044 Strategy = 107,
Junxiao Shi5f6c74f2014-04-18 16:29:44 -070045 ExpirationPeriod = 109,
Junxiao Shibc19b372014-03-23 16:59:25 -070046
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080047 // ControlResponse
48 ControlResponse = 101,
49 StatusCode = 102,
50 StatusText = 103,
51
Junxiao Shi5109dee2014-03-27 19:40:30 -070052 // ForwarderStatus
Junxiao Shi28908b72014-03-15 23:25:45 -070053 NfdVersion = 128,
54 StartTimestamp = 129,
55 CurrentTimestamp = 130,
56 NNameTreeEntries = 131,
57 NFibEntries = 132,
58 NPitEntries = 133,
59 NMeasurementsEntries = 134,
60 NCsEntries = 135,
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070061
62 // Face Management
Eric Newberry07d05c92018-01-22 16:08:01 -070063 FaceStatus = 128,
64 LocalUri = 129,
65 ChannelStatus = 130,
66 UriScheme = 131,
67 FaceScope = 132,
68 FacePersistency = 133,
69 LinkType = 134,
70 BaseCongestionMarkingInterval = 135,
71 DefaultCongestionThreshold = 136,
Eric Newberry3c9bc042018-06-02 17:58:10 -070072 Mtu = 137,
Eric Newberry07d05c92018-01-22 16:08:01 -070073 FaceQueryFilter = 150,
74 FaceEventNotification = 192,
75 FaceEventKind = 193,
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070076
Junxiao Shi13e637f2014-07-16 19:20:40 -070077 // ForwarderStatus and FaceStatus counters
78 NInInterests = 144,
Junxiao Shi9a53d782017-04-04 20:09:57 +000079 NInData = 145,
Eric Newberry95bd96a2015-09-04 23:34:22 -070080 NInNacks = 151,
Junxiao Shi13e637f2014-07-16 19:20:40 -070081 NOutInterests = 146,
Junxiao Shi9a53d782017-04-04 20:09:57 +000082 NOutData = 147,
Eric Newberry95bd96a2015-09-04 23:34:22 -070083 NOutNacks = 152,
Junxiao Shi13e637f2014-07-16 19:20:40 -070084 NInBytes = 148,
85 NOutBytes = 149,
86
Junxiao Shi7f012472017-12-07 20:40:47 +000087 // Content Store Management
88 CsInfo = 128,
89 NHits = 129,
90 NMisses = 130,
91
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070092 // FIB Management
93 FibEntry = 128,
Alexander Afanasyev4671bf72014-05-19 09:01:37 -040094 NextHopRecord = 129,
95
96 // Strategy Choice Management
Vince Lehmandbf3f702014-07-15 13:00:43 -050097 StrategyChoice = 128,
98
99 // RIB Management
100 RibEntry = 128,
101 Route = 129
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -0800102};
103
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -0800104} // namespace nfd
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -0800105} // namespace tlv
106} // namespace ndn
107
Alexander Afanasyev258ec2b2014-05-14 16:15:37 -0700108#endif // NDN_ENCODING_TLV_NFD_HPP