blob: 77f15b0c96c9271c01d1504b975163770bf3285b [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
13namespace ndn {
14namespace tlv {
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080015namespace nfd {
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080016
17enum {
18 // ControlResponse
19 ControlResponse = 101,
20 StatusCode = 102,
21 StatusText = 103,
22
23 // FIB Management Protocol
24 FibManagementOptions = 104,
25 FaceId = 105,
26 Cost = 106,
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080027
28 // Face Management Protocol
Yingdi Yud3370492014-02-12 17:17:11 -080029 FaceManagementOptions = 108,
Steve DiBenedetto7dedbf42014-03-10 16:50:40 -060030 Uri = 114,
hilata7d160f22014-03-13 19:51:42 -050031
32 // Strategy Choice Protocol
33 StrategyChoiceOptions = 115,
34 Strategy = 107,
Steve DiBenedetto7dedbf42014-03-10 16:50:40 -060035
36 // Face Status Protocol
37 FaceStatus = 128,
38 TotalIncomingInterestCounter = 145,
39 TotalIncomingDataCounter = 144,
40 TotalOutgoingInterestCounter = 146,
41 TotalOutgoingDataCounter = 147,
42 FaceEvent = 192,
Steve DiBenedettoc145d492014-03-11 16:35:45 -060043 FaceEventKind = 193,
Steve DiBenedetto7dedbf42014-03-10 16:50:40 -060044
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080045};
46
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080047enum {
48 // Local Control Header
49 LocalControlHeader = 80,
50 IncomingFaceId = 81,
51 NextHopFaceId = 82
52};
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080053
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080054} // namespace nfd
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080055} // namespace tlv
hilataa99e37e2014-02-15 23:52:46 -060056
57namespace nfd {
58
59const uint64_t INVALID_FACE_ID = std::numeric_limits<uint64_t>::max();
60
61} // namespace nfd
62
Alexander Afanasyeveaf105c2014-01-30 17:40:24 -080063} // namespace ndn
64
Alexander Afanasyev6d48bc12014-02-18 00:10:51 -080065#endif // NDN_TLV_NFD_HPP