blob: b72b7310250eaee16146e6bb9e89c02cb7348c42 [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,
26 Cost = 106,
27 Strategy = 107,
28
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080029 // ControlResponse
30 ControlResponse = 101,
31 StatusCode = 102,
32 StatusText = 103,
33
Junxiao Shi5109dee2014-03-27 19:40:30 -070034 // ForwarderStatus
Junxiao Shi28908b72014-03-15 23:25:45 -070035 NfdVersion = 128,
36 StartTimestamp = 129,
37 CurrentTimestamp = 130,
38 NNameTreeEntries = 131,
39 NFibEntries = 132,
40 NPitEntries = 133,
41 NMeasurementsEntries = 134,
42 NCsEntries = 135,
Junxiao Shi5109dee2014-03-27 19:40:30 -070043 NInInterests = 144,
44 NInDatas = 145,
45 NOutInterests = 146,
Junxiao Shi7b1ba1a2014-03-29 01:01:56 -070046 NOutDatas = 147,
47
48 // Face Management
49 FaceStatus = 128,
50 LocalUri = 129,
51 FaceFlags = 194,
52 FaceEventNotification = 192,
53 FaceEventKind = 193,
54
55 // FIB Management
56 FibEntry = 128,
57 NextHopRecord = 129
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080058};
59
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080060enum {
61 // Local Control Header
62 LocalControlHeader = 80,
63 IncomingFaceId = 81,
64 NextHopFaceId = 82
65};
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080066
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080067} // namespace nfd
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080068} // namespace tlv
hilataa99e37e2014-02-15 23:52:46 -060069
70namespace nfd {
71
72const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max();
73
74} // namespace nfd
75
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080076} // namespace ndn
77
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080078#endif // NDN_TLV_NFD_HPP