-/* $OpenBSD: aspa.c,v 1.20 2023/06/28 17:24:20 tb Exp $ */
+/* $OpenBSD: aspa.c,v 1.21 2023/06/29 14:33:35 tb Exp $ */
/*
* Copyright (c) 2022 Job Snijders <job@fastly.com>
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
aspa->providers[i] < v->providers[j]) {
/* merge provider from aspa into v */
repo_stat_inc(rp, v->talid, RTYPE_ASPA,
- STYPE_BOTH + aspa->providers[i]);
+ STYPE_PROVIDERS);
insert_vap(v, j, &aspa->providers[i]);
i++;
} else if (aspa->providers[i] == v->providers[j])
-/* $OpenBSD: extern.h,v 1.187 2023/06/29 10:28:25 tb Exp $ */
+/* $OpenBSD: extern.h,v 1.188 2023/06/29 14:33:35 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
STYPE_TOTAL,
STYPE_UNIQUE,
STYPE_DEC_UNIQUE,
- STYPE_BOTH,
- STYPE_ONLY_IPV4,
- STYPE_ONLY_IPV6,
+ STYPE_PROVIDERS,
};
struct repo;
uint32_t vaps; /* total number of Validated ASPA Payloads */
uint32_t vaps_uniqs; /* total number of unique VAPs */
uint32_t vaps_pas; /* total number of providers */
- uint32_t vaps_pas4; /* total number of IPv4 only providers */
- uint32_t vaps_pas6; /* total number of IPv6 only providers */
uint32_t vrps; /* total number of Validated ROA Payloads */
uint32_t vrps_uniqs; /* number of unique vrps */
};
-/* $OpenBSD: main.c,v 1.243 2023/06/23 11:36:24 claudio Exp $ */
+/* $OpenBSD: main.c,v 1.244 2023/06/29 14:33:35 tb Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
out->vaps += in->vaps;
out->vaps_uniqs += in->vaps_uniqs;
out->vaps_pas += in->vaps_pas;
- out->vaps_pas4 += in->vaps_pas4;
- out->vaps_pas6 += in->vaps_pas6;
}
static void
-/* $OpenBSD: output-ometric.c,v 1.4 2023/06/05 14:19:13 claudio Exp $ */
+/* $OpenBSD: output-ometric.c,v 1.5 2023/06/29 14:33:35 tb Exp $ */
/*
* Copyright (c) 2022 Claudio Jeker <claudio@openbsd.org>
*
ometric_set_int_with_labels(metric, in->vaps_uniqs,
OKV("type", "state"), OKV("vap", "unique"), ol);
ometric_set_int_with_labels(metric, in->vaps_pas,
- OKV("type", "state"), OKV("vap providers", "both"), ol);
- ometric_set_int_with_labels(metric, in->vaps_pas4,
- OKV("type", "state"), OKV("vap providers", "IPv4 only"), ol);
- ometric_set_int_with_labels(metric, in->vaps_pas6,
- OKV("type", "state"), OKV("vap providers", "IPv6 only"), ol);
+ OKV("type", "state"), OKV("vap providers", "total"), ol);
}
static void
-/* $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>
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;
}