blob: b3466bb38f98259d5dae6307867ae0ab55febf64 [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
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070019// NFD Management protocol
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080020enum {
Junxiao Shibc19b372014-03-23 16:59:25 -070021 // ControlParameters
22 ControlParameters = 104,
23 FaceId = 105,
24 Uri = 114,
25 LocalControlFeature = 110,
Junxiao Shi5f6c74f2014-04-18 16:29:44 -070026 Origin = 111,
Junxiao Shibc19b372014-03-23 16:59:25 -070027 Cost = 106,
Junxiao Shi5f6c74f2014-04-18 16:29:44 -070028 Flags = 108,
Junxiao Shibc19b372014-03-23 16:59:25 -070029 Strategy = 107,
Junxiao Shi5f6c74f2014-04-18 16:29:44 -070030 ExpirationPeriod = 109,
Junxiao Shibc19b372014-03-23 16:59:25 -070031
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080032 // ControlResponse
33 ControlResponse = 101,
34 StatusCode = 102,
35 StatusText = 103,
36
Junxiao Shi5109dee2014-03-27 19:40:30 -070037 // ForwarderStatus
Junxiao Shi28908b72014-03-15 23:25:45 -070038 NfdVersion = 128,
39 StartTimestamp = 129,
40 CurrentTimestamp = 130,
41 NNameTreeEntries = 131,
42 NFibEntries = 132,
43 NPitEntries = 133,
44 NMeasurementsEntries = 134,
45 NCsEntries = 135,
Junxiao Shi5109dee2014-03-27 19:40:30 -070046 NInInterests = 144,
47 NInDatas = 145,
48 NOutInterests = 146,
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070049 NOutDatas = 147,
50
51 // Face Management
52 FaceStatus = 128,
53 LocalUri = 129,
54 FaceFlags = 194,
55 FaceEventNotification = 192,
56 FaceEventKind = 193,
57
58 // FIB Management
59 FibEntry = 128,
60 NextHopRecord = 129
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080061};
62
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080063enum {
64 // Local Control Header
65 LocalControlHeader = 80,
66 IncomingFaceId = 81,
67 NextHopFaceId = 82
68};
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080069
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080070} // namespace nfd
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080071} // namespace tlv
hilataa99e37e2014-02-15 23:52:46 -060072
73namespace nfd {
74
75const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max();
76
77} // namespace nfd
78
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080079} // namespace ndn
80
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080081#endif // NDN_TLV_NFD_HPP