NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::scope_prefix Namespace Reference

Variables

const Name LOCALHOST ("ndn:/localhost")
 ndn:/localhost More...
 
const Name LOCALHOP ("ndn:/localhop")
 ndn:/localhop More...
 

Variable Documentation

◆ LOCALHOST

const Name nfd::scope_prefix::LOCALHOST

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 45 of file scope-prefix.hpp.

Referenced by nfd::rib::HostToGatewayReadvertisePolicy::handleNewRoute(), and nfd::fw::wouldViolateScope().

◆ LOCALHOP

const Name nfd::scope_prefix::LOCALHOP

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 59 of file scope-prefix.hpp.

Referenced by nfd::fw::wouldViolateScope().