From 28fe9b395d0b2c3275562ddc62e5e43b39d409b9 Mon Sep 17 00:00:00 2001 From: job Date: Wed, 1 Sep 2021 15:21:10 +0000 Subject: [PATCH] Let rpki-client(8) inform bgpd(8) when RPKI VRPs will expire. This will help prevent machines loading outdated roa-sets. OK claudio@ --- usr.sbin/rpki-client/output-bgpd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/rpki-client/output-bgpd.c b/usr.sbin/rpki-client/output-bgpd.c index 4281ecfec6c..86ee1027559 100644 --- a/usr.sbin/rpki-client/output-bgpd.c +++ b/usr.sbin/rpki-client/output-bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: output-bgpd.c,v 1.21 2021/04/19 17:04:35 deraadt Exp $ */ +/* $OpenBSD: output-bgpd.c,v 1.22 2021/09/01 15:21:10 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -41,8 +41,8 @@ output_bgpd(FILE *out, struct vrp_tree *vrps, struct stats *st) return -1; } else maxlenbuf[0] = '\0'; - if (fprintf(out, "\t%s %ssource-as %u\n", - ipbuf, maxlenbuf, v->asid) < 0) + if (fprintf(out, "\t%s %ssource-as %u expires %lld\n", + ipbuf, maxlenbuf, v->asid, (long long)v->expires) < 0) return -1; } -- 2.20.1