Fix capping of VAPs
authortb <tb@openbsd.org>
Mon, 8 Apr 2024 14:02:13 +0000 (14:02 +0000)
committertb <tb@openbsd.org>
Mon, 8 Apr 2024 14:02:13 +0000 (14:02 +0000)
commit7e284d508f03134ed914e01310f81a72255d0731
treef59a139f4bd8c0d1b5e2d677883ef8d0d7e1dbcb
parent28fef5effa5e005ff9c95010b6d82fba36cb1702
Fix capping of VAPs

The previous approach introduced a cap, but it might not always be hit as
intended (I missed this on review). Fix this to check the cap after merging
an ASPA into an already existing VAP. Also free the list of providers since
nothing should be looking at it anymore.

Count VAPs that hit the limit with a new overflowed counter. There are
still a few aspects of the accounting that probably aren't entirely right.
This will be fixed at another point. It's just statistics after all.

with/ok claudio, ok job
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
usr.sbin/rpki-client/output-ometric.c
usr.sbin/rpki-client/repo.c