llarp::PeerSelectionConfig
config for path hop selection
#include <config.hpp>
Public Functions
| Name | |
|---|---|
| void | defineConfigOptions(ConfigDefinition & conf, const ConfigGenParameters & params) |
| bool | Acceptable(const std::set< RouterContact > & hops) const return true if this set of router contacts is acceptable against this config |
Public Attributes
| Name | |
|---|---|
| int | m_UniqueHopsNetmaskSize in our hops what netmask will we use for unique ips for hops i.e. |
| std::unordered_set< std::string > | m_ExcludeCountries set of countrys to exclude from path building (2 char country code) |
Public Functions Documentation
function defineConfigOptions
void defineConfigOptions(
ConfigDefinition & conf,
const ConfigGenParameters & params
)
function Acceptable
bool Acceptable(
const std::set< RouterContact > & hops
) const
return true if this set of router contacts is acceptable against this config
Public Attributes Documentation
variable m_UniqueHopsNetmaskSize
int m_UniqueHopsNetmaskSize;
in our hops what netmask will we use for unique ips for hops i.e.
32 for every hop unique ip, 24 unique /24 per hop, etc
variable m_ExcludeCountries
std::unordered_set< std::string > m_ExcludeCountries;
set of countrys to exclude from path building (2 char country code)
Updated on 2026-01-10 at 22:49:45 +0000