diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-06-29 14:33:36 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-06-29 14:33:36 +0000 |
commit | 420abd656c1aec71cdc419c3ad756d43fafebd40 (patch) | |
tree | d5736d7decc77b3778a042ec531b703d7729a453 /usr.sbin/rpki-client/repo.c | |
parent | 2d23746f9661c908c1494066d6957b281f6450f6 (diff) |
rpki-client: fix vap_pas stats
A small mistake in a diff broke the counters. Make them AFI agnostic and
adjust ometric output.
guidance & ok claudio
Diffstat (limited to 'usr.sbin/rpki-client/repo.c')
-rw-r--r-- | usr.sbin/rpki-client/repo.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/usr.sbin/rpki-client/repo.c b/usr.sbin/rpki-client/repo.c index e3d684fe132..1a1bb49a0ee 100644 --- a/usr.sbin/rpki-client/repo.c +++ b/usr.sbin/rpki-client/repo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: repo.c,v 1.49 2023/06/29 14:09:42 claudio Exp $ */ +/* $OpenBSD: repo.c,v 1.50 2023/06/29 14:33:35 tb Exp $ */ /* * Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -1473,15 +1473,9 @@ repo_stat_inc(struct repo *rp, int talid, enum rtype type, enum stype subtype) case STYPE_DEC_UNIQUE: rp->stats[talid].vaps_uniqs--; break; - case STYPE_BOTH: + case STYPE_PROVIDERS: rp->stats[talid].vaps_pas++; break; - case STYPE_ONLY_IPV4: - rp->stats[talid].vaps_pas4++; - break; - case STYPE_ONLY_IPV6: - rp->stats[talid].vaps_pas6++; - break; default: break; } |