blob: e2aee992c89c9682230117c61c8e3529a54d9622 [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 {
Junxiao Shibc19b372014-03-23 16:59:25 -070020 // 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 Afanasyeveaf105c2014-01-30 17:40:24 -080033 // ControlResponse
34 ControlResponse = 101,
35 StatusCode = 102,
36 StatusText = 103,
37
Steve DiBenedettof8cf1882014-03-14 23:02:57 -060038 // FIB Enumeration Protocol
39 FibEntry = 128,
40 NextHopRecord = 129,
41
Steve DiBenedetto7dedbf42014-03-10 16:50:40 -060042 // 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