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, |
| 57 | FaceFlags = 194, |
| 58 | FaceEventNotification = 192, |
| 59 | FaceEventKind = 193, |
| 60 | |
| 61 | // FIB Management |
| 62 | FibEntry = 128, |
| 63 | NextHopRecord = 129 |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 64 | }; |
| 65 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 66 | enum { |
| 67 | // Local Control Header |
| 68 | LocalControlHeader = 80, |
| 69 | IncomingFaceId = 81, |
| 70 | NextHopFaceId = 82 |
| 71 | }; |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 72 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 73 | } // namespace nfd |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 74 | } // namespace tlv |
hilata | a99e37e | 2014-02-15 23:52:46 -0600 | [diff] [blame] | 75 | |
| 76 | namespace nfd { |
| 77 | |
| 78 | const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max(); |
| 79 | |
| 80 | } // namespace nfd |
| 81 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 82 | } // namespace ndn |
| 83 | |
Alexander Afanasyev | 258ec2b | 2014-05-14 16:15:37 -0700 | [diff] [blame^] | 84 | #endif // NDN_ENCODING_TLV_NFD_HPP |