diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-12-27 12:11:40 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-12-27 12:11:40 +0000 |
commit | c185416a32762edbf16f1ad4fe738583d4a4f853 (patch) | |
tree | 0e62f6d058b08dda85c23e50f8b4ed77f8c20085 /usr.sbin/ospf6ctl | |
parent | 104b762cc0ba365fdce2d914508e7093c19a33fa (diff) |
Only print the hello_timer if it is actually running.
Problem reported by Wouter Prins. Initial diff by kn@
OK remi@
Diffstat (limited to 'usr.sbin/ospf6ctl')
-rw-r--r-- | usr.sbin/ospf6ctl/ospf6ctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c index 21414b28fd2..af034dcb925 100644 --- a/usr.sbin/ospf6ctl/ospf6ctl.c +++ b/usr.sbin/ospf6ctl/ospf6ctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospf6ctl.c,v 1.52 2022/01/20 14:12:55 naddy Exp $ */ +/* $OpenBSD: ospf6ctl.c,v 1.53 2022/12/27 12:11:39 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -388,6 +388,7 @@ show_interface_msg(struct imsg *imsg) err(1, NULL); printf("%-11s %-29s %-6s %-10s %-10s %s\n", iface->name, netid, if_state_name(iface->state), + iface->hello_timer < 0 ? "-" : fmt_timeframe_core(iface->hello_timer), get_linkstate(iface->if_type, iface->linkstate), fmt_timeframe_core(iface->uptime)); |