From: Alberto Leiva Popper Date: Fri, 29 Oct 2021 18:12:06 +0000 (-0500) Subject: Config: Remove unused code X-Git-Tag: 1.5.3~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34eb43b82e1d2371ce201d4736f5333d31c962cd;p=thirdparty%2FFORT-validator.git Config: Remove unused code --- diff --git a/src/config.c b/src/config.c index 49653a1f..a955c8d7 100644 --- a/src/config.c +++ b/src/config.c @@ -230,11 +230,6 @@ struct rpki_config { unsigned int max; } validation; } thread_pool; - - struct { - unsigned int asns_per_prefix; - unsigned int prefixes_per_asn; - } roa; }; static void print_usage(FILE *, bool); @@ -837,24 +832,6 @@ static const struct option_field options[] = { .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 }, }; @@ -1134,10 +1111,6 @@ set_default_values(void) /* 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: @@ -1671,18 +1644,6 @@ config_get_thread_pool_validation_max(void) 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) { diff --git a/src/config.h b/src/config.h index 8af73aba..f5ffe1b3 100644 --- a/src/config.h +++ b/src/config.h @@ -57,8 +57,6 @@ unsigned int config_get_asn1_decode_max_stack(void); 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);