summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrenato <renato@openbsd.org>2015-10-27 03:23:30 +0000
committerrenato <renato@openbsd.org>2015-10-27 03:23:30 +0000
commitf2979b5d4e495ba2c5118d316a158608899d19fa (patch)
tree91645a07c643e4f610a7c9df98b3e8f1c5631619
parentlog certificate serial in verbose() messages to match the main (diff)
downloadwireguard-openbsd-f2979b5d4e495ba2c5118d316a158608899d19fa.tar.xz
wireguard-openbsd-f2979b5d4e495ba2c5118d316a158608899d19fa.zip
Print a missing "metric" before the actual metric when printing a
redistribute line.
-rw-r--r--usr.sbin/eigrpd/printconf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/eigrpd/printconf.c b/usr.sbin/eigrpd/printconf.c
index a5eb6fd0359..0f50d8b8952 100644
--- a/usr.sbin/eigrpd/printconf.c
+++ b/usr.sbin/eigrpd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.3 2015/10/21 03:52:12 renato Exp $ */
+/* $OpenBSD: printconf.c,v 1.4 2015/10/27 03:23:30 renato Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -100,8 +100,10 @@ print_redistribute(struct eigrp *eigrp)
break;
}
- if (r->metric)
+ if (r->metric) {
+ printf(" metric");
print_redist_metric(r->metric);
+ }
printf("\n");
}
}