nfd::scope_prefix Namespace Reference

Contain name prefixes that affect namespace-based scope control. More...

Variables

const Name LOCALHOP {"/localhop"}
 The localhop scope ndn:/localhop. More...
 
const Name LOCALHOST {"/localhost"}
 The localhost scope ndn:/localhost. More...
 

Detailed Description

Contain name prefixes that affect namespace-based scope control.

See also
https://redmine.named-data.net/projects/nfd/wiki/ScopeControl

Variable Documentation

◆ LOCALHOP

const Name nfd::scope_prefix::LOCALHOP {"/localhop"}
inline

The localhop scope ndn:/localhop.

The localhop scope limits propagation to no further than the next node.

Interest packets under prefix ndn:/localhop are restricted by these rules:

  • If an Interest is received from a local face, it can be forwarded to a non-local face.
  • If an Interest is received from a non-local face, it cannot be forwarded to a non-local face.
  • In either case the Interest can be forwarded to a local face.
  • PIT entry can be satisfied by Data from any source.

Data packets under prefix ndn:/localhop are unrestricted.

Definition at line 58 of file scope-prefix.hpp.

◆ LOCALHOST

const Name nfd::scope_prefix::LOCALHOST {"/localhost"}
inline

The localhost scope ndn:/localhost.

The localhost scope limits propagation to the applications on the originating host.

Interest and Data packets under prefix ndn:/localhost are restricted by these rules:

  • Interest can come from and go to local faces only.
  • Data can come from and go to local faces only.

Definition at line 44 of file scope-prefix.hpp.