Alexander Afanasyev | c169a81 | 2014-05-20 20:37:29 -0400 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
Alexander Afanasyev | dfa52c4 | 2014-04-24 21:10:11 -0700 | [diff] [blame] | 2 | /** |
Alexander Afanasyev | c169a81 | 2014-05-20 20:37:29 -0400 | [diff] [blame] | 3 | * Copyright (c) 2013-2014 Regents of the University of California. |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 4 | * |
Alexander Afanasyev | dfa52c4 | 2014-04-24 21:10:11 -0700 | [diff] [blame] | 5 | * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 6 | * |
Alexander Afanasyev | c169a81 | 2014-05-20 20:37:29 -0400 | [diff] [blame] | 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. |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 20 | */ |
| 21 | |
Alexander Afanasyev | 258ec2b | 2014-05-14 16:15:37 -0700 | [diff] [blame] | 22 | #ifndef NDN_ENCODING_TLV_NFD_HPP |
| 23 | #define NDN_ENCODING_TLV_NFD_HPP |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 24 | |
Junxiao Shi | 28908b7 | 2014-03-15 23:25:45 -0700 | [diff] [blame] | 25 | #include "../common.hpp" |
| 26 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 27 | namespace ndn { |
| 28 | namespace tlv { |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 29 | namespace nfd { |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 30 | |
Junxiao Shi | 7b1ba1a | 2014-03-29 01:01:56 -0700 | [diff] [blame] | 31 | // NFD Management protocol |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 32 | enum { |
Junxiao Shi | bc19b37 | 2014-03-23 16:59:25 -0700 | [diff] [blame] | 33 | // ControlParameters |
| 34 | ControlParameters = 104, |
| 35 | FaceId = 105, |
| 36 | Uri = 114, |
| 37 | LocalControlFeature = 110, |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame] | 38 | Origin = 111, |
Junxiao Shi | bc19b37 | 2014-03-23 16:59:25 -0700 | [diff] [blame] | 39 | Cost = 106, |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame] | 40 | Flags = 108, |
Junxiao Shi | bc19b37 | 2014-03-23 16:59:25 -0700 | [diff] [blame] | 41 | Strategy = 107, |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame] | 42 | ExpirationPeriod = 109, |
Junxiao Shi | bc19b37 | 2014-03-23 16:59:25 -0700 | [diff] [blame] | 43 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 44 | // ControlResponse |
| 45 | ControlResponse = 101, |
| 46 | StatusCode = 102, |
| 47 | StatusText = 103, |
| 48 | |
Junxiao Shi | 5109dee | 2014-03-27 19:40:30 -0700 | [diff] [blame] | 49 | // ForwarderStatus |
Junxiao Shi | 28908b7 | 2014-03-15 23:25:45 -0700 | [diff] [blame] | 50 | NfdVersion = 128, |
| 51 | StartTimestamp = 129, |
| 52 | CurrentTimestamp = 130, |
| 53 | NNameTreeEntries = 131, |
| 54 | NFibEntries = 132, |
| 55 | NPitEntries = 133, |
| 56 | NMeasurementsEntries = 134, |
| 57 | NCsEntries = 135, |
Junxiao Shi | 7b1ba1a | 2014-03-29 01:01:56 -0700 | [diff] [blame] | 58 | |
| 59 | // Face Management |
| 60 | FaceStatus = 128, |
| 61 | LocalUri = 129, |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 62 | ChannelStatus = 130, |
Junxiao Shi | 7b1ba1a | 2014-03-29 01:01:56 -0700 | [diff] [blame] | 63 | FaceFlags = 194, |
| 64 | FaceEventNotification = 192, |
| 65 | FaceEventKind = 193, |
| 66 | |
Junxiao Shi | 13e637f | 2014-07-16 19:20:40 -0700 | [diff] [blame] | 67 | // ForwarderStatus and FaceStatus counters |
| 68 | NInInterests = 144, |
| 69 | NInDatas = 145, |
| 70 | NOutInterests = 146, |
| 71 | NOutDatas = 147, |
| 72 | NInBytes = 148, |
| 73 | NOutBytes = 149, |
| 74 | |
Junxiao Shi | 7b1ba1a | 2014-03-29 01:01:56 -0700 | [diff] [blame] | 75 | // FIB Management |
| 76 | FibEntry = 128, |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 77 | NextHopRecord = 129, |
| 78 | |
| 79 | // Strategy Choice Management |
Vince Lehman | dbf3f70 | 2014-07-15 13:00:43 -0500 | [diff] [blame^] | 80 | StrategyChoice = 128, |
| 81 | |
| 82 | // RIB Management |
| 83 | RibEntry = 128, |
| 84 | Route = 129 |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 85 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 86 | }; |
| 87 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 88 | enum { |
| 89 | // Local Control Header |
| 90 | LocalControlHeader = 80, |
| 91 | IncomingFaceId = 81, |
| 92 | NextHopFaceId = 82 |
| 93 | }; |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 94 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 95 | } // namespace nfd |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 96 | } // namespace tlv |
hilata | a99e37e | 2014-02-15 23:52:46 -0600 | [diff] [blame] | 97 | |
| 98 | namespace nfd { |
| 99 | |
Junxiao Shi | 13e637f | 2014-07-16 19:20:40 -0700 | [diff] [blame] | 100 | static const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max(); |
hilata | a99e37e | 2014-02-15 23:52:46 -0600 | [diff] [blame] | 101 | |
| 102 | } // namespace nfd |
| 103 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 104 | } // namespace ndn |
| 105 | |
Alexander Afanasyev | 258ec2b | 2014-05-14 16:15:37 -0700 | [diff] [blame] | 106 | #endif // NDN_ENCODING_TLV_NFD_HPP |