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