blob: 3e3c512ae1c9a786f99a4f7f2cc0c17de3d29303 [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,
Alexander Afanasyev44b438a2014-03-19 12:51:49 -070048 FaceEventNotification = 192,
Steve DiBenedettoc145d492014-03-11 16:35:45 -060049 FaceEventKind = 193,
Alexander Afanasyev2c753312014-03-20 17:31:01 -070050 FaceFlags = 194,
Steve DiBenedetto7dedbf42014-03-10 16:50:40 -060051
Junxiao Shi28908b72014-03-15 23:25:45 -070052 // 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 Afanasyeveaf105c2014-01-30 17:40:24 -080065};
66
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080067enum {
68 // Local Control Header
69 LocalControlHeader = 80,
70 IncomingFaceId = 81,
71 NextHopFaceId = 82
72};
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080073
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080074} // namespace nfd
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080075} // namespace tlv
hilataa99e37e2014-02-15 23:52:46 -060076
77namespace nfd {
78
79const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max();
80
81} // namespace nfd
82
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080083} // namespace ndn
84
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080085#endif // NDN_TLV_NFD_HPP