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

a policy to readvertise routes registered by end hosts into NLSR More...

#include <client-to-nlsr-readvertise-policy.hpp>

Inheritance diagram for nfd::rib::ClientToNlsrReadvertisePolicy:
Collaboration diagram for nfd::rib::ClientToNlsrReadvertisePolicy:

Public Member Functions

ndn::optional< ReadvertiseActionhandleNewRoute (const RibRouteRef &ribRoute) const override
 advertise if the route's origin is client More...
 
time::milliseconds getRefreshInterval () const override
 
- Public Member Functions inherited from nfd::rib::ReadvertisePolicy
virtual ~ReadvertisePolicy ()=default
 

Detailed Description

a policy to readvertise routes registered by end hosts into NLSR

Definition at line 36 of file client-to-nlsr-readvertise-policy.hpp.

Member Function Documentation

◆ handleNewRoute()

ndn::optional< ReadvertiseAction > nfd::rib::ClientToNlsrReadvertisePolicy::handleNewRoute ( const RibRouteRef ribRoute) const
overridevirtual

advertise if the route's origin is client

If the route origin is "client" (typically from auto prefix propagation), readvertise it using the default signing identity.

Implements nfd::rib::ReadvertisePolicy.

Definition at line 32 of file client-to-nlsr-readvertise-policy.cpp.

References nfd::rib::RibRouteRef::entry, ndn::nullopt, nfd::rib::RibRouteRef::route, and ndn::nfd::ROUTE_ORIGIN_CLIENT.

◆ getRefreshInterval()

time::milliseconds nfd::rib::ClientToNlsrReadvertisePolicy::getRefreshInterval ( ) const
overridevirtual
Returns
how often readvertisements made by this policy should be refreshed.

Implements nfd::rib::ReadvertisePolicy.

Definition at line 43 of file client-to-nlsr-readvertise-policy.cpp.


The documentation for this class was generated from the following files: