unsigned int max;
} validation;
} thread_pool;
-
- struct {
- unsigned int asns_per_prefix;
- unsigned int prefixes_per_asn;
- } roa;
};
static void print_usage(FILE *, bool);
.max = 100,
},
- {
- .id = 13000,
- .name = "roa.max_asns_per_prefix",
- .type = >_uint,
- .offset = offsetof(struct rpki_config, roa.asns_per_prefix),
- .doc = "Maximum number of Autonomous Systems that are allowed to advertise each prefix. (Maximum number of ROAs that are allowed to share any given prefix.)",
- .min = 0,
- .max = UINT_MAX,
- }, {
- .id = 13001,
- .name = "roa.max_prefixes_per_asn",
- .type = >_uint,
- .offset = offsetof(struct rpki_config, roa.prefixes_per_asn),
- .doc = "Maximum number of prefixes that are allowed to be advertised by each Autonomous System. (Maximum number of ROAs that are allowed to share any given ASN.)",
- .min = 0,
- .max = UINT_MAX,
- },
-
{ 0 },
};
/* Usually 5 TALs, let a few more available */
rpki_config.thread_pool.validation.max = 5;
- /* TODO adjust */
- rpki_config.roa.asns_per_prefix = 1024;
- rpki_config.roa.prefixes_per_asn = 1024;
-
return 0;
revert_validation_log_tag:
return rpki_config.thread_pool.validation.max;
}
-unsigned int
-config_get_max_asn_per_pfx(void)
-{
- return rpki_config.roa.asns_per_prefix;
-}
-
-unsigned int
-config_get_max_pfx_per_asn(void)
-{
- return rpki_config.roa.prefixes_per_asn;
-}
-
void
config_set_rsync_enabled(bool value)
{
unsigned int config_get_stale_repository_period(void);
unsigned int config_get_thread_pool_server_max(void);
unsigned int config_get_thread_pool_validation_max(void);
-unsigned int config_get_max_asn_per_pfx(void);
-unsigned int config_get_max_pfx_per_asn(void);
/* Logging getters */
bool config_get_op_log_enabled(void);