summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6ctl
diff options
context:
space:
mode:
authordenis <denis@cvs.openbsd.org>2020-04-05 18:19:05 +0000
committerdenis <denis@cvs.openbsd.org>2020-04-05 18:19:05 +0000
commitd6bdec71cce9d79f31201d4774516e27524b0214 (patch)
treed1831c7f00a036938b6110dacb5606320fd140a9 /usr.sbin/ospf6ctl
parent64f81ff472bb6bb6ea3cc3de4f0276c998dcbfc5 (diff)
Handle connected routes as ospfd(8) does.
OK remi@
Diffstat (limited to 'usr.sbin/ospf6ctl')
-rw-r--r--usr.sbin/ospf6ctl/ospf6ctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c
index e19a1270f7e..fa1dc2cfd77 100644
--- a/usr.sbin/ospf6ctl/ospf6ctl.c
+++ b/usr.sbin/ospf6ctl/ospf6ctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospf6ctl.c,v 1.50 2019/05/26 09:27:09 remi Exp $ */
+/* $OpenBSD: ospf6ctl.c,v 1.51 2020/04/05 18:19:04 denis Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -1103,10 +1103,10 @@ show_rib_msg(struct imsg *imsg)
errx(1, "Invalid route type");
}
- printf("%-20s %-17s %-12s %-9s %-7d %s\n", dstnet,
+ printf("%-20s %-16s%s %-12s %-9s %-7d %s\n", dstnet,
log_in6addr_scope(&rt->nexthop, rt->ifindex),
- path_type_name(rt->p_type), dst_type_name(rt->d_type),
- rt->cost,
+ rt->connected ? "C" : " ", path_type_name(rt->p_type),
+ dst_type_name(rt->d_type), rt->cost,
rt->uptime == 0 ? "-" : fmt_timeframe_core(rt->uptime));
free(dstnet);
break;