blob: 0f199fffe2ca8cae52099c10b99a621233f35de8 [file] [log] [blame]
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -08001/* -*- 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 Afanasyev6d48bc12014-02-18 00:10:51 -080010#ifndef NDN_TLV_NFD_HPP
11#define NDN_TLV_NFD_HPP
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080012
13namespace ndn {
14namespace tlv {
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080015namespace nfd {
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080016
17enum {
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 Afanasyeveaf105c2014-01-30 17:40:24 -080027
Steve DiBenedettof8cf1882014-03-14 23:02:57 -060028 // FIB Enumeration Protocol
29 FibEntry = 128,
30 NextHopRecord = 129,
31
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080032 // Face Management Protocol
Yingdi Yud3370492014-02-12 17:17:11 -080033 FaceManagementOptions = 108,
Steve DiBenedetto7dedbf42014-03-10 16:50:40 -060034 Uri = 114,
hilata7d160f22014-03-13 19:51:42 -050035
36 // Strategy Choice Protocol
37 StrategyChoiceOptions = 115,
38 Strategy = 107,
Steve DiBenedetto7dedbf42014-03-10 16:50:40 -060039
40 // Face Status Protocol
41 FaceStatus = 128,
42 TotalIncomingInterestCounter = 145,
43 TotalIncomingDataCounter = 144,
44 TotalOutgoingInterestCounter = 146,
45 TotalOutgoingDataCounter = 147,
46 FaceEvent = 192,
Steve DiBenedettoc145d492014-03-11 16:35:45 -060047 FaceEventKind = 193,
Steve DiBenedetto7dedbf42014-03-10 16:50:40 -060048
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080049};
50
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080051enum {
52 // Local Control Header
53 LocalControlHeader = 80,
54 IncomingFaceId = 81,
55 NextHopFaceId = 82
56};
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080057
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080058} // namespace nfd
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080059} // namespace tlv
hilataa99e37e2014-02-15 23:52:46 -060060
61namespace nfd {
62
63const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max();
64
65} // namespace nfd
66
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080067} // namespace ndn
68
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080069#endif // NDN_TLV_NFD_HPP