NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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; -*- */
22
#ifndef NDN_ENCODING_NFD_CONSTANTS_HPP
23
#define NDN_ENCODING_NFD_CONSTANTS_HPP
24
25
#include "../common.hpp"
26
27
namespace
ndn
{
28
namespace
nfd
{
29
30
static
const
uint64_t
INVALID_FACE_ID
= std::numeric_limits<uint64_t>::max();
31
34
enum
FaceScope
: uint8_t {
35
FACE_SCOPE_NONE
= std::numeric_limits<uint8_t>::max(),
38
FACE_SCOPE_NON_LOCAL
= 0,
41
FACE_SCOPE_LOCAL
= 1
42
};
43
44
std::ostream&
45
operator<<
(std::ostream& os,
FaceScope
faceScope);
46
49
enum
FacePersistency
: uint8_t {
50
FACE_PERSISTENCY_NONE
= std::numeric_limits<uint8_t>::max(),
53
FACE_PERSISTENCY_PERSISTENT
= 0,
56
FACE_PERSISTENCY_ON_DEMAND
= 1,
59
FACE_PERSISTENCY_PERMANENT
= 2
60
};
61
62
std::ostream&
63
operator<<
(std::ostream& os,
FacePersistency
facePersistency);
64
67
enum
FaceFlagBit
{
70
BIT_LOCAL_FIELDS_ENABLED
= 0
71
};
72
75
enum
LinkType
: uint8_t {
76
LINK_TYPE_NONE
= std::numeric_limits<uint8_t>::max(),
79
LINK_TYPE_POINT_TO_POINT
= 0,
82
LINK_TYPE_MULTI_ACCESS
= 1
83
};
84
85
std::ostream&
86
operator<<
(std::ostream& os,
LinkType
linkType);
87
90
enum
RouteOrigin
: uint16_t {
91
ROUTE_ORIGIN_NONE
= std::numeric_limits<uint16_t>::max(),
92
ROUTE_ORIGIN_APP
= 0,
93
ROUTE_ORIGIN_AUTOREG
= 64,
94
ROUTE_ORIGIN_CLIENT
= 65,
95
ROUTE_ORIGIN_AUTOCONF
= 66,
96
ROUTE_ORIGIN_NLSR
= 128,
97
ROUTE_ORIGIN_STATIC
= 255
98
};
99
100
std::ostream&
101
operator<<
(std::ostream& os,
RouteOrigin
routeOrigin);
102
105
enum
RouteFlags
{
106
ROUTE_FLAGS_NONE
= 0,
107
ROUTE_FLAG_CHILD_INHERIT
= 1,
108
ROUTE_FLAG_CAPTURE
= 2
109
};
110
111
std::ostream&
112
operator<<
(std::ostream& os,
RouteFlags
routeFlags);
113
114
}
// namespace nfd
115
}
// namespace ndn
116
117
#endif // NDN_ENCODING_NFD_CONSTANTS_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::nfd::LinkType
LinkType
Definition:
nfd-constants.hpp:75
ndn::nfd::FACE_PERSISTENCY_PERMANENT
face is permanent
Definition:
nfd-constants.hpp:59
ndn::nfd::ROUTE_ORIGIN_NLSR
Definition:
nfd-constants.hpp:96
ndn::nfd::LINK_TYPE_NONE
Definition:
nfd-constants.hpp:76
ndn::nfd::FACE_SCOPE_NON_LOCAL
face is non-local
Definition:
nfd-constants.hpp:38
ndn::nfd::ROUTE_ORIGIN_APP
Definition:
nfd-constants.hpp:92
ndn::nfd::LINK_TYPE_POINT_TO_POINT
link is point-to-point
Definition:
nfd-constants.hpp:79
ndn::nfd::FaceFlagBit
FaceFlagBit
Definition:
nfd-constants.hpp:67
ndn::nfd::ROUTE_ORIGIN_STATIC
Definition:
nfd-constants.hpp:97
ndn::nfd::RouteFlags
RouteFlags
Definition:
nfd-constants.hpp:105
ndn::nfd::LINK_TYPE_MULTI_ACCESS
link is multi-access
Definition:
nfd-constants.hpp:82
ndn::nfd::ROUTE_ORIGIN_AUTOREG
Definition:
nfd-constants.hpp:93
ndn::nfd::FacePersistency
FacePersistency
Definition:
nfd-constants.hpp:49
ndn::nfd::FaceScope
FaceScope
Definition:
nfd-constants.hpp:34
ndn::nfd::FACE_PERSISTENCY_NONE
Definition:
nfd-constants.hpp:50
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
ndn::nfd::ROUTE_FLAG_CAPTURE
Definition:
nfd-constants.hpp:108
ndn::nfd::FACE_SCOPE_NONE
Definition:
nfd-constants.hpp:35
ndn::nfd::ROUTE_ORIGIN_CLIENT
Definition:
nfd-constants.hpp:94
ndn::nfd::operator<<
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
Definition:
nfd-constants.cpp:30
ndn::nfd::FACE_PERSISTENCY_ON_DEMAND
face is on-demand
Definition:
nfd-constants.hpp:56
ndn::nfd::FACE_SCOPE_LOCAL
face is local
Definition:
nfd-constants.hpp:41
ndn::nfd::ROUTE_ORIGIN_AUTOCONF
Definition:
nfd-constants.hpp:95
ndn::nfd::RouteOrigin
RouteOrigin
Definition:
nfd-constants.hpp:90
ndn::nfd::ROUTE_FLAGS_NONE
Definition:
nfd-constants.hpp:106
ndn::nfd::BIT_LOCAL_FIELDS_ENABLED
bit that controls whether local fields are enabled on a face
Definition:
nfd-constants.hpp:70
ndn::nfd::ROUTE_ORIGIN_NONE
Definition:
nfd-constants.hpp:91
ndn::nfd::FACE_PERSISTENCY_PERSISTENT
face is persistent
Definition:
nfd-constants.hpp:53
ndn::nfd::INVALID_FACE_ID
static const uint64_t INVALID_FACE_ID
Definition:
nfd-constants.hpp:30
ndn::nfd::ROUTE_FLAG_CHILD_INHERIT
Definition:
nfd-constants.hpp:107
ndnSIM
ndn-cxx
src
encoding
nfd-constants.hpp
Generated on Wed Jan 11 2017 18:17:13 for ndnSIM by
1.8.13