blob: 3cde88b7dc9d97bbe2c0530347ac74f7989e700f [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"
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,
38 LocalControlFeature = 110,
Junxiao Shi5f6c74f2014-04-18 16:29:44 -070039 Origin = 111,
Junxiao Shibc19b372014-03-23 16:59:25 -070040 Cost = 106,
Junxiao Shi5f6c74f2014-04-18 16:29:44 -070041 Flags = 108,
Junxiao Shibc19b372014-03-23 16:59:25 -070042 Strategy = 107,
Junxiao Shi5f6c74f2014-04-18 16:29:44 -070043 ExpirationPeriod = 109,
Junxiao Shibc19b372014-03-23 16:59:25 -070044
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080045 // ControlResponse
46 ControlResponse = 101,
47 StatusCode = 102,
48 StatusText = 103,
49
Junxiao Shi5109dee2014-03-27 19:40:30 -070050 // ForwarderStatus
Junxiao Shi28908b72014-03-15 23:25:45 -070051 NfdVersion = 128,
52 StartTimestamp = 129,
53 CurrentTimestamp = 130,
54 NNameTreeEntries = 131,
55 NFibEntries = 132,
56 NPitEntries = 133,
57 NMeasurementsEntries = 134,
58 NCsEntries = 135,
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070059
60 // Face Management
61 FaceStatus = 128,
62 LocalUri = 129,
Alexander Afanasyev4671bf72014-05-19 09:01:37 -040063 ChannelStatus = 130,
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070064 FaceFlags = 194,
65 FaceEventNotification = 192,
66 FaceEventKind = 193,
67
Junxiao Shi13e637f2014-07-16 19:20:40 -070068 // ForwarderStatus and FaceStatus counters
69 NInInterests = 144,
70 NInDatas = 145,
71 NOutInterests = 146,
72 NOutDatas = 147,
73 NInBytes = 148,
74 NOutBytes = 149,
75
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070076 // FIB Management
77 FibEntry = 128,
Alexander Afanasyev4671bf72014-05-19 09:01:37 -040078 NextHopRecord = 129,
79
80 // Strategy Choice Management
Vince Lehmandbf3f702014-07-15 13:00:43 -050081 StrategyChoice = 128,
82
83 // RIB Management
84 RibEntry = 128,
85 Route = 129
Alexander Afanasyev4671bf72014-05-19 09:01:37 -040086
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080087};
88
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080089enum {
90 // Local Control Header
91 LocalControlHeader = 80,
92 IncomingFaceId = 81,
93 NextHopFaceId = 82
94};
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080095
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080096} // namespace nfd
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080097} // namespace tlv
98} // namespace ndn
99
Alexander Afanasyev258ec2b2014-05-14 16:15:37 -0700100#endif // NDN_ENCODING_TLV_NFD_HPP