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 | |
| 19 | enum { |
Junxiao Shi | bc19b37 | 2014-03-23 16:59:25 -0700 | [diff] [blame] | 20 | // ControlParameters |
| 21 | ControlParameters = 104, |
| 22 | FaceId = 105, |
| 23 | Uri = 114, |
| 24 | LocalControlFeature = 110, |
| 25 | Cost = 106, |
| 26 | Strategy = 107, |
| 27 | |
| 28 | // (deprecated) |
| 29 | FibManagementOptions = ControlParameters, |
| 30 | FaceManagementOptions = ControlParameters, |
| 31 | StrategyChoiceOptions = ControlParameters, |
| 32 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 33 | // ControlResponse |
| 34 | ControlResponse = 101, |
| 35 | StatusCode = 102, |
| 36 | StatusText = 103, |
| 37 | |
Steve DiBenedetto | f8cf188 | 2014-03-14 23:02:57 -0600 | [diff] [blame] | 38 | // FIB Enumeration Protocol |
| 39 | FibEntry = 128, |
| 40 | NextHopRecord = 129, |
| 41 | |
Steve DiBenedetto | 7dedbf4 | 2014-03-10 16:50:40 -0600 | [diff] [blame] | 42 | // Face Status Protocol |
| 43 | FaceStatus = 128, |
| 44 | TotalIncomingInterestCounter = 145, |
| 45 | TotalIncomingDataCounter = 144, |
| 46 | TotalOutgoingInterestCounter = 146, |
| 47 | TotalOutgoingDataCounter = 147, |
Alexander Afanasyev | 44b438a | 2014-03-19 12:51:49 -0700 | [diff] [blame] | 48 | FaceEventNotification = 192, |
Steve DiBenedetto | c145d49 | 2014-03-11 16:35:45 -0600 | [diff] [blame] | 49 | FaceEventKind = 193, |
Alexander Afanasyev | 2c75331 | 2014-03-20 17:31:01 -0700 | [diff] [blame] | 50 | FaceFlags = 194, |
Steve DiBenedetto | 7dedbf4 | 2014-03-10 16:50:40 -0600 | [diff] [blame] | 51 | |
Junxiao Shi | 28908b7 | 2014-03-15 23:25:45 -0700 | [diff] [blame] | 52 | // Forwarder status |
| 53 | NfdVersion = 128, |
| 54 | StartTimestamp = 129, |
| 55 | CurrentTimestamp = 130, |
| 56 | NNameTreeEntries = 131, |
| 57 | NFibEntries = 132, |
| 58 | NPitEntries = 133, |
| 59 | NMeasurementsEntries = 134, |
| 60 | NCsEntries = 135, |
| 61 | NInInterests = TotalIncomingInterestCounter, |
| 62 | NOutInterests = TotalOutgoingInterestCounter, |
| 63 | NInDatas = TotalIncomingDataCounter, |
| 64 | NOutDatas = TotalOutgoingDataCounter |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 65 | }; |
| 66 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 67 | enum { |
| 68 | // Local Control Header |
| 69 | LocalControlHeader = 80, |
| 70 | IncomingFaceId = 81, |
| 71 | NextHopFaceId = 82 |
| 72 | }; |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 73 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 74 | } // namespace nfd |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 75 | } // namespace tlv |
hilata | a99e37e | 2014-02-15 23:52:46 -0600 | [diff] [blame] | 76 | |
| 77 | namespace nfd { |
| 78 | |
| 79 | const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max(); |
| 80 | |
| 81 | } // namespace nfd |
| 82 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 83 | } // namespace ndn |
| 84 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 85 | #endif // NDN_TLV_NFD_HPP |