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 | |
| 13 | namespace ndn { |
| 14 | namespace tlv { |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 15 | namespace nfd { |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 16 | |
| 17 | enum { |
| 18 | // ControlResponse |
| 19 | ControlResponse = 101, |
| 20 | StatusCode = 102, |
| 21 | StatusText = 103, |
| 22 | |
| 23 | // FIB Management Protocol |
| 24 | FibManagementOptions = 104, |
| 25 | FaceId = 105, |
| 26 | Cost = 106, |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 27 | |
Steve DiBenedetto | f8cf188 | 2014-03-14 23:02:57 -0600 | [diff] [blame^] | 28 | // FIB Enumeration Protocol |
| 29 | FibEntry = 128, |
| 30 | NextHopRecord = 129, |
| 31 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 32 | // Face Management Protocol |
Yingdi Yu | d337049 | 2014-02-12 17:17:11 -0800 | [diff] [blame] | 33 | FaceManagementOptions = 108, |
Steve DiBenedetto | 7dedbf4 | 2014-03-10 16:50:40 -0600 | [diff] [blame] | 34 | Uri = 114, |
hilata | 7d160f2 | 2014-03-13 19:51:42 -0500 | [diff] [blame] | 35 | |
| 36 | // Strategy Choice Protocol |
| 37 | StrategyChoiceOptions = 115, |
| 38 | Strategy = 107, |
Steve DiBenedetto | 7dedbf4 | 2014-03-10 16:50:40 -0600 | [diff] [blame] | 39 | |
| 40 | // Face Status Protocol |
| 41 | FaceStatus = 128, |
| 42 | TotalIncomingInterestCounter = 145, |
| 43 | TotalIncomingDataCounter = 144, |
| 44 | TotalOutgoingInterestCounter = 146, |
| 45 | TotalOutgoingDataCounter = 147, |
| 46 | FaceEvent = 192, |
Steve DiBenedetto | c145d49 | 2014-03-11 16:35:45 -0600 | [diff] [blame] | 47 | FaceEventKind = 193, |
Steve DiBenedetto | 7dedbf4 | 2014-03-10 16:50:40 -0600 | [diff] [blame] | 48 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 49 | }; |
| 50 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 51 | enum { |
| 52 | // Local Control Header |
| 53 | LocalControlHeader = 80, |
| 54 | IncomingFaceId = 81, |
| 55 | NextHopFaceId = 82 |
| 56 | }; |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 57 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 58 | } // namespace nfd |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 59 | } // namespace tlv |
hilata | a99e37e | 2014-02-15 23:52:46 -0600 | [diff] [blame] | 60 | |
| 61 | namespace nfd { |
| 62 | |
| 63 | const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max(); |
| 64 | |
| 65 | } // namespace nfd |
| 66 | |
Alexander Afanasyev | eaf105c | 2014-01-30 17:40:24 -0800 | [diff] [blame] | 67 | } // namespace ndn |
| 68 | |
Alexander Afanasyev | 6d48bc1 | 2014-02-18 00:10:51 -0800 | [diff] [blame] | 69 | #endif // NDN_TLV_NFD_HPP |