diff options
author | denis <denis@openbsd.org> | 2020-04-05 18:19:04 +0000 |
---|---|---|
committer | denis <denis@openbsd.org> | 2020-04-05 18:19:04 +0000 |
commit | 55dcbf22b1b874e0996f2d5c39e59048a0b3ba4e (patch) | |
tree | 43b18881ff45e8344b1a688b20c2a5598768e0ba /usr.sbin/ospf6ctl/ospf6ctl.c | |
parent | adjust day of the week and year (diff) | |
download | wireguard-openbsd-55dcbf22b1b874e0996f2d5c39e59048a0b3ba4e.tar.xz wireguard-openbsd-55dcbf22b1b874e0996f2d5c39e59048a0b3ba4e.zip |
Handle connected routes as ospfd(8) does.
OK remi@
Diffstat (limited to 'usr.sbin/ospf6ctl/ospf6ctl.c')
-rw-r--r-- | usr.sbin/ospf6ctl/ospf6ctl.c | 8 |
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; |