blob: ba00cad0be68bdcaacbeb777778dbd7637a5d96d [file] [log] [blame]
Alexander Afanasyevc169a812014-05-20 20:37:29 -04001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Alexander Afanasyevdfa52c42014-04-24 21:10:11 -07002/**
Alexander Afanasyevc169a812014-05-20 20:37:29 -04003 * Copyright (c) 2013-2014 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 Shi28908b72014-03-15 23:25:45 -070025#include "../common.hpp"
26
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080027namespace ndn {
28namespace tlv {
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080029namespace nfd {
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080030
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070031// NFD Management protocol
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080032enum {
Junxiao Shibc19b372014-03-23 16:59:25 -070033 // ControlParameters
34 ControlParameters = 104,
35 FaceId = 105,
36 Uri = 114,
37 LocalControlFeature = 110,
Junxiao Shi5f6c74f2014-04-18 16:29:44 -070038 Origin = 111,
Junxiao Shibc19b372014-03-23 16:59:25 -070039 Cost = 106,
Junxiao Shi5f6c74f2014-04-18 16:29:44 -070040 Flags = 108,
Junxiao Shibc19b372014-03-23 16:59:25 -070041 Strategy = 107,
Junxiao Shi5f6c74f2014-04-18 16:29:44 -070042 ExpirationPeriod = 109,
Junxiao Shibc19b372014-03-23 16:59:25 -070043
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080044 // ControlResponse
45 ControlResponse = 101,
46 StatusCode = 102,
47 StatusText = 103,
48
Junxiao Shi5109dee2014-03-27 19:40:30 -070049 // ForwarderStatus
Junxiao Shi28908b72014-03-15 23:25:45 -070050 NfdVersion = 128,
51 StartTimestamp = 129,
52 CurrentTimestamp = 130,
53 NNameTreeEntries = 131,
54 NFibEntries = 132,
55 NPitEntries = 133,
56 NMeasurementsEntries = 134,
57 NCsEntries = 135,
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070058
59 // Face Management
60 FaceStatus = 128,
61 LocalUri = 129,
Alexander Afanasyev4671bf72014-05-19 09:01:37 -040062 ChannelStatus = 130,
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070063 FaceFlags = 194,
64 FaceEventNotification = 192,
65 FaceEventKind = 193,
66
Junxiao Shi13e637f2014-07-16 19:20:40 -070067 // ForwarderStatus and FaceStatus counters
68 NInInterests = 144,
69 NInDatas = 145,
70 NOutInterests = 146,
71 NOutDatas = 147,
72 NInBytes = 148,
73 NOutBytes = 149,
74
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070075 // FIB Management
76 FibEntry = 128,
Alexander Afanasyev4671bf72014-05-19 09:01:37 -040077 NextHopRecord = 129,
78
79 // Strategy Choice Management
Vince Lehmandbf3f702014-07-15 13:00:43 -050080 StrategyChoice = 128,
81
82 // RIB Management
83 RibEntry = 128,
84 Route = 129
Alexander Afanasyev4671bf72014-05-19 09:01:37 -040085
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080086};
87
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080088enum {
89 // Local Control Header
90 LocalControlHeader = 80,
91 IncomingFaceId = 81,
92 NextHopFaceId = 82
93};
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080094
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080095} // namespace nfd
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080096} // namespace tlv
hilataa99e37e2014-02-15 23:52:46 -060097
98namespace nfd {
99
Junxiao Shi13e637f2014-07-16 19:20:40 -0700100static const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max();
hilataa99e37e2014-02-15 23:52:46 -0600101
102} // namespace nfd
103
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -0800104} // namespace ndn
105
Alexander Afanasyev258ec2b2014-05-14 16:15:37 -0700106#endif // NDN_ENCODING_TLV_NFD_HPP