diff options
author | claudio <claudio@openbsd.org> | 2015-11-22 13:11:26 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2015-11-22 13:11:26 +0000 |
commit | 8e72645b074abe5263cc3515cf77fc71865f639a (patch) | |
tree | 3ef8a93fb1038411b8ab5053aa134f25a539882c /usr.sbin/ospfctl | |
parent | Improve ABR support especially for self-originated stub networks. (diff) | |
download | wireguard-openbsd-8e72645b074abe5263cc3515cf77fc71865f639a.tar.xz wireguard-openbsd-8e72645b074abe5263cc3515cf77fc71865f639a.zip |
There is still a bit of an issue with connected routes in the RIB. Print
what ospfd thinks is connected by adding a 'C' to the nexthop output.
Diffstat (limited to 'usr.sbin/ospfctl')
-rw-r--r-- | usr.sbin/ospfctl/ospfctl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c index 375615f14c9..d25a6c66426 100644 --- a/usr.sbin/ospfctl/ospfctl.c +++ b/usr.sbin/ospfctl/ospfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfctl.c,v 1.61 2015/10/09 23:33:54 deraadt Exp $ */ +/* $OpenBSD: ospfctl.c,v 1.62 2015/11/22 13:11:26 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -1053,8 +1053,9 @@ show_rib_msg(struct imsg *imsg) errx(1, "Invalid route type"); } - printf("%-20s %-17s %-12s %-9s %-7d %s\n", dstnet, - inet_ntoa(rt->nexthop), path_type_name(rt->p_type), + printf("%-20s %-16s%s %-12s %-9s %-7d %s\n", dstnet, + inet_ntoa(rt->nexthop), 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); |