From: job Date: Wed, 1 Sep 2021 15:21:10 +0000 (+0000) Subject: Let rpki-client(8) inform bgpd(8) when RPKI VRPs will expire. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=28fe9b395d0b2c3275562ddc62e5e43b39d409b9;p=openbsd Let rpki-client(8) inform bgpd(8) when RPKI VRPs will expire. This will help prevent machines loading outdated roa-sets. OK claudio@ --- 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; }