Project

General

Profile

Actions

Task #4839

open

Move setInfoInterestFilter and setLsaInterestFilter to their respective classes

Added by Ashlesh Gawande about 5 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Currently setInfoInterestFilter and setLsaInterestFilter is set in Nlsr class with a callback to HelloProtocol and Lsdb respectively. These functions are then called in Nlsr::initialize. Since #1952 has been implemented we don't have to wait till Nlsr::initialize being called for confParameter to be initialized with routerName. So we should move these functions to their respective classes' constructors. One problem will be that m_signingInfo used to set the interest filter on face is still initialized in Nlsr::initialize via initializeKey. In that case we should either move Nlsr::initializeKey in its own class and construct it in Nlsr before constructing HelloProtocol and Lsdb or use defaultSigningInfo instead.


Related issues 1 (0 open1 closed)

Related to NLSR - Task #1952: Decouple classes from Nlsr object for easier unit testingClosedAshlesh Gawande

Actions
Actions

Also available in: Atom PDF