pit-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 
66 extern const Name LOCALHOP;
67 
68 } // namespace scope_prefix
69 
70 namespace fw {
71 
75 bool
76 violatesScope(const pit::Entry& pitEntry, const Face& outFace);
77 
89 bool
90 canForwardToLegacy(const pit::Entry& pitEntry, const Face& face);
91 
100 };
101 
105 int
106 findDuplicateNonce(const pit::Entry& pitEntry, uint32_t nonce, const Face& face);
107 
111 bool
112 hasPendingOutRecords(const pit::Entry& pitEntry);
113 
114 } // namespace fw
115 } // namespace nfd
116 
117 #endif // NFD_DAEMON_FW_PIT_ALGORITHM_HPP
bool canForwardToLegacy(const pit::Entry &pitEntry, const Face &face)
decide whether Interest can be forwarded to face
in-record of same face
an Interest table entry
Definition: pit-entry.hpp:57
bool violatesScope(const pit::Entry &pitEntry, const Face &outFace)
determine whether forwarding the Interest in pitEntry to outFace would violate scope ...
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
const Name LOCALHOP
ndn:/localhop
bool hasPendingOutRecords(const pit::Entry &pitEntry)
determine whether pitEntry has any pending out-records
const Name LOCALHOST
ndn:/localhost
no duplicate Nonce is found
int findDuplicateNonce(const pit::Entry &pitEntry, uint32_t nonce, const Face &face)
determine whether pitEntry has duplicate Nonce nonce
in-record of other face
DuplicateNonceWhere
indicates where duplicate Nonces are found
out-record of other face
out-record of same face