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, |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame^] | 26 | Origin = 111, |
Junxiao Shi | bc19b37 | 2014-03-23 16:59:25 -0700 | [diff] [blame] | 27 | Cost = 106, |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame^] | 28 | Flags = 108, |
Junxiao Shi | bc19b37 | 2014-03-23 16:59:25 -0700 | [diff] [blame] | 29 | Strategy = 107, |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame^] | 30 | ExpirationPeriod = 109, |
Junxiao Shi | bc19b37 | 2014-03-23 16:59:25 -0700 | [diff] [blame] | 31 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 32 | // ControlResponse |
| 33 | ControlResponse = 101, |
| 34 | StatusCode = 102, |
| 35 | StatusText = 103, |
| 36 | |
Junxiao Shi | 5109dee | 2014-03-27 19:40:30 -0700 | [diff] [blame] | 37 | // ForwarderStatus |
Junxiao Shi | 28908b7 | 2014-03-15 23:25:45 -0700 | [diff] [blame] | 38 | NfdVersion = 128, |
| 39 | StartTimestamp = 129, |
| 40 | CurrentTimestamp = 130, |
| 41 | NNameTreeEntries = 131, |
| 42 | NFibEntries = 132, |
| 43 | NPitEntries = 133, |
| 44 | NMeasurementsEntries = 134, |
| 45 | NCsEntries = 135, |
Junxiao Shi | 5109dee | 2014-03-27 19:40:30 -0700 | [diff] [blame] | 46 | NInInterests = 144, |
| 47 | NInDatas = 145, |
| 48 | NOutInterests = 146, |
Junxiao Shi | 7b1ba1a | 2014-03-29 01:01:56 -0700 | [diff] [blame] | 49 | NOutDatas = 147, |
| 50 | |
| 51 | // Face Management |
| 52 | FaceStatus = 128, |
| 53 | LocalUri = 129, |
| 54 | FaceFlags = 194, |
| 55 | FaceEventNotification = 192, |
| 56 | FaceEventKind = 193, |
| 57 | |
| 58 | // FIB Management |
| 59 | FibEntry = 128, |
| 60 | NextHopRecord = 129 |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 61 | }; |
| 62 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 63 | enum { |
| 64 | // Local Control Header |
| 65 | LocalControlHeader = 80, |
| 66 | IncomingFaceId = 81, |
| 67 | NextHopFaceId = 82 |
| 68 | }; |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 69 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 70 | } // namespace nfd |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 71 | } // namespace tlv |
hilata | a99e37e | 2014-02-15 23:52:46 -0600 | [diff] [blame] | 72 | |
| 73 | namespace nfd { |
| 74 | |
| 75 | const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max(); |
| 76 | |
| 77 | } // namespace nfd |
| 78 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 79 | } // namespace ndn |
| 80 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 81 | #endif // NDN_TLV_NFD_HPP |