NFD 24.07-35-g23c53535
Loading...
Searching...
No Matches
nfd::rib::ClientToNlsrReadvertisePolicy Class Reference

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

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

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

Public Member Functions

time::milliseconds getRefreshInterval () const override
 
std::optional< ReadvertiseAction > handleNewRoute (const RibRouteRef &ribRoute) const override
 Advertise if the route's origin is client.
 

Detailed Description

A policy to readvertise routes registered by end hosts into NLSR.

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

Member Function Documentation

◆ 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 42 of file client-to-nlsr-readvertise-policy.cpp.

◆ handleNewRoute()

std::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 31 of file client-to-nlsr-readvertise-policy.cpp.