summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6ctl/ospf6ctl.c
diff options
context:
space:
mode:
authorfriehm <friehm@openbsd.org>2017-06-19 19:55:57 +0000
committerfriehm <friehm@openbsd.org>2017-06-19 19:55:57 +0000
commitafd0ab5d3d5f040bbc02cf4c27e3190ff1871a82 (patch)
tree275314ffb492cf01df7c20d6104b181e79a0ef9c /usr.sbin/ospf6ctl/ospf6ctl.c
parentVarious KNF nits. (diff)
downloadwireguard-openbsd-afd0ab5d3d5f040bbc02cf4c27e3190ff1871a82.tar.xz
wireguard-openbsd-afd0ab5d3d5f040bbc02cf4c27e3190ff1871a82.zip
Import route priority support from ospfd to ospf6d.
Also remove the RTF_UP flag from hdr.rtm_flags in send_rtmsg() since ospfd and bgpd don't set the flag. OK bluhm@ claudio@
Diffstat (limited to 'usr.sbin/ospf6ctl/ospf6ctl.c')
-rw-r--r--usr.sbin/ospf6ctl/ospf6ctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c
index 3b384e10fe4..fc0c433b976 100644
--- a/usr.sbin/ospf6ctl/ospf6ctl.c
+++ b/usr.sbin/ospf6ctl/ospf6ctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospf6ctl.c,v 1.44 2016/12/22 23:03:55 jca Exp $ */
+/* $OpenBSD: ospf6ctl.c,v 1.45 2017/06/19 19:55:57 friehm Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -1256,7 +1256,8 @@ void
show_fib_head(void)
{
printf("flags: * = valid, O = OSPF, C = Connected, S = Static\n");
- printf("%-6s %-20s %-17s\n", "Flags", "Destination", "Nexthop");
+ printf("%-6s %-4s %-20s %-17s\n",
+ "Flags", "Prio", "Destination", "Nexthop");
}
int
@@ -1286,6 +1287,7 @@ show_fib_msg(struct imsg *imsg)
printf(" ");
printf(" ");
+ printf("%4d ", k->priority);
if (asprintf(&p, "%s/%u", log_in6addr(&k->prefix),
k->prefixlen) == -1)
err(1, NULL);