Module scope

Module scope 

Source
Expand description

Namespace isolation — well-known prefix constants and scope enforcement.

All discovery and local management traffic lives under /ndn/local/, which must never be forwarded beyond the local link. This mirrors IPv6 link-local address semantics (fe80::/10).

§Reserved sub-namespaces

PrefixPurpose
/ndn/local/nd/helloNeighbor discovery hello Interest/Data
/ndn/local/nd/probe/directSWIM direct liveness probe
/ndn/local/nd/probe/viaSWIM indirect liveness probe
/ndn/local/nd/peersDemand-driven neighbor queries
/ndn/local/sd/servicesService discovery records
/ndn/local/sd/updatesService discovery SVS sync group
/ndn/local/routing/lsaLink-state advertisements (NLSR adapter)
/ndn/local/routing/prefixPrefix announcements
/ndn/local/mgmtManagement protocol

Third-party or experimental protocols must use: /ndn/local/x/<owner-name>/v=<version>/...

§Scope roots for service discovery

DiscoveryScopeRoot prefix
LinkLocal/ndn/local
Site/ndn/site
Global/ndn/global

Functions§

global_root
gossip_prefix
hello_prefix
is_link_local
Return true if name is under /ndn/local/ (link-local scope).
is_nd_packet
Return true if name falls under the neighbor-discovery sub-tree (/ndn/local/nd/).
is_sd_packet
Return true if name falls under the service-discovery sub-tree (/ndn/local/sd/).
mgmt_prefix
nd_root
ndn_local
peers_prefix
probe_direct
probe_via
routing_lsa
routing_prefix
scope_root
Return the root prefix for the given DiscoveryScope.
sd_root
sd_services
sd_updates
site_root