diff options
author | Job Snijders <job@cvs.openbsd.org> | 2021-09-01 15:21:11 +0000 |
---|---|---|
committer | Job Snijders <job@cvs.openbsd.org> | 2021-09-01 15:21:11 +0000 |
commit | 1c09d776bff82d707544477525b40f900a258c6d (patch) | |
tree | ef77de035d5b4ff0666ab066b5f126063f41a434 /usr.sbin | |
parent | 6dbaef121a3ac272e8763d7b2055cc9024709d45 (diff) |
Let rpki-client(8) inform bgpd(8) when RPKI VRPs will expire.
This will help prevent machines loading outdated roa-sets.
OK claudio@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpki-client/output-bgpd.c | 6 |
1 files 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 <kristaps@bsd.lv> * @@ -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; } |