Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2013, Regents of the University of California |
| 4 | * |
| 5 | * BSD license, See the LICENSE file for more information |
| 6 | * |
| 7 | * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 8 | */ |
| 9 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 10 | #ifndef NDN_TLV_NFD_HPP |
| 11 | #define NDN_TLV_NFD_HPP |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 12 | |
Junxiao Shi | 28908b7 | 2014-03-15 23:25:45 -0700 | [diff] [blame] | 13 | #include "../common.hpp" |
| 14 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 15 | namespace ndn { |
| 16 | namespace tlv { |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 17 | namespace nfd { |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 18 | |
Junxiao Shi | 7b1ba1a | 2014-03-29 01:01:56 -0700 | [diff] [blame^] | 19 | // NFD Management protocol |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 20 | enum { |
Junxiao Shi | bc19b37 | 2014-03-23 16:59:25 -0700 | [diff] [blame] | 21 | // ControlParameters |
| 22 | ControlParameters = 104, |
| 23 | FaceId = 105, |
| 24 | Uri = 114, |
| 25 | LocalControlFeature = 110, |
| 26 | Cost = 106, |
| 27 | Strategy = 107, |
| 28 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 29 | // ControlResponse |
| 30 | ControlResponse = 101, |
| 31 | StatusCode = 102, |
| 32 | StatusText = 103, |
| 33 | |
Junxiao Shi | 5109dee | 2014-03-27 19:40:30 -0700 | [diff] [blame] | 34 | // ForwarderStatus |
Junxiao Shi | 28908b7 | 2014-03-15 23:25:45 -0700 | [diff] [blame] | 35 | NfdVersion = 128, |
| 36 | StartTimestamp = 129, |
| 37 | CurrentTimestamp = 130, |
| 38 | NNameTreeEntries = 131, |
| 39 | NFibEntries = 132, |
| 40 | NPitEntries = 133, |
| 41 | NMeasurementsEntries = 134, |
| 42 | NCsEntries = 135, |
Junxiao Shi | 5109dee | 2014-03-27 19:40:30 -0700 | [diff] [blame] | 43 | NInInterests = 144, |
| 44 | NInDatas = 145, |
| 45 | NOutInterests = 146, |
Junxiao Shi | 7b1ba1a | 2014-03-29 01:01:56 -0700 | [diff] [blame^] | 46 | NOutDatas = 147, |
| 47 | |
| 48 | // Face Management |
| 49 | FaceStatus = 128, |
| 50 | LocalUri = 129, |
| 51 | FaceFlags = 194, |
| 52 | FaceEventNotification = 192, |
| 53 | FaceEventKind = 193, |
| 54 | |
| 55 | // FIB Management |
| 56 | FibEntry = 128, |
| 57 | NextHopRecord = 129 |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 58 | }; |
| 59 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 60 | enum { |
| 61 | // Local Control Header |
| 62 | LocalControlHeader = 80, |
| 63 | IncomingFaceId = 81, |
| 64 | NextHopFaceId = 82 |
| 65 | }; |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 66 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 67 | } // namespace nfd |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 68 | } // namespace tlv |
hilata | a99e37e | 2014-02-15 23:52:46 -0600 | [diff] [blame] | 69 | |
| 70 | namespace nfd { |
| 71 | |
| 72 | const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max(); |
| 73 | |
| 74 | } // namespace nfd |
| 75 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 76 | } // namespace ndn |
| 77 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 78 | #endif // NDN_TLV_NFD_HPP |