NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
algorithm.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_FW_PIT_ALGORITHM_HPP
27
#define NFD_DAEMON_FW_PIT_ALGORITHM_HPP
28
29
#include "
table/pit-entry.hpp
"
30
35
namespace
nfd
{
36
40
namespace
scope_prefix {
41
50
extern
const
Name
LOCALHOST
;
51
64
extern
const
Name
LOCALHOP
;
65
66
}
// namespace scope_prefix
67
68
namespace
fw {
69
73
bool
74
wouldViolateScope
(
const
Face
& inFace,
const
Interest
& interest,
const
Face
& outFace);
75
80
DEPRECATED
(
81
bool
82
violatesScope
(
const
pit::Entry
& pitEntry,
const
Face
& outFace));
83
94
bool
95
canForwardToLegacy
(
const
pit::Entry
& pitEntry,
const
Face
&
face
);
96
99
enum
DuplicateNonceWhere
{
100
DUPLICATE_NONCE_NONE
= 0,
101
DUPLICATE_NONCE_IN_SAME
= (1 << 0),
102
DUPLICATE_NONCE_IN_OTHER
= (1 << 1),
103
DUPLICATE_NONCE_OUT_SAME
= (1 << 2),
104
DUPLICATE_NONCE_OUT_OTHER
= (1 << 3)
105
};
106
110
int
111
findDuplicateNonce
(
const
pit::Entry
& pitEntry, uint32_t nonce,
const
Face
& face);
112
116
bool
117
hasPendingOutRecords
(
const
pit::Entry
& pitEntry);
118
119
}
// namespace fw
120
}
// namespace nfd
121
122
#endif // NFD_DAEMON_FW_PIT_ALGORITHM_HPP
nfd::fw::canForwardToLegacy
bool canForwardToLegacy(const pit::Entry &pitEntry, const Face &face)
decide whether Interest can be forwarded to face
Definition:
algorithm.cpp:82
nfd::scope_prefix::LOCALHOST
const Name LOCALHOST("ndn:/localhost")
ndn:/localhost
Definition:
algorithm.hpp:50
nfd::face::Face
generalization of a network interface
Definition:
face.hpp:67
ndn::Interest
represents an Interest packet
Definition:
interest.hpp:42
nfd::fw::DUPLICATE_NONCE_IN_SAME
in-record of same face
Definition:
algorithm.hpp:101
pit-entry.hpp
nfd::fw::violatesScope
bool violatesScope(const pit::Entry &pitEntry, const Face &outFace)
Definition:
algorithm.cpp:59
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::pit::Entry
an Interest table entry
Definition:
pit-entry.hpp:57
face
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
nfd::scope_prefix::LOCALHOP
const Name LOCALHOP("ndn:/localhop")
ndn:/localhop
Definition:
algorithm.hpp:64
nfd::fw::hasPendingOutRecords
bool hasPendingOutRecords(const pit::Entry &pitEntry)
determine whether pitEntry has any pending out-records
Definition:
algorithm.cpp:136
nfd::fw::DUPLICATE_NONCE_NONE
no duplicate Nonce is found
Definition:
algorithm.hpp:100
nfd::fw::findDuplicateNonce
int findDuplicateNonce(const pit::Entry &pitEntry, uint32_t nonce, const Face &face)
determine whether pitEntry has duplicate Nonce nonce
Definition:
algorithm.cpp:106
nfd::fw::DUPLICATE_NONCE_IN_OTHER
in-record of other face
Definition:
algorithm.hpp:102
nfd::fw::DuplicateNonceWhere
DuplicateNonceWhere
indicates where duplicate Nonces are found
Definition:
algorithm.hpp:99
DEPRECATED
#define DEPRECATED(func)
Definition:
common.hpp:71
nfd::fw::DUPLICATE_NONCE_OUT_OTHER
out-record of other face
Definition:
algorithm.hpp:104
nfd::fw::wouldViolateScope
bool wouldViolateScope(const Face &inFace, const Interest &interest, const Face &outFace)
determine whether forwarding the Interest in pitEntry to outFace would violate scope ...
Definition:
algorithm.cpp:37
nfd::fw::DUPLICATE_NONCE_OUT_SAME
out-record of same face
Definition:
algorithm.hpp:103
ndnSIM
NFD
daemon
fw
algorithm.hpp
Generated on Wed Jan 11 2017 18:17:15 for ndnSIM by
1.8.13