blob: 63776fb9b7d468c3cfb149eee0689965b77bf261 [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 Shi5109dee2014-03-27 19:40:30 -070058 NInInterests = 144,
59 NInDatas = 145,
60 NOutInterests = 146,
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070061 NOutDatas = 147,
62
63 // Face Management
64 FaceStatus = 128,
65 LocalUri = 129,
Alexander Afanasyev4671bf72014-05-19 09:01:37 -040066 ChannelStatus = 130,
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070067 FaceFlags = 194,
68 FaceEventNotification = 192,
69 FaceEventKind = 193,
70
71 // FIB Management
72 FibEntry = 128,
Alexander Afanasyev4671bf72014-05-19 09:01:37 -040073 NextHopRecord = 129,
74
75 // Strategy Choice Management
76 StrategyChoice = 128
77
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080078};
79
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080080enum {
81 // Local Control Header
82 LocalControlHeader = 80,
83 IncomingFaceId = 81,
84 NextHopFaceId = 82
85};
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080086
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080087} // namespace nfd
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080088} // namespace tlv
hilataa99e37e2014-02-15 23:52:46 -060089
90namespace nfd {
91
92const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max();
93
94} // namespace nfd
95
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080096} // namespace ndn
97
Alexander Afanasyev258ec2b2014-05-14 16:15:37 -070098#endif // NDN_ENCODING_TLV_NFD_HPP