blob: cb8970940a62ae9df1617723be7d0e28765f581b [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
Junxiao Shi28908b72014-03-15 23:25:45 -070013#include "../common.hpp"
14
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080015namespace ndn {
16namespace tlv {
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080017namespace nfd {
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080018
19enum {
20 // ControlResponse
21 ControlResponse = 101,
22 StatusCode = 102,
23 StatusText = 103,
24
25 // FIB Management Protocol
26 FibManagementOptions = 104,
27 FaceId = 105,
28 Cost = 106,
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080029
Steve DiBenedettof8cf1882014-03-14 23:02:57 -060030 // FIB Enumeration Protocol
31 FibEntry = 128,
32 NextHopRecord = 129,
33
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080034 // Face Management Protocol
Yingdi Yud3370492014-02-12 17:17:11 -080035 FaceManagementOptions = 108,
Steve DiBenedetto7dedbf42014-03-10 16:50:40 -060036 Uri = 114,
Junxiao Shi28908b72014-03-15 23:25:45 -070037
hilata7d160f22014-03-13 19:51:42 -050038 // Strategy Choice Protocol
39 StrategyChoiceOptions = 115,
40 Strategy = 107,
Steve DiBenedetto7dedbf42014-03-10 16:50:40 -060041
42 // Face Status Protocol
43 FaceStatus = 128,
44 TotalIncomingInterestCounter = 145,
45 TotalIncomingDataCounter = 144,
46 TotalOutgoingInterestCounter = 146,
47 TotalOutgoingDataCounter = 147,
48 FaceEvent = 192,
Steve DiBenedettoc145d492014-03-11 16:35:45 -060049 FaceEventKind = 193,
Steve DiBenedetto7dedbf42014-03-10 16:50:40 -060050
Junxiao Shi28908b72014-03-15 23:25:45 -070051 // Forwarder status
52 NfdVersion = 128,
53 StartTimestamp = 129,
54 CurrentTimestamp = 130,
55 NNameTreeEntries = 131,
56 NFibEntries = 132,
57 NPitEntries = 133,
58 NMeasurementsEntries = 134,
59 NCsEntries = 135,
60 NInInterests = TotalIncomingInterestCounter,
61 NOutInterests = TotalOutgoingInterestCounter,
62 NInDatas = TotalIncomingDataCounter,
63 NOutDatas = TotalOutgoingDataCounter
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080064};
65
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080066enum {
67 // Local Control Header
68 LocalControlHeader = 80,
69 IncomingFaceId = 81,
70 NextHopFaceId = 82
71};
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080072
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080073} // namespace nfd
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080074} // namespace tlv
hilataa99e37e2014-02-15 23:52:46 -060075
76namespace nfd {
77
78const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max();
79
80} // namespace nfd
81
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080082} // namespace ndn
83
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080084#endif // NDN_TLV_NFD_HPP