Let rpki-client(8) inform bgpd(8) when RPKI VRPs will expire.
authorjob <job@openbsd.org>
Wed, 1 Sep 2021 15:21:10 +0000 (15:21 +0000)
committerjob <job@openbsd.org>
Wed, 1 Sep 2021 15:21:10 +0000 (15:21 +0000)
This will help prevent machines loading outdated roa-sets.

OK claudio@

usr.sbin/rpki-client/output-bgpd.c

index 4281ecf..86ee102 100644 (file)
@@ -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;
        }