Don't emit Validated ASPAs for Customer ASIDs with more than MAX_ASPA_PROVIDERS
authorjob <job@openbsd.org>
Fri, 5 Apr 2024 16:05:15 +0000 (16:05 +0000)
committerjob <job@openbsd.org>
Fri, 5 Apr 2024 16:05:15 +0000 (16:05 +0000)
commitcd55b6bd00f2e0b78b51ae42a1ced1dab5e6e52e
tree4df8a46514f9743e558f8f9a0db98148246af9c8
parent3f7c134ffe9cdb72a35475e1d8777e39978c0bf9
Don't emit Validated ASPAs for Customer ASIDs with more than MAX_ASPA_PROVIDERS

The number of providers in a single ASPA object already was limited to
MAX_ASPA_PROVIDERS, now also impose a limit on the total number of providers
across multiple ASPA objects. If the MAX_ASPA_PROVIDERS limit is hit, omit
the Customer ASID's entry from OpenBGPD and JSON output.

OK tb@
usr.sbin/rpki-client/aspa.c
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/main.c
usr.sbin/rpki-client/output-bgpd.c
usr.sbin/rpki-client/output-json.c