summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/output.c
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2020-03-06 17:36:43 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2020-03-06 17:36:43 +0000
commitead55ffd29acd40823342710ae6c6390dc7156fb (patch)
tree68a1296febb0ef687648510b0fe8b7d889053fe4 /usr.sbin/rpki-client/output.c
parentd7033684835fbe673f22522f38a247f53b908aa9 (diff)
generate 3 different outputs for BIRD:
- bird v1 with IPv4 routes - bird v1 with IPv6 routes - bird v2 when using command line option -B. BIRD v2 output from Robert Scheck, robert AT fedoraproject DOT org time_t cast hint from jca@, and tested by job@ ok deraadt@ claudio@
Diffstat (limited to 'usr.sbin/rpki-client/output.c')
-rw-r--r--usr.sbin/rpki-client/output.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/output.c b/usr.sbin/rpki-client/output.c
index adafc5c0b53..41c2a87b690 100644
--- a/usr.sbin/rpki-client/output.c
+++ b/usr.sbin/rpki-client/output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: output.c,v 1.5 2019/12/19 16:32:44 claudio Exp $ */
+/* $OpenBSD: output.c,v 1.6 2020/03/06 17:36:42 benno Exp $ */
/*
* Copyright (c) 2019 Theo de Raadt <deraadt@openbsd.org>
*
@@ -40,7 +40,9 @@ struct outputs {
int (*fn)(FILE *, struct vrp_tree *);
} outputs[] = {
{ FORMAT_OPENBGPD, "openbgpd", output_bgpd },
- { FORMAT_BIRD, "bird", output_bird },
+ { FORMAT_BIRD, "bird1v4", output_bird1v4 },
+ { FORMAT_BIRD, "bird1v6", output_bird1v6 },
+ { FORMAT_BIRD, "bird", output_bird2 },
{ FORMAT_CSV, "csv", output_csv },
{ FORMAT_JSON, "json", output_json },
{ 0, NULL }