]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Config: Remove unused code
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 29 Oct 2021 18:12:06 +0000 (13:12 -0500)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 29 Oct 2021 18:12:06 +0000 (13:12 -0500)
src/config.c
src/config.h

index 49653a1ff52ce5104cc6ba33628f822f1ab53ea4..a955c8d778332f7ba23dc7ac24b448f2c6959a80 100644 (file)
@@ -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 = &gt_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 = &gt_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)
 {
index 8af73abad64e9cec28a50b6b94c7882cc0c72a0b..f5ffe1b366f2c6dc489318a26a6beccdb5550539 100644 (file)
@@ -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);