NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd-constants.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2013-2021 Regents of the University of California.
4
*
5
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
6
*
7
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
8
* terms of the GNU Lesser General Public License as published by the Free Software
9
* Foundation, either version 3 of the License, or (at your option) any later version.
10
*
11
* ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY
12
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
14
*
15
* You should have received copies of the GNU General Public License and GNU Lesser
16
* General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see
17
* <http://www.gnu.org/licenses/>.
18
*
19
* See AUTHORS.md for complete list of ndn-cxx authors and contributors.
20
*/
21
22
#ifndef NDN_CXX_ENCODING_NFD_CONSTANTS_HPP
23
#define NDN_CXX_ENCODING_NFD_CONSTANTS_HPP
24
25
#include "
ndn-cxx/detail/common.hpp
"
26
27
namespace
ndn
{
28
namespace
nfd
{
29
30
const
uint64_t
INVALID_FACE_ID
= 0;
31
34
enum
FaceScope
: uint8_t {
35
FACE_SCOPE_NONE
= std::numeric_limits<uint8_t>::max(),
36
FACE_SCOPE_NON_LOCAL
= 0,
37
FACE_SCOPE_LOCAL
= 1,
38
};
39
40
std::ostream&
41
operator<<
(std::ostream& os,
FaceScope
faceScope);
42
45
enum
FacePersistency
: uint8_t {
46
FACE_PERSISTENCY_NONE
= std::numeric_limits<uint8_t>::max(),
47
FACE_PERSISTENCY_PERSISTENT
= 0,
48
FACE_PERSISTENCY_ON_DEMAND
= 1,
49
FACE_PERSISTENCY_PERMANENT
= 2,
50
};
51
52
std::ostream&
53
operator<<
(std::ostream& os,
FacePersistency
facePersistency);
54
57
enum
LinkType
: uint8_t {
58
LINK_TYPE_NONE
= std::numeric_limits<uint8_t>::max(),
59
LINK_TYPE_POINT_TO_POINT
= 0,
60
LINK_TYPE_MULTI_ACCESS
= 1,
61
LINK_TYPE_AD_HOC
= 2,
62
};
63
64
std::ostream&
65
operator<<
(std::ostream& os,
LinkType
linkType);
66
69
enum
FaceFlagBit
{
70
BIT_LOCAL_FIELDS_ENABLED
= 0,
71
BIT_LP_RELIABILITY_ENABLED
= 1,
72
BIT_CONGESTION_MARKING_ENABLED
= 2,
73
};
74
77
enum
FaceEventKind
: uint8_t {
78
FACE_EVENT_NONE
= 0,
79
FACE_EVENT_CREATED
= 1,
80
FACE_EVENT_DESTROYED
= 2,
81
FACE_EVENT_UP
= 3,
82
FACE_EVENT_DOWN
= 4,
83
};
84
85
std::ostream&
86
operator<<
(std::ostream& os,
FaceEventKind
faceEventKind);
87
92
enum
CsFlagBit
{
93
BIT_CS_ENABLE_ADMIT
= 0,
94
BIT_CS_ENABLE_SERVE
= 1,
95
};
96
99
enum
RouteOrigin
: uint16_t {
100
ROUTE_ORIGIN_NONE
= std::numeric_limits<uint16_t>::max(),
101
ROUTE_ORIGIN_APP
= 0,
102
ROUTE_ORIGIN_AUTOREG
= 64,
103
ROUTE_ORIGIN_CLIENT
= 65,
104
ROUTE_ORIGIN_AUTOCONF
= 66,
105
ROUTE_ORIGIN_NLSR
= 128,
106
ROUTE_ORIGIN_PREFIXANN
= 129,
107
ROUTE_ORIGIN_STATIC
= 255,
108
};
109
115
std::istream&
116
operator>>
(std::istream& is,
RouteOrigin
& routeOrigin);
117
118
std::ostream&
119
operator<<
(std::ostream& os,
RouteOrigin
routeOrigin);
120
123
enum
RouteFlags
: uint64_t {
124
ROUTE_FLAGS_NONE
= 0,
125
ROUTE_FLAG_CHILD_INHERIT
= 1,
126
ROUTE_FLAG_CAPTURE
= 2,
127
};
128
129
std::ostream&
130
operator<<
(std::ostream& os,
RouteFlags
routeFlags);
131
132
}
// namespace nfd
133
}
// namespace ndn
134
135
#endif // NDN_CXX_ENCODING_NFD_CONSTANTS_HPP
ndn::nfd::ROUTE_FLAG_CHILD_INHERIT
Definition:
nfd-constants.hpp:125
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::nfd::operator>>
std::istream & operator>>(std::istream &is, RouteOrigin &routeOrigin)
extract RouteOrigin from stream
Definition:
nfd-constants.cpp:100
ndn::nfd::LinkType
LinkType
Definition:
nfd-constants.hpp:57
ndn::nfd::FACE_PERSISTENCY_PERMANENT
face is permanent
Definition:
nfd-constants.hpp:49
ndn::nfd::ROUTE_ORIGIN_NLSR
Definition:
nfd-constants.hpp:105
ndn::nfd::LINK_TYPE_NONE
Definition:
nfd-constants.hpp:58
ndn::nfd::FACE_SCOPE_NON_LOCAL
face is non-local
Definition:
nfd-constants.hpp:36
ndn::nfd::LINK_TYPE_AD_HOC
link is ad hoc
Definition:
nfd-constants.hpp:61
ndn::nfd::ROUTE_ORIGIN_APP
Definition:
nfd-constants.hpp:101
ndn::nfd::LINK_TYPE_POINT_TO_POINT
link is point-to-point
Definition:
nfd-constants.hpp:59
ndn::nfd::FaceFlagBit
FaceFlagBit
Definition:
nfd-constants.hpp:69
ndn::nfd::ROUTE_ORIGIN_STATIC
Definition:
nfd-constants.hpp:107
ndn::nfd::FACE_EVENT_DESTROYED
face was destroyed
Definition:
nfd-constants.hpp:80
ndn::nfd::BIT_CONGESTION_MARKING_ENABLED
whether congestion detection and marking is enabled on a face
Definition:
nfd-constants.hpp:72
ndn::nfd::LINK_TYPE_MULTI_ACCESS
link is multi-access
Definition:
nfd-constants.hpp:60
ndn::nfd::ROUTE_FLAGS_NONE
Definition:
nfd-constants.hpp:124
ndn::nfd::ROUTE_ORIGIN_AUTOREG
Definition:
nfd-constants.hpp:102
ndn::nfd::FacePersistency
FacePersistency
Definition:
nfd-constants.hpp:45
ndn::nfd::FaceScope
FaceScope
Definition:
nfd-constants.hpp:34
ndn::nfd::FACE_PERSISTENCY_NONE
Definition:
nfd-constants.hpp:46
common.hpp
Common includes and macros used throughout the library.
ndn::nfd::BIT_LP_RELIABILITY_ENABLED
whether the link reliability feature is enabled on a face
Definition:
nfd-constants.hpp:71
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:39
ndn::nfd::ROUTE_FLAG_CAPTURE
Definition:
nfd-constants.hpp:126
ndn::nfd::FACE_SCOPE_NONE
Definition:
nfd-constants.hpp:35
ndn::nfd::FACE_EVENT_UP
face went UP (from DOWN state)
Definition:
nfd-constants.hpp:81
ndn::nfd::BIT_CS_ENABLE_SERVE
enables the CS to satisfy Interests using cached Data
Definition:
nfd-constants.hpp:94
ndn::nfd::ROUTE_ORIGIN_CLIENT
Definition:
nfd-constants.hpp:103
ndn::nfd::FaceEventKind
FaceEventKind
Definition:
nfd-constants.hpp:77
ndn::nfd::BIT_CS_ENABLE_ADMIT
enables the CS to admit new Data
Definition:
nfd-constants.hpp:93
ndn::nfd::operator<<
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
Definition:
nfd-constants.cpp:36
ndn::nfd::FACE_EVENT_NONE
Definition:
nfd-constants.hpp:78
ndn::nfd::FACE_PERSISTENCY_ON_DEMAND
face is on-demand
Definition:
nfd-constants.hpp:48
ndn::nfd::FACE_SCOPE_LOCAL
face is local
Definition:
nfd-constants.hpp:37
ndn::nfd::ROUTE_ORIGIN_AUTOCONF
Definition:
nfd-constants.hpp:104
ndn::nfd::FACE_EVENT_CREATED
face was created
Definition:
nfd-constants.hpp:79
ndn::nfd::RouteOrigin
RouteOrigin
Definition:
nfd-constants.hpp:99
ndn::nfd::RouteFlags
RouteFlags
Definition:
nfd-constants.hpp:123
ndn::nfd::ROUTE_ORIGIN_PREFIXANN
Definition:
nfd-constants.hpp:106
ndn::nfd::CsFlagBit
CsFlagBit
CS enablement flags.
Definition:
nfd-constants.hpp:92
ndn::nfd::BIT_LOCAL_FIELDS_ENABLED
whether local fields are enabled on a face
Definition:
nfd-constants.hpp:70
ndn::nfd::ROUTE_ORIGIN_NONE
Definition:
nfd-constants.hpp:100
ndn::nfd::FACE_PERSISTENCY_PERSISTENT
face is persistent
Definition:
nfd-constants.hpp:47
ndn::nfd::INVALID_FACE_ID
const uint64_t INVALID_FACE_ID
Definition:
nfd-constants.hpp:30
ndn::nfd::FACE_EVENT_DOWN
face went DOWN (from UP state)
Definition:
nfd-constants.hpp:82
ndnSIM
ndn-cxx
ndn-cxx
encoding
nfd-constants.hpp
Generated on Fri May 6 2022 12:34:12 for ndnSIM by
1.8.13